Class DeleteScalingPolicyRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.applicationautoscaling.model.DeleteScalingPolicyRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class DeleteScalingPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DeleteScalingPolicyRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteScalingPolicyRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetPolicyName()The name of the scaling policy to delete.StringgetResourceId()The unique identifier string for the resource associated with the scaling policy.StringgetScalableDimension()The scalable dimension associated with the scaling policy.StringgetServiceNamespace()The namespace for the AWS service that the scaling policy is associated with.inthashCode()voidsetPolicyName(String policyName)The name of the scaling policy to delete.voidsetResourceId(String resourceId)The unique identifier string for the resource associated with the scaling policy.voidsetScalableDimension(ScalableDimension scalableDimension)The scalable dimension associated with the scaling policy.voidsetScalableDimension(String scalableDimension)The scalable dimension associated with the scaling policy.voidsetServiceNamespace(ServiceNamespace serviceNamespace)The namespace for the AWS service that the scaling policy is associated with.voidsetServiceNamespace(String serviceNamespace)The namespace for the AWS service that the scaling policy is associated with.StringtoString()Returns a string representation of this object; useful for testing and debugging.DeleteScalingPolicyRequestwithPolicyName(String policyName)The name of the scaling policy to delete.DeleteScalingPolicyRequestwithResourceId(String resourceId)The unique identifier string for the resource associated with the scaling policy.DeleteScalingPolicyRequestwithScalableDimension(ScalableDimension scalableDimension)The scalable dimension associated with the scaling policy.DeleteScalingPolicyRequestwithScalableDimension(String scalableDimension)The scalable dimension associated with the scaling policy.DeleteScalingPolicyRequestwithServiceNamespace(ServiceNamespace serviceNamespace)The namespace for the AWS service that the scaling policy is associated with.DeleteScalingPolicyRequestwithServiceNamespace(String serviceNamespace)The namespace for the AWS service 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
-
setPolicyName
public void setPolicyName(String policyName)
The name of the scaling policy to delete.
- Parameters:
policyName- The name of the scaling policy to delete.
-
getPolicyName
public String getPolicyName()
The name of the scaling policy to delete.
- Returns:
- The name of the scaling policy to delete.
-
withPolicyName
public DeleteScalingPolicyRequest withPolicyName(String policyName)
The name of the scaling policy to delete.
- Parameters:
policyName- The name of the scaling policy to delete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setServiceNamespace
public void setServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- Parameters:
serviceNamespace- The namespace for the AWS service 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 namespace for the AWS service that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- Returns:
- The namespace for the AWS service 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 DeleteScalingPolicyRequest withServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- Parameters:
serviceNamespace- The namespace for the AWS service 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 namespace for the AWS service that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- Parameters:
serviceNamespace- The namespace for the AWS service 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 DeleteScalingPolicyRequest withServiceNamespace(ServiceNamespace serviceNamespace)
The namespace for the AWS service that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- Parameters:
serviceNamespace- The namespace for the AWS service 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 identifier string for the resource associated with the scaling policy. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as
service/default/sample-webapp.- Parameters:
resourceId- The unique identifier string for the resource associated with the scaling policy. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such asservice/default/sample-webapp.
-
getResourceId
public String getResourceId()
The unique identifier string for the resource associated with the scaling policy. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as
service/default/sample-webapp.- Returns:
- The unique identifier string for the resource associated with the
scaling policy. For Amazon ECS services, this value is the
resource type, followed by the cluster name and service name,
such as
service/default/sample-webapp.
-
withResourceId
public DeleteScalingPolicyRequest withResourceId(String resourceId)
The unique identifier string for the resource associated with the scaling policy. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as
service/default/sample-webapp.- Parameters:
resourceId- The unique identifier string for the resource associated with the scaling policy. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such asservice/default/sample-webapp.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setScalableDimension
public void setScalableDimension(String scalableDimension)
The scalable dimension associated with the scaling policy. 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.- Parameters:
scalableDimension- The scalable dimension associated with the scaling policy. 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.- See Also:
ScalableDimension
-
getScalableDimension
public String getScalableDimension()
The scalable dimension associated with the scaling policy. 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.- Returns:
- The scalable dimension associated with the scaling policy. 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. - See Also:
ScalableDimension
-
withScalableDimension
public DeleteScalingPolicyRequest withScalableDimension(String scalableDimension)
The scalable dimension associated with the scaling policy. 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.- Parameters:
scalableDimension- The scalable dimension associated with the scaling policy. 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.- 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 associated with the scaling policy. 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.- Parameters:
scalableDimension- The scalable dimension associated with the scaling policy. 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.- See Also:
ScalableDimension
-
withScalableDimension
public DeleteScalingPolicyRequest withScalableDimension(ScalableDimension scalableDimension)
The scalable dimension associated with the scaling policy. 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.- Parameters:
scalableDimension- The scalable dimension associated with the scaling policy. 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ScalableDimension
-
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 DeleteScalingPolicyRequest 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()
-
-