public class ScalableTarget extends Object implements Serializable, Cloneable
An object representing a scalable target.
| Constructor and Description |
|---|
ScalableTarget() |
| Modifier and Type | Method and Description |
|---|---|
ScalableTarget |
clone() |
boolean |
equals(Object obj) |
Date |
getCreationTime()
The Unix timestamp for when the scalable target was created.
|
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 associated 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 |
setCreationTime(Date creationTime)
The Unix timestamp for when the scalable target was created.
|
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 associated 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.
|
ScalableTarget |
withCreationTime(Date creationTime)
The Unix timestamp for when the scalable target was created.
|
ScalableTarget |
withMaxCapacity(Integer maxCapacity)
The maximum value for this scalable target to scale out to in response to scaling activities.
|
ScalableTarget |
withMinCapacity(Integer minCapacity)
The minimum value for this scalable target to scale in to in response to scaling activities.
|
ScalableTarget |
withResourceId(String resourceId)
The resource type and unique identifier string for the resource associated with the scalable target.
|
ScalableTarget |
withRoleARN(String roleARN)
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
|
ScalableTarget |
withScalableDimension(ScalableDimension scalableDimension)
The scalable dimension associated with the scalable target.
|
ScalableTarget |
withScalableDimension(String scalableDimension)
The scalable dimension associated with the scalable target.
|
ScalableTarget |
withServiceNamespace(ServiceNamespace serviceNamespace)
The namespace for the AWS service that the scalable target is associated with.
|
ScalableTarget |
withServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scalable target is associated with.
|
public void setServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scalable target is associated with. 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 more information, see
AWS Service Namespaces in the Amazon Web Services General Reference.ServiceNamespacepublic String getServiceNamespace()
The namespace for the AWS service that the scalable target is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
ServiceNamespacepublic ScalableTarget withServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scalable target is associated with. 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 more information, see
AWS Service Namespaces in the Amazon Web Services General Reference.ServiceNamespacepublic void setServiceNamespace(ServiceNamespace serviceNamespace)
The namespace for the AWS service that the scalable target is associated with. 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 more information, see
AWS Service Namespaces in the Amazon Web Services General Reference.ServiceNamespacepublic ScalableTarget withServiceNamespace(ServiceNamespace serviceNamespace)
The namespace for the AWS service that the scalable target is associated with. 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 more information, see
AWS Service Namespaces in the Amazon Web Services General Reference.ServiceNamespacepublic void setResourceId(String resourceId)
The resource type and unique identifier string for the resource associated 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 associated 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 associated 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 ScalableTarget withResourceId(String resourceId)
The resource type and unique identifier string for the resource associated 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 associated 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.ScalableDimensionpublic 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.ScalableDimensionpublic ScalableTarget 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.ScalableDimensionpublic 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.ScalableDimensionpublic ScalableTarget 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.ScalableDimensionpublic void setMinCapacity(Integer minCapacity)
The minimum value for this scalable target to scale in to in response to scaling activities.
minCapacity - The minimum value for this scalable target to scale in to in response to scaling activities.public Integer getMinCapacity()
The minimum value for this scalable target to scale in to in response to scaling activities.
public ScalableTarget withMinCapacity(Integer minCapacity)
The minimum value for this scalable target to scale in to in response to scaling activities.
minCapacity - The minimum value for this scalable target to scale in to in response to scaling activities.public void setMaxCapacity(Integer maxCapacity)
The maximum value for this scalable target to scale out to in response to scaling activities.
maxCapacity - The maximum value for this scalable target to scale out to in response to scaling activities.public Integer getMaxCapacity()
The maximum value for this scalable target to scale out to in response to scaling activities.
public ScalableTarget withMaxCapacity(Integer maxCapacity)
The maximum value for this scalable target to scale out to in response to scaling activities.
maxCapacity - The maximum value for this scalable target to scale out to in response to scaling activities.public void setRoleARN(String roleARN)
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
roleARN - The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your
behalf.public String getRoleARN()
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
public ScalableTarget withRoleARN(String roleARN)
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
roleARN - The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your
behalf.public void setCreationTime(Date creationTime)
The Unix timestamp for when the scalable target was created.
creationTime - The Unix timestamp for when the scalable target was created.public Date getCreationTime()
The Unix timestamp for when the scalable target was created.
public ScalableTarget withCreationTime(Date creationTime)
The Unix timestamp for when the scalable target was created.
creationTime - The Unix timestamp for when the scalable target was created.public String toString()
toString in class ObjectObject.toString()public ScalableTarget clone()
Copyright © 2016. All rights reserved.