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 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 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 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.ServiceNamespace
public 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.
ServiceNamespace
public 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.ServiceNamespace
public 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.ServiceNamespace
public 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.ServiceNamespace
public void setResourceId(String resourceId)
The unique identifier string for the resource associated with the
scalable target. 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 identifier string for the resource associated with the
scalable target. 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 identifier string for the resource associated with the
scalable target. 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 ScalableTarget withResourceId(String resourceId)
The unique identifier string for the resource associated with the
scalable target. 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 identifier string for the resource associated with the
scalable target. 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 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.
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.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.
ecs:service:DesiredCount
for the desired task count
of an Amazon ECS service.ScalableDimension
public 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.
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.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.
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.ScalableDimension
public 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.
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.ScalableDimension
public 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 Object
Object.toString()
public ScalableTarget clone()
Copyright © 2018. All rights reserved.