/** * <p> * The names of the Auto Scaling groups. You can specify up to <code>MaxRecords</code> names. If you omit this * parameter, all Auto Scaling groups are described. * </p> * * @param autoScalingGroupNames * The names of the Auto Scaling groups. You can specify up to <code>MaxRecords</code> names. If you omit * this parameter, all Auto Scaling groups are described. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAutoScalingGroupsRequest withAutoScalingGroupNames(java.util.Collection<String> autoScalingGroupNames) { setAutoScalingGroupNames(autoScalingGroupNames); return this; }
/** * <p> * The names of the Auto Scaling groups. You can specify up to <code>MaxRecords</code> names. If you omit this * parameter, all Auto Scaling groups are described. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAutoScalingGroupNames(java.util.Collection)} or * {@link #withAutoScalingGroupNames(java.util.Collection)} if you want to override the existing values. * </p> * * @param autoScalingGroupNames * The names of the Auto Scaling groups. You can specify up to <code>MaxRecords</code> names. If you omit * this parameter, all Auto Scaling groups are described. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAutoScalingGroupsRequest withAutoScalingGroupNames(String... autoScalingGroupNames) { if (this.autoScalingGroupNames == null) { setAutoScalingGroupNames(new com.amazonaws.internal.SdkInternalList<String>(autoScalingGroupNames.length)); } for (String ele : autoScalingGroupNames) { this.autoScalingGroupNames.add(ele); } return this; }
/** * <p> * The names of the Auto Scaling groups. You can specify up to * <code>MaxRecords</code> names. If you omit this parameter, all Auto * Scaling groups are described. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param autoScalingGroupNames <p> * The names of the Auto Scaling groups. You can specify up to * <code>MaxRecords</code> names. If you omit this parameter, all * Auto Scaling groups are described. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public DescribeAutoScalingGroupsRequest withAutoScalingGroupNames( java.util.Collection<String> autoScalingGroupNames) { setAutoScalingGroupNames(autoScalingGroupNames); return this; }