public class PutScalingPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
policyName
The name of the scaling policy.
|
private java.lang.String |
policyType
The policy type.
|
private java.lang.String |
resourceId
The unique resource identifier string for the scalable target that this
scaling policy applies to.
|
private java.lang.String |
scalableDimension
The scalable dimension of the scalable target that this scaling policy
applies to.
|
private java.lang.String |
serviceNamespace
The AWS service namespace of the scalable target that this scaling policy
applies to.
|
private StepScalingPolicyConfiguration |
stepScalingPolicyConfiguration
The configuration for the step scaling policy.
|
NOOP
Constructor and Description |
---|
PutScalingPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutScalingPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyName()
The name of the scaling policy.
|
java.lang.String |
getPolicyType()
The policy type.
|
java.lang.String |
getResourceId()
The unique resource identifier string for the scalable target that this
scaling policy applies to.
|
java.lang.String |
getScalableDimension()
The scalable dimension of the scalable target that this scaling policy
applies to.
|
java.lang.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(java.lang.String policyName)
The name of the scaling policy.
|
void |
setPolicyType(PolicyType policyType)
The policy type.
|
void |
setPolicyType(java.lang.String policyType)
The policy type.
|
void |
setResourceId(java.lang.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(java.lang.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(java.lang.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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutScalingPolicyRequest |
withPolicyName(java.lang.String policyName)
The name of the scaling policy.
|
PutScalingPolicyRequest |
withPolicyType(PolicyType policyType)
The policy type.
|
PutScalingPolicyRequest |
withPolicyType(java.lang.String policyType)
The policy type.
|
PutScalingPolicyRequest |
withResourceId(java.lang.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(java.lang.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(java.lang.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
private java.lang.String policyName
The name of the scaling policy.
private java.lang.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.
private java.lang.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
.
private java.lang.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.
private java.lang.String policyType
The policy type. This parameter is required if you are creating a new policy.
private 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.
public void setPolicyName(java.lang.String policyName)
The name of the scaling policy.
policyName
- The name of the scaling policy.public java.lang.String getPolicyName()
The name of the scaling policy.
public PutScalingPolicyRequest withPolicyName(java.lang.String policyName)
The name of the scaling policy.
policyName
- The name of the scaling policy.public void setServiceNamespace(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String getPolicyType()
The policy type. This parameter is required if you are creating a new policy.
PolicyType
public PutScalingPolicyRequest withPolicyType(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutScalingPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()