Class DescribePoliciesRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.autoscaling.model.DescribePoliciesRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class DescribePoliciesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribePoliciesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribePoliciesRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAutoScalingGroupName()The name of the group.IntegergetMaxRecords()The maximum number of items to be returned with each call.StringgetNextToken()The token for the next set of items to return.List<String>getPolicyNames()One or more policy names or policy ARNs to be described.List<String>getPolicyTypes()One or more policy types.inthashCode()voidsetAutoScalingGroupName(String autoScalingGroupName)The name of the group.voidsetMaxRecords(Integer maxRecords)The maximum number of items to be returned with each call.voidsetNextToken(String nextToken)The token for the next set of items to return.voidsetPolicyNames(Collection<String> policyNames)One or more policy names or policy ARNs to be described.voidsetPolicyTypes(Collection<String> policyTypes)One or more policy types.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribePoliciesRequestwithAutoScalingGroupName(String autoScalingGroupName)The name of the group.DescribePoliciesRequestwithMaxRecords(Integer maxRecords)The maximum number of items to be returned with each call.DescribePoliciesRequestwithNextToken(String nextToken)The token for the next set of items to return.DescribePoliciesRequestwithPolicyNames(String... policyNames)One or more policy names or policy ARNs to be described.DescribePoliciesRequestwithPolicyNames(Collection<String> policyNames)One or more policy names or policy ARNs to be described.DescribePoliciesRequestwithPolicyTypes(String... policyTypes)One or more policy types.DescribePoliciesRequestwithPolicyTypes(Collection<String> policyTypes)One or more policy types.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setAutoScalingGroupName
public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the group.
- Parameters:
autoScalingGroupName- The name of the group.
-
getAutoScalingGroupName
public String getAutoScalingGroupName()
The name of the group.
- Returns:
- The name of the group.
-
withAutoScalingGroupName
public DescribePoliciesRequest withAutoScalingGroupName(String autoScalingGroupName)
The name of the group.
- Parameters:
autoScalingGroupName- The name of the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPolicyNames
public List<String> getPolicyNames()
One or more policy names or policy ARNs to be described. If you omit this list, all policy names are described. If an group name is provided, the results are limited to that group. This list is limited to 50 items. If you specify an unknown policy name, it is ignored with no error.
- Returns:
- One or more policy names or policy ARNs to be described. If you omit this list, all policy names are described. If an group name is provided, the results are limited to that group. This list is limited to 50 items. If you specify an unknown policy name, it is ignored with no error.
-
setPolicyNames
public void setPolicyNames(Collection<String> policyNames)
One or more policy names or policy ARNs to be described. If you omit this list, all policy names are described. If an group name is provided, the results are limited to that group. This list is limited to 50 items. If you specify an unknown policy name, it is ignored with no error.
- Parameters:
policyNames- One or more policy names or policy ARNs to be described. If you omit this list, all policy names are described. If an group name is provided, the results are limited to that group. This list is limited to 50 items. If you specify an unknown policy name, it is ignored with no error.
-
withPolicyNames
public DescribePoliciesRequest withPolicyNames(String... policyNames)
One or more policy names or policy ARNs to be described. If you omit this list, all policy names are described. If an group name is provided, the results are limited to that group. This list is limited to 50 items. If you specify an unknown policy name, it is ignored with no error.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyNames(java.util.Collection)orwithPolicyNames(java.util.Collection)if you want to override the existing values.- Parameters:
policyNames- One or more policy names or policy ARNs to be described. If you omit this list, all policy names are described. If an group name is provided, the results are limited to that group. This list is limited to 50 items. If you specify an unknown policy name, it is ignored with no error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPolicyNames
public DescribePoliciesRequest withPolicyNames(Collection<String> policyNames)
One or more policy names or policy ARNs to be described. If you omit this list, all policy names are described. If an group name is provided, the results are limited to that group. This list is limited to 50 items. If you specify an unknown policy name, it is ignored with no error.
- Parameters:
policyNames- One or more policy names or policy ARNs to be described. If you omit this list, all policy names are described. If an group name is provided, the results are limited to that group. This list is limited to 50 items. If you specify an unknown policy name, it is ignored with no error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPolicyTypes
public List<String> getPolicyTypes()
One or more policy types. Valid values are
SimpleScalingandStepScaling.- Returns:
- One or more policy types. Valid values are
SimpleScalingandStepScaling.
-
setPolicyTypes
public void setPolicyTypes(Collection<String> policyTypes)
One or more policy types. Valid values are
SimpleScalingandStepScaling.- Parameters:
policyTypes- One or more policy types. Valid values areSimpleScalingandStepScaling.
-
withPolicyTypes
public DescribePoliciesRequest withPolicyTypes(String... policyTypes)
One or more policy types. Valid values are
SimpleScalingandStepScaling.NOTE: This method appends the values to the existing list (if any). Use
setPolicyTypes(java.util.Collection)orwithPolicyTypes(java.util.Collection)if you want to override the existing values.- Parameters:
policyTypes- One or more policy types. Valid values areSimpleScalingandStepScaling.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPolicyTypes
public DescribePoliciesRequest withPolicyTypes(Collection<String> policyTypes)
One or more policy types. Valid values are
SimpleScalingandStepScaling.- Parameters:
policyTypes- One or more policy types. Valid values areSimpleScalingandStepScaling.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
- Parameters:
nextToken- The token for the next set of items to return. (You received this token from a previous call.)
-
getNextToken
public String getNextToken()
The token for the next set of items to return. (You received this token from a previous call.)
- Returns:
- The token for the next set of items to return. (You received this token from a previous call.)
-
withNextToken
public DescribePoliciesRequest withNextToken(String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
- Parameters:
nextToken- The token for the next set of items to return. (You received this token from a previous call.)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxRecords
public void setMaxRecords(Integer maxRecords)
The maximum number of items to be returned with each call.
- Parameters:
maxRecords- The maximum number of items to be returned with each call.
-
getMaxRecords
public Integer getMaxRecords()
The maximum number of items to be returned with each call.
- Returns:
- The maximum number of items to be returned with each call.
-
withMaxRecords
public DescribePoliciesRequest withMaxRecords(Integer maxRecords)
The maximum number of items to be returned with each call.
- Parameters:
maxRecords- The maximum number of items to be returned with each call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribePoliciesRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-