public class DescribePoliciesRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
autoScalingGroupName
The name of the group.
|
private java.lang.Integer |
maxRecords
The maximum number of items to be returned with each call.
|
private java.lang.String |
nextToken
The token for the next set of items to return.
|
private SdkInternalList<java.lang.String> |
policyNames
One or more policy names or policy ARNs to be described.
|
private SdkInternalList<java.lang.String> |
policyTypes
One or more policy types.
|
NOOP
Constructor and Description |
---|
DescribePoliciesRequest() |
Modifier and Type | Method and Description |
---|---|
DescribePoliciesRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the group.
|
java.lang.Integer |
getMaxRecords()
The maximum number of items to be returned with each call.
|
java.lang.String |
getNextToken()
The token for the next set of items to return.
|
java.util.List<java.lang.String> |
getPolicyNames()
One or more policy names or policy ARNs to be described.
|
java.util.List<java.lang.String> |
getPolicyTypes()
One or more policy types.
|
int |
hashCode() |
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
void |
setMaxRecords(java.lang.Integer maxRecords)
The maximum number of items to be returned with each call.
|
void |
setNextToken(java.lang.String nextToken)
The token for the next set of items to return.
|
void |
setPolicyNames(java.util.Collection<java.lang.String> policyNames)
One or more policy names or policy ARNs to be described.
|
void |
setPolicyTypes(java.util.Collection<java.lang.String> policyTypes)
One or more policy types.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribePoliciesRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
DescribePoliciesRequest |
withMaxRecords(java.lang.Integer maxRecords)
The maximum number of items to be returned with each call.
|
DescribePoliciesRequest |
withNextToken(java.lang.String nextToken)
The token for the next set of items to return.
|
DescribePoliciesRequest |
withPolicyNames(java.util.Collection<java.lang.String> policyNames)
One or more policy names or policy ARNs to be described.
|
DescribePoliciesRequest |
withPolicyNames(java.lang.String... policyNames)
One or more policy names or policy ARNs to be described.
|
DescribePoliciesRequest |
withPolicyTypes(java.util.Collection<java.lang.String> policyTypes)
One or more policy types.
|
DescribePoliciesRequest |
withPolicyTypes(java.lang.String... policyTypes)
One or more policy types.
|
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
private java.lang.String autoScalingGroupName
The name of the group.
private SdkInternalList<java.lang.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.
private SdkInternalList<java.lang.String> policyTypes
One or more policy types. Valid values are SimpleScaling
and
StepScaling
.
private java.lang.String nextToken
The token for the next set of items to return. (You received this token from a previous call.)
private java.lang.Integer maxRecords
The maximum number of items to be returned with each call.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.public java.lang.String getAutoScalingGroupName()
The name of the group.
public DescribePoliciesRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.public java.util.List<java.lang.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.
public void setPolicyNames(java.util.Collection<java.lang.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.
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(java.lang.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)
or
withPolicyNames(java.util.Collection)
if you want to override
the existing values.
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(java.util.Collection<java.lang.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.
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 java.util.List<java.lang.String> getPolicyTypes()
One or more policy types. Valid values are SimpleScaling
and
StepScaling
.
SimpleScaling
and StepScaling
.public void setPolicyTypes(java.util.Collection<java.lang.String> policyTypes)
One or more policy types. Valid values are SimpleScaling
and
StepScaling
.
policyTypes
- One or more policy types. Valid values are
SimpleScaling
and StepScaling
.public DescribePoliciesRequest withPolicyTypes(java.lang.String... policyTypes)
One or more policy types. Valid values are 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.
policyTypes
- One or more policy types. Valid values are
SimpleScaling
and StepScaling
.public DescribePoliciesRequest withPolicyTypes(java.util.Collection<java.lang.String> policyTypes)
One or more policy types. Valid values are SimpleScaling
and
StepScaling
.
policyTypes
- One or more policy types. Valid values are
SimpleScaling
and StepScaling
.public void setNextToken(java.lang.String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- The token for the next set of items to return. (You received this
token from a previous call.)public java.lang.String getNextToken()
The token for the next set of items to return. (You received this token from a previous call.)
public DescribePoliciesRequest withNextToken(java.lang.String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- The token for the next set of items to return. (You received this
token from a previous call.)public void setMaxRecords(java.lang.Integer maxRecords)
The maximum number of items to be returned with each call.
maxRecords
- The maximum number of items to be returned with each call.public java.lang.Integer getMaxRecords()
The maximum number of items to be returned with each call.
public DescribePoliciesRequest withMaxRecords(java.lang.Integer maxRecords)
The maximum number of items to be returned with each call.
maxRecords
- The maximum number of items to be returned with each call.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribePoliciesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()