Class ScalableTarget
- All Implemented Interfaces:
Serializable
,Cloneable
An object representing a scalable target.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The Unix timestamp for when the scalable target was created.The maximum value for this scalable target to scale out to in response to scaling activities.The minimum value for this scalable target to scale in to in response to scaling activities.The unique identifier string for the resource associated with the scalable target.The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.The scalable dimension associated with the scalable target.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.toString()
Returns a string representation of this object; useful for testing and debugging.withCreationTime
(Date creationTime) The Unix timestamp for when the scalable target was created.withMaxCapacity
(Integer maxCapacity) The maximum value for this scalable target to scale out to in response to scaling activities.withMinCapacity
(Integer minCapacity) The minimum value for this scalable target to scale in to in response to scaling activities.withResourceId
(String resourceId) The unique identifier string for the resource associated with the scalable target.withRoleARN
(String roleARN) The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.withScalableDimension
(ScalableDimension scalableDimension) The scalable dimension associated with the scalable target.withScalableDimension
(String scalableDimension) The scalable dimension associated with the scalable target.withServiceNamespace
(ServiceNamespace serviceNamespace) The namespace for the AWS service that the scalable target is associated with.withServiceNamespace
(String serviceNamespace) The namespace for the AWS service that the scalable target is associated with.
-
Constructor Details
-
ScalableTarget
public ScalableTarget()
-
-
Method Details
-
setServiceNamespace
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.
- Parameters:
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.- See Also:
-
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.
- Returns:
- 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.
- See Also:
-
withServiceNamespace
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setServiceNamespace
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.
- Parameters:
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.- See Also:
-
withServiceNamespace
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setResourceId
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
.- Parameters:
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 asservice/default/sample-webapp
.
-
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
.- Returns:
- 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
.
-
withResourceId
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
.- Parameters:
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 asservice/default/sample-webapp
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setScalableDimension
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.- Parameters:
scalableDimension
- The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCount
for the desired task count of an Amazon ECS service.- See Also:
-
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.- Returns:
- 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. - See Also:
-
withScalableDimension
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.- Parameters:
scalableDimension
- The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCount
for the desired task count of an Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setScalableDimension
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.- Parameters:
scalableDimension
- The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCount
for the desired task count of an Amazon ECS service.- See Also:
-
withScalableDimension
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.- Parameters:
scalableDimension
- The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such asecs:service:DesiredCount
for the desired task count of an Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setMinCapacity
The minimum value for this scalable target to scale in to in response to scaling activities.
- Parameters:
minCapacity
- The minimum value for this scalable target to scale in to in response to scaling activities.
-
getMinCapacity
The minimum value for this scalable target to scale in to in response to scaling activities.
- Returns:
- The minimum value for this scalable target to scale in to in response to scaling activities.
-
withMinCapacity
The minimum value for this scalable target to scale in to in response to scaling activities.
- Parameters:
minCapacity
- The minimum value for this scalable target to scale in to in response to scaling activities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxCapacity
The maximum value for this scalable target to scale out to in response to scaling activities.
- Parameters:
maxCapacity
- The maximum value for this scalable target to scale out to in response to scaling activities.
-
getMaxCapacity
The maximum value for this scalable target to scale out to in response to scaling activities.
- Returns:
- The maximum value for this scalable target to scale out to in response to scaling activities.
-
withMaxCapacity
The maximum value for this scalable target to scale out to in response to scaling activities.
- Parameters:
maxCapacity
- The maximum value for this scalable target to scale out to in response to scaling activities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleARN
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
- Parameters:
roleARN
- The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
-
getRoleARN
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
- Returns:
- The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
-
withRoleARN
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.
- Parameters:
roleARN
- The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationTime
The Unix timestamp for when the scalable target was created.
- Parameters:
creationTime
- The Unix timestamp for when the scalable target was created.
-
getCreationTime
The Unix timestamp for when the scalable target was created.
- Returns:
- The Unix timestamp for when the scalable target was created.
-
withCreationTime
The Unix timestamp for when the scalable target was created.
- Parameters:
creationTime
- The Unix timestamp for when the scalable target was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-