Class PutScalingPolicyRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The name of the scaling policy.The policy type.The unique resource identifier string for the scalable target that this scaling policy applies to.The scalable dimension of the scalable target that this scaling policy applies to.The AWS service namespace of the scalable target that this scaling policy applies to.The configuration for the step scaling policy.int
hashCode()
void
setPolicyName
(String policyName) The name of the scaling policy.void
setPolicyType
(PolicyType policyType) The policy type.void
setPolicyType
(String policyType) The policy type.void
setResourceId
(String resourceId) The unique resource identifier string for the scalable target that this scaling policy applies to.void
setScalableDimension
(ScalableDimension scalableDimension) The scalable dimension of the scalable target that this scaling policy applies to.void
setScalableDimension
(String scalableDimension) The scalable dimension of the scalable target that this scaling policy applies to.void
setServiceNamespace
(ServiceNamespace serviceNamespace) The AWS service namespace of the scalable target that this scaling policy applies to.void
setServiceNamespace
(String serviceNamespace) The AWS service namespace of the scalable target that this scaling policy applies to.void
setStepScalingPolicyConfiguration
(StepScalingPolicyConfiguration stepScalingPolicyConfiguration) The configuration for the step scaling policy.toString()
Returns a string representation of this object; useful for testing and debugging.withPolicyName
(String policyName) The name of the scaling policy.withPolicyType
(PolicyType policyType) The policy type.withPolicyType
(String policyType) The policy type.withResourceId
(String resourceId) The unique resource identifier string for the scalable target that this scaling policy applies to.withScalableDimension
(ScalableDimension scalableDimension) The scalable dimension of the scalable target that this scaling policy applies to.withScalableDimension
(String scalableDimension) The scalable dimension of the scalable target that this scaling policy applies to.withServiceNamespace
(ServiceNamespace serviceNamespace) The AWS service namespace of the scalable target that this scaling policy applies to.withServiceNamespace
(String serviceNamespace) The AWS service namespace of the scalable target that this scaling policy applies to.withStepScalingPolicyConfiguration
(StepScalingPolicyConfiguration stepScalingPolicyConfiguration) The configuration for the step scaling policy.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
-
Constructor Details
-
PutScalingPolicyRequest
public PutScalingPolicyRequest()
-
-
Method Details
-
setPolicyName
The name of the scaling policy.
- Parameters:
policyName
- The name of the scaling policy.
-
getPolicyName
The name of the scaling policy.
- Returns:
- The name of the scaling policy.
-
withPolicyName
The name of the scaling policy.
- Parameters:
policyName
- The name of the scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setServiceNamespace
The AWS service namespace of the scalable target that this scaling policy applies to. 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 this scaling policy applies to. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.- See Also:
-
getServiceNamespace
The AWS service namespace of the scalable target that this scaling policy applies to. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- Returns:
- The AWS service namespace of the scalable target that this scaling policy applies to. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
- See Also:
-
withServiceNamespace
The AWS service namespace of the scalable target that this scaling policy applies to. 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 this scaling policy applies to. 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:
-
setServiceNamespace
The AWS service namespace of the scalable target that this scaling policy applies to. 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 this scaling policy applies to. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.- See Also:
-
withServiceNamespace
The AWS service namespace of the scalable target that this scaling policy applies to. 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 this scaling policy applies to. 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:
-
setResourceId
The unique resource identifier string for the scalable target that this scaling policy applies to. 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 resource identifier string for the scalable target that this scaling policy applies to. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such asservice/default/sample-webapp
.
-
getResourceId
The unique resource identifier string for the scalable target that this scaling policy applies to. 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 resource identifier string for the scalable target
that this scaling policy applies to. 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
The unique resource identifier string for the scalable target that this scaling policy applies to. 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 resource identifier string for the scalable target that this scaling policy applies to. 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
The scalable dimension of the scalable target that this scaling policy applies to. The scalable dimension contains the service namespace, resource type, and scaling property, such as
ecs:service:DesiredCount
for the desired task count of an Amazon ECS service.- Parameters:
scalableDimension
- The scalable dimension of the scalable target that this scaling policy applies to. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCount
for the desired task count of an Amazon ECS service.- See Also:
-
getScalableDimension
The scalable dimension of the scalable target that this scaling policy applies to. The scalable dimension contains the service namespace, resource type, and scaling property, such as
ecs:service:DesiredCount
for the desired task count of an Amazon ECS service.- Returns:
- The scalable dimension of the scalable target that this scaling
policy applies to. The scalable dimension contains the service
namespace, resource type, and scaling property, such as
ecs:service:DesiredCount
for the desired task count of an Amazon ECS service. - See Also:
-
withScalableDimension
The scalable dimension of the scalable target that this scaling policy applies to. The scalable dimension contains the service namespace, resource type, and scaling property, such as
ecs:service:DesiredCount
for the desired task count of an Amazon ECS service.- Parameters:
scalableDimension
- The scalable dimension of the scalable target that this scaling policy applies to. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCount
for 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:
-
setScalableDimension
The scalable dimension of the scalable target that this scaling policy applies to. The scalable dimension contains the service namespace, resource type, and scaling property, such as
ecs:service:DesiredCount
for the desired task count of an Amazon ECS service.- Parameters:
scalableDimension
- The scalable dimension of the scalable target that this scaling policy applies to. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCount
for the desired task count of an Amazon ECS service.- See Also:
-
withScalableDimension
The scalable dimension of the scalable target that this scaling policy applies to. The scalable dimension contains the service namespace, resource type, and scaling property, such as
ecs:service:DesiredCount
for the desired task count of an Amazon ECS service.- Parameters:
scalableDimension
- The scalable dimension of the scalable target that this scaling policy applies to. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCount
for 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:
-
setPolicyType
The policy type. This parameter is required if you are creating a new policy.
- Parameters:
policyType
- The policy type. This parameter is required if you are creating a new policy.- See Also:
-
getPolicyType
The policy type. This parameter is required if you are creating a new policy.
- Returns:
- The policy type. This parameter is required if you are creating a new policy.
- See Also:
-
withPolicyType
The policy type. This parameter is required if you are creating a new policy.
- Parameters:
policyType
- The policy type. This parameter is required if you are creating a new policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setPolicyType
The policy type. This parameter is required if you are creating a new policy.
- Parameters:
policyType
- The policy type. This parameter is required if you are creating a new policy.- See Also:
-
withPolicyType
The policy type. This parameter is required if you are creating a new policy.
- Parameters:
policyType
- The policy type. This parameter is required if you are creating a new policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setStepScalingPolicyConfiguration
public void setStepScalingPolicyConfiguration(StepScalingPolicyConfiguration stepScalingPolicyConfiguration) The configuration for the step scaling policy. This parameter is required if you are creating a new policy. For more information, see StepScalingPolicyConfiguration and StepAdjustment in the Application Auto Scaling API Reference.
- Parameters:
stepScalingPolicyConfiguration
- The configuration for the step scaling policy. This parameter is required if you are creating a new policy. For more information, see StepScalingPolicyConfiguration and StepAdjustment in the Application Auto Scaling API Reference.
-
getStepScalingPolicyConfiguration
The configuration for the step scaling policy. This parameter is required if you are creating a new policy. For more information, see StepScalingPolicyConfiguration and StepAdjustment in the Application Auto Scaling API Reference.
- Returns:
- The configuration for the step scaling policy. This parameter is required if you are creating a new policy. For more information, see StepScalingPolicyConfiguration and StepAdjustment in the Application Auto Scaling API Reference.
-
withStepScalingPolicyConfiguration
public PutScalingPolicyRequest withStepScalingPolicyConfiguration(StepScalingPolicyConfiguration stepScalingPolicyConfiguration) The configuration for the step scaling policy. This parameter is required if you are creating a new policy. For more information, see StepScalingPolicyConfiguration and StepAdjustment in the Application Auto Scaling API Reference.
- Parameters:
stepScalingPolicyConfiguration
- The configuration for the step scaling policy. This parameter is required if you are creating a new policy. For more information, see StepScalingPolicyConfiguration and StepAdjustment in the Application Auto Scaling API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-