public class PutScalingPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutScalingPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutScalingPolicyRequest |
clone()
Creates a shallow clone of this request.
|
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, withSdkRequestTimeout
public 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.ServiceNamespace
public 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.
ServiceNamespace
public 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.ServiceNamespace
public 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.ServiceNamespace
public 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.ServiceNamespace
public void setResourceId(String 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 as
service/default/sample-webapp
.
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 as service/default/sample-webapp
.public String 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
.
service/default/sample-webapp
.public PutScalingPolicyRequest withResourceId(String 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 as
service/default/sample-webapp
.
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 as service/default/sample-webapp
.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.
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.ScalableDimension
public 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.
ecs:service:DesiredCount
for the desired task count
of an Amazon ECS service.ScalableDimension
public 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.
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.ScalableDimension
public 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.
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.ScalableDimension
public 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.
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.ScalableDimension
public void setPolicyType(String policyType)
The policy type. This parameter is required if you are creating a new policy.
policyType
- The policy type. This parameter is required if you are creating a
new policy.PolicyType
public String getPolicyType()
The policy type. This parameter is required if you are creating a new policy.
PolicyType
public PutScalingPolicyRequest withPolicyType(String policyType)
The policy type. This parameter is required if you are creating a new policy.
policyType
- The policy type. This parameter is required if you are creating a
new policy.PolicyType
public void setPolicyType(PolicyType policyType)
The policy type. This parameter is required if you are creating a new policy.
policyType
- The policy type. This parameter is required if you are creating a
new policy.PolicyType
public PutScalingPolicyRequest withPolicyType(PolicyType policyType)
The policy type. This parameter is required if you are creating a new policy.
policyType
- The policy type. This parameter is required if you are creating a
new policy.PolicyType
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.
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.public StepScalingPolicyConfiguration 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.
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.
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.public String toString()
toString
in class Object
Object.toString()
public PutScalingPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2018. All rights reserved.