public class RegisterScalableTargetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
RegisterScalableTargetRequest() |
Modifier and Type | Method and Description |
---|---|
RegisterScalableTargetRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Integer |
getMaxCapacity()
The maximum value for this scalable target to scale out to in response to scaling activities.
|
Integer |
getMinCapacity()
The minimum value for this scalable target to scale in to in response to scaling activities.
|
String |
getResourceId()
The resource type and unique identifier string for the resource to associate with the scalable target.
|
String |
getRoleARN()
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
|
String |
getScalableDimension()
The scalable dimension associated with the scalable target.
|
String |
getServiceNamespace()
The namespace for the AWS service that the scalable target is associated with.
|
int |
hashCode() |
void |
setMaxCapacity(Integer maxCapacity)
The maximum value for this scalable target to scale out to in response to scaling activities.
|
void |
setMinCapacity(Integer minCapacity)
The minimum value for this scalable target to scale in to in response to scaling activities.
|
void |
setResourceId(String resourceId)
The resource type and unique identifier string for the resource to associate with the scalable target.
|
void |
setRoleARN(String roleARN)
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
|
void |
setScalableDimension(ScalableDimension scalableDimension)
The scalable dimension associated with the scalable target.
|
void |
setScalableDimension(String scalableDimension)
The scalable dimension associated with the scalable target.
|
void |
setServiceNamespace(ServiceNamespace serviceNamespace)
The namespace for the AWS service that the scalable target is associated with.
|
void |
setServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scalable target is associated with.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RegisterScalableTargetRequest |
withMaxCapacity(Integer maxCapacity)
The maximum value for this scalable target to scale out to in response to scaling activities.
|
RegisterScalableTargetRequest |
withMinCapacity(Integer minCapacity)
The minimum value for this scalable target to scale in to in response to scaling activities.
|
RegisterScalableTargetRequest |
withResourceId(String resourceId)
The resource type and unique identifier string for the resource to associate with the scalable target.
|
RegisterScalableTargetRequest |
withRoleARN(String roleARN)
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
|
RegisterScalableTargetRequest |
withScalableDimension(ScalableDimension scalableDimension)
The scalable dimension associated with the scalable target.
|
RegisterScalableTargetRequest |
withScalableDimension(String scalableDimension)
The scalable dimension associated with the scalable target.
|
RegisterScalableTargetRequest |
withServiceNamespace(ServiceNamespace serviceNamespace)
The namespace for the AWS service that the scalable target is associated with.
|
RegisterScalableTargetRequest |
withServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scalable target is associated with.
|
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 setServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services, the
namespace value is ecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
serviceNamespace
- The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services,
the namespace value is ecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.ServiceNamespace
public String getServiceNamespace()
The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services, the
namespace value is ecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
ecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.ServiceNamespace
public RegisterScalableTargetRequest withServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services, the
namespace value is ecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
serviceNamespace
- The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services,
the namespace value is ecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.ServiceNamespace
public void setServiceNamespace(ServiceNamespace serviceNamespace)
The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services, the
namespace value is ecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
serviceNamespace
- The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services,
the namespace value is ecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.ServiceNamespace
public RegisterScalableTargetRequest withServiceNamespace(ServiceNamespace serviceNamespace)
The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services, the
namespace value is ecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
serviceNamespace
- The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services,
the namespace value is ecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.ServiceNamespace
public void setResourceId(String resourceId)
The resource type and unique identifier string for the resource to associate with the scalable target. 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 resource type and unique identifier string for the resource to associate with the scalable target. 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 resource type and unique identifier string for the resource to associate with the scalable target. 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 RegisterScalableTargetRequest withResourceId(String resourceId)
The resource type and unique identifier string for the resource to associate with the scalable target. 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 resource type and unique identifier string for the resource to associate with the scalable target. 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 associated with the scalable target. 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 associated with the scalable target. 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
public String getScalableDimension()
The scalable dimension associated with the scalable target. 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.ScalableDimension
public RegisterScalableTargetRequest withScalableDimension(String scalableDimension)
The scalable dimension associated with the scalable target. 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 associated with the scalable target. 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
public void setScalableDimension(ScalableDimension scalableDimension)
The scalable dimension associated with the scalable target. 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 associated with the scalable target. 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
public RegisterScalableTargetRequest withScalableDimension(ScalableDimension scalableDimension)
The scalable dimension associated with the scalable target. 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 associated with the scalable target. 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
public void setMinCapacity(Integer minCapacity)
The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
minCapacity
- The minimum value for this scalable target to scale in to in response to scaling activities. This
parameter is required if you are registering a new scalable target, and it is optional if you are updating
an existing one.public Integer getMinCapacity()
The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
public RegisterScalableTargetRequest withMinCapacity(Integer minCapacity)
The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
minCapacity
- The minimum value for this scalable target to scale in to in response to scaling activities. This
parameter is required if you are registering a new scalable target, and it is optional if you are updating
an existing one.public void setMaxCapacity(Integer maxCapacity)
The maximum value for this scalable target to scale out to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
maxCapacity
- The maximum value for this scalable target to scale out to in response to scaling activities. This
parameter is required if you are registering a new scalable target, and it is optional if you are updating
an existing one.public Integer getMaxCapacity()
The maximum value for this scalable target to scale out to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
public RegisterScalableTargetRequest withMaxCapacity(Integer maxCapacity)
The maximum value for this scalable target to scale out to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
maxCapacity
- The maximum value for this scalable target to scale out to in response to scaling activities. This
parameter is required if you are registering a new scalable target, and it is optional if you are updating
an existing one.public void setRoleARN(String roleARN)
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
roleARN
- The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your
behalf. This parameter is required if you are registering a new scalable target, and it is optional if you
are updating an existing one.public String getRoleARN()
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
public RegisterScalableTargetRequest withRoleARN(String roleARN)
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
roleARN
- The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your
behalf. This parameter is required if you are registering a new scalable target, and it is optional if you
are updating an existing one.public String toString()
toString
in class Object
Object.toString()
public RegisterScalableTargetRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.