public class PutScalingPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
PutScalingPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutScalingPolicyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyName()
The name of the scaling policy.
|
String |
getPolicyType()
The policy type.
|
String |
getResourceId()
The unique resource identifier string for the scalable target that this scaling policy applies to.
|
String |
getScalableDimension()
The scalable dimension of the scalable target that this scaling policy applies to.
|
String |
getServiceNamespace()
The AWS service namespace of the scalable target that this scaling policy applies to.
|
StepScalingPolicyConfiguration |
getStepScalingPolicyConfiguration()
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PutScalingPolicyRequest |
withPolicyName(String policyName)
The name of the scaling policy.
|
PutScalingPolicyRequest |
withPolicyType(PolicyType policyType)
The policy type.
|
PutScalingPolicyRequest |
withPolicyType(String policyType)
The policy type.
|
PutScalingPolicyRequest |
withResourceId(String resourceId)
The unique resource identifier string for the scalable target that this scaling policy applies to.
|
PutScalingPolicyRequest |
withScalableDimension(ScalableDimension scalableDimension)
The scalable dimension of the scalable target that this scaling policy applies to.
|
PutScalingPolicyRequest |
withScalableDimension(String scalableDimension)
The scalable dimension of the scalable target that this scaling policy applies to.
|
PutScalingPolicyRequest |
withServiceNamespace(ServiceNamespace serviceNamespace)
The AWS service namespace of the scalable target that this scaling policy applies to.
|
PutScalingPolicyRequest |
withServiceNamespace(String serviceNamespace)
The AWS service namespace of the scalable target that this scaling policy applies to.
|
PutScalingPolicyRequest |
withStepScalingPolicyConfiguration(StepScalingPolicyConfiguration stepScalingPolicyConfiguration)
The configuration for the step scaling policy.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setPolicyName(String policyName)
The name of the scaling policy.
policyName - The name of the scaling policy.public String getPolicyName()
The name of the scaling policy.
public PutScalingPolicyRequest withPolicyName(String policyName)
The name of the scaling policy.
policyName - The name of the scaling policy.public void setServiceNamespace(String 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.
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.ServiceNamespacepublic String 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.
ServiceNamespacepublic PutScalingPolicyRequest withServiceNamespace(String 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.
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.ServiceNamespacepublic void setServiceNamespace(ServiceNamespace 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.
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.ServiceNamespacepublic PutScalingPolicyRequest withServiceNamespace(ServiceNamespace 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.
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.ServiceNamespacepublic void setResourceId(String resourceId)
The unique resource identifier string for the scalable target that this scaling policy applies to. For Amazon ECS
services, the resource type is services, and the identifier is the cluster name and service name;
for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is
spot-fleet-request, and the identifier is the Spot fleet request ID; for example,
spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
resourceId - The unique resource identifier string for the scalable target that this scaling policy applies to. For
Amazon ECS services, the resource type is services, and the identifier is the cluster name
and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet
requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet
request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.public String getResourceId()
The unique resource identifier string for the scalable target that this scaling policy applies to. For Amazon ECS
services, the resource type is services, and the identifier is the cluster name and service name;
for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is
spot-fleet-request, and the identifier is the Spot fleet request ID; for example,
spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
services, and the identifier is the cluster name
and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet
requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet
request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.public PutScalingPolicyRequest withResourceId(String resourceId)
The unique resource identifier string for the scalable target that this scaling policy applies to. For Amazon ECS
services, the resource type is services, and the identifier is the cluster name and service name;
for example, service/default/sample-webapp. For Amazon EC2 Spot fleet requests, the resource type is
spot-fleet-request, and the identifier is the Spot fleet request ID; for example,
spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
resourceId - The unique resource identifier string for the scalable target that this scaling policy applies to. For
Amazon ECS services, the resource type is services, and the identifier is the cluster name
and service name; for example, service/default/sample-webapp. For Amazon EC2 Spot fleet
requests, the resource type is spot-fleet-request, and the identifier is the Spot fleet
request ID; for example, spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.public void setScalableDimension(String 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 as
ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or
ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.
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 as
ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or
ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet
request.ScalableDimensionpublic String 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, or
ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.
ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or
ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet
request.ScalableDimensionpublic PutScalingPolicyRequest withScalableDimension(String 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 as
ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or
ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.
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 as
ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or
ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet
request.ScalableDimensionpublic void setScalableDimension(ScalableDimension 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 as
ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or
ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.
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 as
ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or
ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet
request.ScalableDimensionpublic PutScalingPolicyRequest withScalableDimension(ScalableDimension 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 as
ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or
ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet request.
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 as
ecs:service:DesiredCount for the desired task count of an Amazon ECS service, or
ec2:spot-fleet-request:TargetCapacity for the target capacity of an Amazon EC2 Spot fleet
request.ScalableDimensionpublic void setPolicyType(String policyType)
The policy type. If you are creating a new policy, this parameter is required. If you are updating an existing policy, this parameter is not required.
policyType - The policy type. If you are creating a new policy, this parameter is required. If you are updating an
existing policy, this parameter is not required.PolicyTypepublic String getPolicyType()
The policy type. If you are creating a new policy, this parameter is required. If you are updating an existing policy, this parameter is not required.
PolicyTypepublic PutScalingPolicyRequest withPolicyType(String policyType)
The policy type. If you are creating a new policy, this parameter is required. If you are updating an existing policy, this parameter is not required.
policyType - The policy type. If you are creating a new policy, this parameter is required. If you are updating an
existing policy, this parameter is not required.PolicyTypepublic void setPolicyType(PolicyType policyType)
The policy type. If you are creating a new policy, this parameter is required. If you are updating an existing policy, this parameter is not required.
policyType - The policy type. If you are creating a new policy, this parameter is required. If you are updating an
existing policy, this parameter is not required.PolicyTypepublic PutScalingPolicyRequest withPolicyType(PolicyType policyType)
The policy type. If you are creating a new policy, this parameter is required. If you are updating an existing policy, this parameter is not required.
policyType - The policy type. If you are creating a new policy, this parameter is required. If you are updating an
existing policy, this parameter is not required.PolicyTypepublic void setStepScalingPolicyConfiguration(StepScalingPolicyConfiguration stepScalingPolicyConfiguration)
The configuration for the step scaling policy. If you are creating a new policy, this parameter is required. If you are updating an existing policy, this parameter is not required. For more information, see StepScalingPolicyConfiguration and StepAdjustment.
stepScalingPolicyConfiguration - The configuration for the step scaling policy. If you are creating a new policy, this parameter is
required. If you are updating an existing policy, this parameter is not required. For more information,
see StepScalingPolicyConfiguration and StepAdjustment.public StepScalingPolicyConfiguration getStepScalingPolicyConfiguration()
The configuration for the step scaling policy. If you are creating a new policy, this parameter is required. If you are updating an existing policy, this parameter is not required. For more information, see StepScalingPolicyConfiguration and StepAdjustment.
public PutScalingPolicyRequest withStepScalingPolicyConfiguration(StepScalingPolicyConfiguration stepScalingPolicyConfiguration)
The configuration for the step scaling policy. If you are creating a new policy, this parameter is required. If you are updating an existing policy, this parameter is not required. For more information, see StepScalingPolicyConfiguration and StepAdjustment.
stepScalingPolicyConfiguration - The configuration for the step scaling policy. If you are creating a new policy, this parameter is
required. If you are updating an existing policy, this parameter is not required. For more information,
see StepScalingPolicyConfiguration and StepAdjustment.public String toString()
toString in class ObjectObject.toString()public PutScalingPolicyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2016. All rights reserved.