/** * <p> * The Amazon Resource Names (ARN) of the target groups for your load balancer. * </p> * * @param targetGroupARNs * The Amazon Resource Names (ARN) of the target groups for your load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingGroup withTargetGroupARNs(java.util.Collection<String> targetGroupARNs) { setTargetGroupARNs(targetGroupARNs); return this; }
/** * <p> * The Amazon Resource Names (ARN) of the target groups for your load balancer. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTargetGroupARNs(java.util.Collection)} or {@link #withTargetGroupARNs(java.util.Collection)} if you * want to override the existing values. * </p> * * @param targetGroupARNs * The Amazon Resource Names (ARN) of the target groups for your load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingGroup withTargetGroupARNs(String... targetGroupARNs) { if (this.targetGroupARNs == null) { setTargetGroupARNs(new com.amazonaws.internal.SdkInternalList<String>(targetGroupARNs.length)); } for (String ele : targetGroupARNs) { this.targetGroupARNs.add(ele); } return this; }
/** * <p> * The Amazon Resource Names (ARN) of the target groups for your load * balancer. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param targetGroupARNs <p> * The Amazon Resource Names (ARN) of the target groups for your * load balancer. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public AutoScalingGroup withTargetGroupARNs(java.util.Collection<String> targetGroupARNs) { setTargetGroupARNs(targetGroupARNs); return this; }