public class DescribePoliciesRequest extends AmazonWebServiceRequest implements Serializable
DescribePolicies operation
.
Returns descriptions of what each policy does. This action supports pagination. If the response includes a token, there are more records available.
To get the additional records, repeat the request with the response token as the NextToken
parameter.
Constructor and Description |
---|
DescribePoliciesRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
Integer |
getMaxRecords()
The maximum number of policies that will be described with each call.
|
String |
getNextToken()
A string that is used to mark the start of the next batch of returned
results for pagination.
|
List<String> |
getPolicyNames()
A list of policy names or policy ARNs to be described.
|
int |
hashCode() |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setMaxRecords(Integer maxRecords)
The maximum number of policies that will be described with each call.
|
void |
setNextToken(String nextToken)
A string that is used to mark the start of the next batch of returned
results for pagination.
|
void |
setPolicyNames(Collection<String> policyNames)
A list of policy names or policy ARNs to be described.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribePoliciesRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
DescribePoliciesRequest |
withMaxRecords(Integer maxRecords)
The maximum number of policies that will be described with each call.
|
DescribePoliciesRequest |
withNextToken(String nextToken)
A string that is used to mark the start of the next batch of returned
results for pagination.
|
DescribePoliciesRequest |
withPolicyNames(Collection<String> policyNames)
A list of policy names or policy ARNs to be described.
|
DescribePoliciesRequest |
withPolicyNames(String... policyNames)
A list of policy names or policy ARNs to be described.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling 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: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group.public List<String> getPolicyNames()
public void setPolicyNames(Collection<String> policyNames)
policyNames
- A list of policy names or policy ARNs to be described. If this list is
omitted, all policy names are described. If an auto scaling group name
is provided, the results are limited to that group. The list of
requested policy names cannot contain more than 50 items. If unknown
policy names are requested, they are ignored with no error.public DescribePoliciesRequest withPolicyNames(String... policyNames)
Returns a reference to this object so that method calls can be chained together.
policyNames
- A list of policy names or policy ARNs to be described. If this list is
omitted, all policy names are described. If an auto scaling group name
is provided, the results are limited to that group. The list of
requested policy names cannot contain more than 50 items. If unknown
policy names are requested, they are 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
- A list of policy names or policy ARNs to be described. If this list is
omitted, all policy names are described. If an auto scaling group name
is provided, the results are limited to that group. The list of
requested policy names cannot contain more than 50 items. If unknown
policy names are requested, they are ignored with no error.public String getNextToken()
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
public void setNextToken(String nextToken)
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
nextToken
- A string that is used to mark the start of the next batch of returned
results for pagination.public DescribePoliciesRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
nextToken
- A string that is used to mark the start of the next batch of returned
results for pagination.public Integer getMaxRecords()
Constraints:
Range: 1 - 50
public void setMaxRecords(Integer maxRecords)
Constraints:
Range: 1 - 50
maxRecords
- The maximum number of policies that will be described with each call.public DescribePoliciesRequest withMaxRecords(Integer maxRecords)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 50
maxRecords
- The maximum number of policies that will be described with each call.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.