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 DescribePoliciesRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getAutoScalingGroupName()
The name of the group.Integer
getMaxRecords()
The maximum number of items to be returned with each call.String
getNextToken()
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.int
hashCode()
void
setAutoScalingGroupName(String autoScalingGroupName)
The name of the group.void
setMaxRecords(Integer maxRecords)
The maximum number of items to be returned with each call.void
setNextToken(String nextToken)
The token for the next set of items to return.void
setPolicyNames(Collection<String> policyNames)
One or more policy names or policy ARNs to be described.void
setPolicyTypes(Collection<String> policyTypes)
One or more policy types.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribePoliciesRequest
withAutoScalingGroupName(String autoScalingGroupName)
The name of the group.DescribePoliciesRequest
withMaxRecords(Integer maxRecords)
The maximum number of items to be returned with each call.DescribePoliciesRequest
withNextToken(String nextToken)
The token for the next set of items to return.DescribePoliciesRequest
withPolicyNames(String... policyNames)
One or more policy names or policy ARNs to be described.DescribePoliciesRequest
withPolicyNames(Collection<String> policyNames)
One or more policy names or policy ARNs to be described.DescribePoliciesRequest
withPolicyTypes(String... policyTypes)
One or more policy types.DescribePoliciesRequest
withPolicyTypes(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
SimpleScaling
andStepScaling
.- Returns:
- One or more policy types. Valid values are
SimpleScaling
andStepScaling
.
-
setPolicyTypes
public void setPolicyTypes(Collection<String> policyTypes)
One or more policy types. Valid values are
SimpleScaling
andStepScaling
.- Parameters:
policyTypes
- One or more policy types. Valid values areSimpleScaling
andStepScaling
.
-
withPolicyTypes
public DescribePoliciesRequest withPolicyTypes(String... policyTypes)
One or more policy types. Valid values are
SimpleScaling
andStepScaling
.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 areSimpleScaling
andStepScaling
.- 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
SimpleScaling
andStepScaling
.- Parameters:
policyTypes
- One or more policy types. Valid values areSimpleScaling
andStepScaling
.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribePoliciesRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-