Class DescribeScalingPoliciesRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.applicationautoscaling.model.DescribeScalingPoliciesRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class DescribeScalingPoliciesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeScalingPoliciesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeScalingPoliciesRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)IntegergetMaxResults()The maximum number of scaling policy results returned byDescribeScalingPoliciesin paginated output.StringgetNextToken()TheNextTokenvalue returned from a previous paginatedDescribeScalingPoliciesrequest.List<String>getPolicyNames()The names of the scaling policies to describe.StringgetResourceId()The unique resource identifier string of the scalable target that the scaling policy is associated with.StringgetScalableDimension()The scalable dimension of the scalable target that the scaling policy is associated with.StringgetServiceNamespace()The AWS service namespace of the scalable target that the scaling policy is associated with.inthashCode()voidsetMaxResults(Integer maxResults)The maximum number of scaling policy results returned byDescribeScalingPoliciesin paginated output.voidsetNextToken(String nextToken)TheNextTokenvalue returned from a previous paginatedDescribeScalingPoliciesrequest.voidsetPolicyNames(Collection<String> policyNames)The names of the scaling policies to describe.voidsetResourceId(String resourceId)The unique resource identifier string of the scalable target that the scaling policy is associated with.voidsetScalableDimension(ScalableDimension scalableDimension)The scalable dimension of the scalable target that the scaling policy is associated with.voidsetScalableDimension(String scalableDimension)The scalable dimension of the scalable target that the scaling policy is associated with.voidsetServiceNamespace(ServiceNamespace serviceNamespace)The AWS service namespace of the scalable target that the scaling policy is associated with.voidsetServiceNamespace(String serviceNamespace)The AWS service namespace of the scalable target that the scaling policy is associated with.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeScalingPoliciesRequestwithMaxResults(Integer maxResults)The maximum number of scaling policy results returned byDescribeScalingPoliciesin paginated output.DescribeScalingPoliciesRequestwithNextToken(String nextToken)TheNextTokenvalue returned from a previous paginatedDescribeScalingPoliciesrequest.DescribeScalingPoliciesRequestwithPolicyNames(String... policyNames)The names of the scaling policies to describe.DescribeScalingPoliciesRequestwithPolicyNames(Collection<String> policyNames)The names of the scaling policies to describe.DescribeScalingPoliciesRequestwithResourceId(String resourceId)The unique resource identifier string of the scalable target that the scaling policy is associated with.DescribeScalingPoliciesRequestwithScalableDimension(ScalableDimension scalableDimension)The scalable dimension of the scalable target that the scaling policy is associated with.DescribeScalingPoliciesRequestwithScalableDimension(String scalableDimension)The scalable dimension of the scalable target that the scaling policy is associated with.DescribeScalingPoliciesRequestwithServiceNamespace(ServiceNamespace serviceNamespace)The AWS service namespace of the scalable target that the scaling policy is associated with.DescribeScalingPoliciesRequestwithServiceNamespace(String serviceNamespace)The AWS service namespace of the scalable target that the scaling policy is associated with.-
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
-
getPolicyNames
public List<String> getPolicyNames()
The names of the scaling policies to describe.
- Returns:
- The names of the scaling policies to describe.
-
setPolicyNames
public void setPolicyNames(Collection<String> policyNames)
The names of the scaling policies to describe.
- Parameters:
policyNames- The names of the scaling policies to describe.
-
withPolicyNames
public DescribeScalingPoliciesRequest withPolicyNames(String... policyNames)
The names of the scaling policies to describe.
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- The names of the scaling policies to describe.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPolicyNames
public DescribeScalingPoliciesRequest withPolicyNames(Collection<String> policyNames)
The names of the scaling policies to describe.
- Parameters:
policyNames- The names of the scaling policies to describe.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setServiceNamespace
public void setServiceNamespace(String serviceNamespace)
The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- Parameters:
serviceNamespace- The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.- See Also:
ServiceNamespace
-
getServiceNamespace
public String getServiceNamespace()
The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- Returns:
- The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- See Also:
ServiceNamespace
-
withServiceNamespace
public DescribeScalingPoliciesRequest withServiceNamespace(String serviceNamespace)
The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- Parameters:
serviceNamespace- The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ServiceNamespace
-
setServiceNamespace
public void setServiceNamespace(ServiceNamespace serviceNamespace)
The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- Parameters:
serviceNamespace- The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.- See Also:
ServiceNamespace
-
withServiceNamespace
public DescribeScalingPoliciesRequest withServiceNamespace(ServiceNamespace serviceNamespace)
The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- Parameters:
serviceNamespace- The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ServiceNamespace
-
setResourceId
public void setResourceId(String resourceId)
The unique resource identifier string of the scalable target that the scaling policy is associated with. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as
service/default/sample-webapp. If you specify a scalable dimension, you must also specify a resource ID.- Parameters:
resourceId- The unique resource identifier string of the scalable target that the scaling policy is associated with. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such asservice/default/sample-webapp. If you specify a scalable dimension, you must also specify a resource ID.
-
getResourceId
public String getResourceId()
The unique resource identifier string of the scalable target that the scaling policy is associated with. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as
service/default/sample-webapp. If you specify a scalable dimension, you must also specify a resource ID.- Returns:
- The unique resource identifier string of the scalable target that
the scaling policy is associated with. For Amazon ECS services,
this value is the resource type, followed by the cluster name and
service name, such as
service/default/sample-webapp. If you specify a scalable dimension, you must also specify a resource ID.
-
withResourceId
public DescribeScalingPoliciesRequest withResourceId(String resourceId)
The unique resource identifier string of the scalable target that the scaling policy is associated with. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as
service/default/sample-webapp. If you specify a scalable dimension, you must also specify a resource ID.- Parameters:
resourceId- The unique resource identifier string of the scalable target that the scaling policy is associated with. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such asservice/default/sample-webapp. If you specify a scalable dimension, you must also specify a resource ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setScalableDimension
public void setScalableDimension(String scalableDimension)
The scalable dimension of the scalable target that the scaling policy is associated with. The scalable dimension contains the service namespace, resource type, and scaling property, such as
ecs:service:DesiredCountfor the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.- Parameters:
scalableDimension- The scalable dimension of the scalable target that the scaling policy is associated with. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCountfor the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.- See Also:
ScalableDimension
-
getScalableDimension
public String getScalableDimension()
The scalable dimension of the scalable target that the scaling policy is associated with. The scalable dimension contains the service namespace, resource type, and scaling property, such as
ecs:service:DesiredCountfor the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.- Returns:
- The scalable dimension of the scalable target that the scaling
policy is associated with. The scalable dimension contains the
service namespace, resource type, and scaling property, such as
ecs:service:DesiredCountfor the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID. - See Also:
ScalableDimension
-
withScalableDimension
public DescribeScalingPoliciesRequest withScalableDimension(String scalableDimension)
The scalable dimension of the scalable target that the scaling policy is associated with. The scalable dimension contains the service namespace, resource type, and scaling property, such as
ecs:service:DesiredCountfor the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.- Parameters:
scalableDimension- The scalable dimension of the scalable target that the scaling policy is associated with. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCountfor the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ScalableDimension
-
setScalableDimension
public void setScalableDimension(ScalableDimension scalableDimension)
The scalable dimension of the scalable target that the scaling policy is associated with. The scalable dimension contains the service namespace, resource type, and scaling property, such as
ecs:service:DesiredCountfor the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.- Parameters:
scalableDimension- The scalable dimension of the scalable target that the scaling policy is associated with. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCountfor the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.- See Also:
ScalableDimension
-
withScalableDimension
public DescribeScalingPoliciesRequest withScalableDimension(ScalableDimension scalableDimension)
The scalable dimension of the scalable target that the scaling policy is associated with. The scalable dimension contains the service namespace, resource type, and scaling property, such as
ecs:service:DesiredCountfor the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.- Parameters:
scalableDimension- The scalable dimension of the scalable target that the scaling policy is associated with. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCountfor the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ScalableDimension
-
setMaxResults
public void setMaxResults(Integer maxResults)
The maximum number of scaling policy results returned by
DescribeScalingPoliciesin paginated output. When this parameter is used,DescribeScalingPoliciesreturns up toMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribeScalingPoliciesrequest with the returnedNextTokenvalue. This value can be between 1 and 50. If this parameter is not used, thenDescribeScalingPoliciesreturns up to 50 results and aNextTokenvalue, if applicable.- Parameters:
maxResults- The maximum number of scaling policy results returned byDescribeScalingPoliciesin paginated output. When this parameter is used,DescribeScalingPoliciesreturns up toMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribeScalingPoliciesrequest with the returnedNextTokenvalue. This value can be between 1 and 50. If this parameter is not used, thenDescribeScalingPoliciesreturns up to 50 results and aNextTokenvalue, if applicable.
-
getMaxResults
public Integer getMaxResults()
The maximum number of scaling policy results returned by
DescribeScalingPoliciesin paginated output. When this parameter is used,DescribeScalingPoliciesreturns up toMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribeScalingPoliciesrequest with the returnedNextTokenvalue. This value can be between 1 and 50. If this parameter is not used, thenDescribeScalingPoliciesreturns up to 50 results and aNextTokenvalue, if applicable.- Returns:
- The maximum number of scaling policy results returned by
DescribeScalingPoliciesin paginated output. When this parameter is used,DescribeScalingPoliciesreturns up toMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribeScalingPoliciesrequest with the returnedNextTokenvalue. This value can be between 1 and 50. If this parameter is not used, thenDescribeScalingPoliciesreturns up to 50 results and aNextTokenvalue, if applicable.
-
withMaxResults
public DescribeScalingPoliciesRequest withMaxResults(Integer maxResults)
The maximum number of scaling policy results returned by
DescribeScalingPoliciesin paginated output. When this parameter is used,DescribeScalingPoliciesreturns up toMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribeScalingPoliciesrequest with the returnedNextTokenvalue. This value can be between 1 and 50. If this parameter is not used, thenDescribeScalingPoliciesreturns up to 50 results and aNextTokenvalue, if applicable.- Parameters:
maxResults- The maximum number of scaling policy results returned byDescribeScalingPoliciesin paginated output. When this parameter is used,DescribeScalingPoliciesreturns up toMaxResultsresults in a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribeScalingPoliciesrequest with the returnedNextTokenvalue. This value can be between 1 and 50. If this parameter is not used, thenDescribeScalingPoliciesreturns up to 50 results and aNextTokenvalue, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The
NextTokenvalue returned from a previous paginatedDescribeScalingPoliciesrequest. Pagination continues from the end of the previous results that returned theNextTokenvalue. This value isnullwhen there are no more results to return.- Parameters:
nextToken- TheNextTokenvalue returned from a previous paginatedDescribeScalingPoliciesrequest. Pagination continues from the end of the previous results that returned theNextTokenvalue. This value isnullwhen there are no more results to return.
-
getNextToken
public String getNextToken()
The
NextTokenvalue returned from a previous paginatedDescribeScalingPoliciesrequest. Pagination continues from the end of the previous results that returned theNextTokenvalue. This value isnullwhen there are no more results to return.- Returns:
- The
NextTokenvalue returned from a previous paginatedDescribeScalingPoliciesrequest. Pagination continues from the end of the previous results that returned theNextTokenvalue. This value isnullwhen there are no more results to return.
-
withNextToken
public DescribeScalingPoliciesRequest withNextToken(String nextToken)
The
NextTokenvalue returned from a previous paginatedDescribeScalingPoliciesrequest. Pagination continues from the end of the previous results that returned theNextTokenvalue. This value isnullwhen there are no more results to return.- Parameters:
nextToken- TheNextTokenvalue returned from a previous paginatedDescribeScalingPoliciesrequest. Pagination continues from the end of the previous results that returned theNextTokenvalue. This value isnullwhen there are no more results to return.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeScalingPoliciesRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-