public class ScalableTarget
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
An object representing a scalable target.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
creationTime
The Unix timestamp for when the scalable target was created.
|
private java.lang.Integer |
maxCapacity
The maximum value for this scalable target to scale out to in response to
scaling activities.
|
private java.lang.Integer |
minCapacity
The minimum value for this scalable target to scale in to in response to
scaling activities.
|
private java.lang.String |
resourceId
The unique identifier string for the resource associated with the
scalable target.
|
private java.lang.String |
roleARN
The ARN of the IAM role that allows Application Auto Scaling to modify
your scalable target on your behalf.
|
private java.lang.String |
scalableDimension
The scalable dimension associated with the scalable target.
|
private java.lang.String |
serviceNamespace
The namespace for the AWS service that the scalable target is associated
with.
|
Constructor and Description |
---|
ScalableTarget() |
Modifier and Type | Method and Description |
---|---|
ScalableTarget |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreationTime()
The Unix timestamp for when the scalable target was created.
|
java.lang.Integer |
getMaxCapacity()
The maximum value for this scalable target to scale out to in response to
scaling activities.
|
java.lang.Integer |
getMinCapacity()
The minimum value for this scalable target to scale in to in response to
scaling activities.
|
java.lang.String |
getResourceId()
The unique identifier string for the resource associated with the
scalable target.
|
java.lang.String |
getRoleARN()
The ARN of the IAM role that allows Application Auto Scaling to modify
your scalable target on your behalf.
|
java.lang.String |
getScalableDimension()
The scalable dimension associated with the scalable target.
|
java.lang.String |
getServiceNamespace()
The namespace for the AWS service that the scalable target is associated
with.
|
int |
hashCode() |
void |
setCreationTime(java.util.Date creationTime)
The Unix timestamp for when the scalable target was created.
|
void |
setMaxCapacity(java.lang.Integer maxCapacity)
The maximum value for this scalable target to scale out to in response to
scaling activities.
|
void |
setMinCapacity(java.lang.Integer minCapacity)
The minimum value for this scalable target to scale in to in response to
scaling activities.
|
void |
setResourceId(java.lang.String resourceId)
The unique identifier string for the resource associated with the
scalable target.
|
void |
setRoleARN(java.lang.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(java.lang.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(java.lang.String serviceNamespace)
The namespace for the AWS service that the scalable target is associated
with.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ScalableTarget |
withCreationTime(java.util.Date creationTime)
The Unix timestamp for when the scalable target was created.
|
ScalableTarget |
withMaxCapacity(java.lang.Integer maxCapacity)
The maximum value for this scalable target to scale out to in response to
scaling activities.
|
ScalableTarget |
withMinCapacity(java.lang.Integer minCapacity)
The minimum value for this scalable target to scale in to in response to
scaling activities.
|
ScalableTarget |
withResourceId(java.lang.String resourceId)
The unique identifier string for the resource associated with the
scalable target.
|
ScalableTarget |
withRoleARN(java.lang.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(java.lang.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(java.lang.String serviceNamespace)
The namespace for the AWS service that the scalable target is associated
with.
|
private java.lang.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.
private java.lang.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
.
private java.lang.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.
private java.lang.Integer minCapacity
The minimum value for this scalable target to scale in to in response to scaling activities.
private java.lang.Integer maxCapacity
The maximum value for this scalable target to scale out to in response to scaling activities.
private java.lang.String roleARN
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
private java.util.Date creationTime
The Unix timestamp for when the scalable target was created.
public void setServiceNamespace(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.Integer getMinCapacity()
The minimum value for this scalable target to scale in to in response to scaling activities.
public ScalableTarget withMinCapacity(java.lang.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(java.lang.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 java.lang.Integer getMaxCapacity()
The maximum value for this scalable target to scale out to in response to scaling activities.
public ScalableTarget withMaxCapacity(java.lang.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(java.lang.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 java.lang.String getRoleARN()
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
public ScalableTarget withRoleARN(java.lang.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(java.util.Date creationTime)
The Unix timestamp for when the scalable target was created.
creationTime
- The Unix timestamp for when the scalable target was created.public java.util.Date getCreationTime()
The Unix timestamp for when the scalable target was created.
public ScalableTarget withCreationTime(java.util.Date creationTime)
The Unix timestamp for when the scalable target was created.
creationTime
- The Unix timestamp for when the scalable target was created.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 ScalableTarget clone()
clone
in class java.lang.Object