public class DescribePoliciesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DescribePolicies operation
.
Describes the policies for the specified Auto Scaling group.
NOOP
Constructor and Description |
---|
DescribePoliciesRequest() |
Modifier and Type | Method and 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(Collection<String> policyNames)
One or more policy names or policy ARNs to be described.
|
DescribePoliciesRequest |
withPolicyNames(String... policyNames)
One or more policy names or policy ARNs to be described.
|
DescribePoliciesRequest |
withPolicyTypes(Collection<String> policyTypes)
One or more policy types.
|
DescribePoliciesRequest |
withPolicyTypes(String... policyTypes)
One or more policy types.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName
- The name of the group.public DescribePoliciesRequest withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName
- The name of the group.public List<String> getPolicyNames()
public void setPolicyNames(Collection<String> policyNames)
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.public DescribePoliciesRequest withPolicyNames(String... policyNames)
NOTE: This method appends the values to the existing list (if
any). Use setPolicyNames(java.util.Collection)
or withPolicyNames(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
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.public DescribePoliciesRequest withPolicyNames(Collection<String> policyNames)
Returns a reference to this object so that method calls can be chained together.
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.public List<String> getPolicyTypes()
SimpleScaling
and StepScaling
.SimpleScaling
and StepScaling
.public void setPolicyTypes(Collection<String> policyTypes)
SimpleScaling
and StepScaling
.policyTypes
- One or more policy types. Valid values are SimpleScaling
and StepScaling
.public DescribePoliciesRequest withPolicyTypes(String... policyTypes)
SimpleScaling
and StepScaling
.
NOTE: This method appends the values to the existing list (if
any). Use setPolicyTypes(java.util.Collection)
or withPolicyTypes(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
policyTypes
- One or more policy types. Valid values are SimpleScaling
and StepScaling
.public DescribePoliciesRequest withPolicyTypes(Collection<String> policyTypes)
SimpleScaling
and StepScaling
.
Returns a reference to this object so that method calls can be chained together.
policyTypes
- One or more policy types. Valid values are SimpleScaling
and StepScaling
.public String getNextToken()
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setNextToken(String nextToken)
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
nextToken
- The token for the next set of items to return. (You received this
token from a previous call.)public DescribePoliciesRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
nextToken
- The token for the next set of items to return. (You received this
token from a previous call.)public Integer getMaxRecords()
public void setMaxRecords(Integer maxRecords)
maxRecords
- The maximum number of items to be returned with each call.public DescribePoliciesRequest withMaxRecords(Integer maxRecords)
Returns a reference to this object so that method calls can be chained together.
maxRecords
- The maximum number of items to be returned with each call.public String toString()
toString
in class Object
Object.toString()
public DescribePoliciesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.