/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.autoscaling.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeAutoScalingGroupsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The names of the Auto Scaling groups. By default, you can only specify up to 50 names. You can optionally
* increase this limit using the MaxRecords
property.
*
* If you omit this property, all Auto Scaling groups are described. *
*/ private com.amazonaws.internal.SdkInternalList* The token for the next set of items to return. (You received this token from a previous call.) *
*/ private String nextToken; /** *
* The maximum number of items to return with this call. The default value is 50
and the maximum value
* is 100
.
*
* One or more filters to limit the results based on specific tags. *
*/ private com.amazonaws.internal.SdkInternalList
* The names of the Auto Scaling groups. By default, you can only specify up to 50 names. You can optionally
* increase this limit using the MaxRecords
property.
*
* If you omit this property, all Auto Scaling groups are described. *
* * @return The names of the Auto Scaling groups. By default, you can only specify up to 50 names. You can optionally * increase this limit using theMaxRecords
property.
*
* If you omit this property, all Auto Scaling groups are described.
*/
public java.util.List
* The names of the Auto Scaling groups. By default, you can only specify up to 50 names. You can optionally
* increase this limit using the
* If you omit this property, all Auto Scaling groups are described.
* MaxRecords
property.
* MaxRecords
property.
* If you omit this property, all Auto Scaling groups are described.
*/
public void setAutoScalingGroupNames(java.util.Collection
* The names of the Auto Scaling groups. By default, you can only specify up to 50 names. You can optionally
* increase this limit using the
* If you omit this property, all Auto Scaling groups are described.
*
* NOTE: 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.
* MaxRecords
property.
* MaxRecords
property.
* If you omit this property, 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
* The names of the Auto Scaling groups. By default, you can only specify up to 50 names. You can optionally
* increase this limit using the
* If you omit this property, all Auto Scaling groups are described.
* MaxRecords
property.
* MaxRecords
property.
* If you omit this property, 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
* The token for the next set of items to return. (You received this token from a previous call.)
*
* The token for the next set of items to return. (You received this token from a previous call.)
*
* The token for the next set of items to return. (You received this token from a previous call.)
*
* The maximum number of items to return with this call. The default value is
* The maximum number of items to return with this call. The default value is
* The maximum number of items to return with this call. The default value is
* One or more filters to limit the results based on specific tags.
*
* One or more filters to limit the results based on specific tags.
*
* One or more filters to limit the results based on specific tags.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override
* the existing values.
*
* One or more filters to limit the results based on specific tags.
* 50
and the maximum value
* is 100
.
* 50
and the maximum
* value is 100
.
*/
public void setMaxRecords(Integer maxRecords) {
this.maxRecords = maxRecords;
}
/**
* 50
and the maximum value
* is 100
.
* 50
and the
* maximum value is 100
.
*/
public Integer getMaxRecords() {
return this.maxRecords;
}
/**
* 50
and the maximum value
* is 100
.
* 50
and the maximum
* value is 100
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAutoScalingGroupsRequest withMaxRecords(Integer maxRecords) {
setMaxRecords(maxRecords);
return this;
}
/**
*