@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribePoliciesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DescribePoliciesRequest() |
Modifier and Type | Method and Description |
---|---|
DescribePoliciesRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling 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()
The names of one or more policies.
|
List<String> |
getPolicyTypes()
One or more policy types.
|
int |
hashCode() |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling 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)
The names of one or more policies.
|
void |
setPolicyTypes(Collection<String> policyTypes)
One or more policy types.
|
String |
toString()
Returns a string representation of this object.
|
DescribePoliciesRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling 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)
The names of one or more policies.
|
DescribePoliciesRequest |
withPolicyNames(String... policyNames)
The names of one or more policies.
|
DescribePoliciesRequest |
withPolicyTypes(Collection<String> policyTypes)
One or more policy types.
|
DescribePoliciesRequest |
withPolicyTypes(String... policyTypes)
One or more policy types.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public String getAutoScalingGroupName()
The name of the Auto Scaling group.
public DescribePoliciesRequest withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public List<String> getPolicyNames()
The names of one or more policies. If you omit this property, all policies are described. If a group name is provided, the results are limited to that group. If you specify an unknown policy name, it is ignored with no error.
Array Members: Maximum number of 50 items.
Array Members: Maximum number of 50 items.
public void setPolicyNames(Collection<String> policyNames)
The names of one or more policies. If you omit this property, all policies are described. If a group name is provided, the results are limited to that group. If you specify an unknown policy name, it is ignored with no error.
Array Members: Maximum number of 50 items.
policyNames
- The names of one or more policies. If you omit this property, all policies are described. If a group name
is provided, the results are limited to that group. If you specify an unknown policy name, it is ignored
with no error.
Array Members: Maximum number of 50 items.
public DescribePoliciesRequest withPolicyNames(String... policyNames)
The names of one or more policies. If you omit this property, all policies are described. If a group name is provided, the results are limited to that group. If you specify an unknown policy name, it is ignored with no error.
Array Members: Maximum number of 50 items.
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
- The names of one or more policies. If you omit this property, all policies are described. If a group name
is provided, the results are limited to that group. If you specify an unknown policy name, it is ignored
with no error.
Array Members: Maximum number of 50 items.
public DescribePoliciesRequest withPolicyNames(Collection<String> policyNames)
The names of one or more policies. If you omit this property, all policies are described. If a group name is provided, the results are limited to that group. If you specify an unknown policy name, it is ignored with no error.
Array Members: Maximum number of 50 items.
policyNames
- The names of one or more policies. If you omit this property, all policies are described. If a group name
is provided, the results are limited to that group. If you specify an unknown policy name, it is ignored
with no error.
Array Members: Maximum number of 50 items.
public List<String> getPolicyTypes()
One or more policy types. The valid values are SimpleScaling
, StepScaling
,
TargetTrackingScaling
, and PredictiveScaling
.
SimpleScaling
, StepScaling
,
TargetTrackingScaling
, and PredictiveScaling
.public void setPolicyTypes(Collection<String> policyTypes)
One or more policy types. The valid values are SimpleScaling
, StepScaling
,
TargetTrackingScaling
, and PredictiveScaling
.
policyTypes
- One or more policy types. The valid values are SimpleScaling
, StepScaling
,
TargetTrackingScaling
, and PredictiveScaling
.public DescribePoliciesRequest withPolicyTypes(String... policyTypes)
One or more policy types. The valid values are SimpleScaling
, StepScaling
,
TargetTrackingScaling
, and PredictiveScaling
.
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. The valid values are SimpleScaling
, StepScaling
,
TargetTrackingScaling
, and PredictiveScaling
.public DescribePoliciesRequest withPolicyTypes(Collection<String> policyTypes)
One or more policy types. The valid values are SimpleScaling
, StepScaling
,
TargetTrackingScaling
, and PredictiveScaling
.
policyTypes
- One or more policy types. The valid values are SimpleScaling
, StepScaling
,
TargetTrackingScaling
, and PredictiveScaling
.public void setNextToken(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 String getNextToken()
The token for the next set of items to return. (You received this token from a previous call.)
public DescribePoliciesRequest withNextToken(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(Integer maxRecords)
The maximum number of items to be returned with each call. The default value is 50
and the maximum
value is 100
.
maxRecords
- The maximum number of items to be returned with each call. The default value is 50
and the
maximum value is 100
.public Integer getMaxRecords()
The maximum number of items to be returned with each call. The default value is 50
and the maximum
value is 100
.
50
and the
maximum value is 100
.public DescribePoliciesRequest withMaxRecords(Integer maxRecords)
The maximum number of items to be returned with each call. The default value is 50
and the maximum
value is 100
.
maxRecords
- The maximum number of items to be returned with each call. The default value is 50
and the
maximum value is 100
.public String toString()
toString
in class Object
Object.toString()
public DescribePoliciesRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2023. All rights reserved.