Class ScalableTarget
- java.lang.Object
-
- com.amazonaws.services.applicationautoscaling.model.ScalableTarget
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ScalableTarget extends Object implements Serializable, Cloneable
An object representing a scalable target.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScalableTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalableTargetclone()booleanequals(Object obj)DategetCreationTime()The Unix timestamp for when the scalable target was created.IntegergetMaxCapacity()The maximum value for this scalable target to scale out to in response to scaling activities.IntegergetMinCapacity()The minimum value for this scalable target to scale in to in response to scaling activities.StringgetResourceId()The unique identifier string for the resource associated with the scalable target.StringgetRoleARN()The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.StringgetScalableDimension()The scalable dimension associated with the scalable target.StringgetServiceNamespace()The namespace for the AWS service that the scalable target is associated with.inthashCode()voidsetCreationTime(Date creationTime)The Unix timestamp for when the scalable target was created.voidsetMaxCapacity(Integer maxCapacity)The maximum value for this scalable target to scale out to in response to scaling activities.voidsetMinCapacity(Integer minCapacity)The minimum value for this scalable target to scale in to in response to scaling activities.voidsetResourceId(String resourceId)The unique identifier string for the resource associated with the scalable target.voidsetRoleARN(String roleARN)The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.voidsetScalableDimension(ScalableDimension scalableDimension)The scalable dimension associated with the scalable target.voidsetScalableDimension(String scalableDimension)The scalable dimension associated with the scalable target.voidsetServiceNamespace(ServiceNamespace serviceNamespace)The namespace for the AWS service that the scalable target is associated with.voidsetServiceNamespace(String serviceNamespace)The namespace for the AWS service that the scalable target is associated with.StringtoString()Returns a string representation of this object; useful for testing and debugging.ScalableTargetwithCreationTime(Date creationTime)The Unix timestamp for when the scalable target was created.ScalableTargetwithMaxCapacity(Integer maxCapacity)The maximum value for this scalable target to scale out to in response to scaling activities.ScalableTargetwithMinCapacity(Integer minCapacity)The minimum value for this scalable target to scale in to in response to scaling activities.ScalableTargetwithResourceId(String resourceId)The unique identifier string for the resource associated with the scalable target.ScalableTargetwithRoleARN(String roleARN)The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.ScalableTargetwithScalableDimension(ScalableDimension scalableDimension)The scalable dimension associated with the scalable target.ScalableTargetwithScalableDimension(String scalableDimension)The scalable dimension associated with the scalable target.ScalableTargetwithServiceNamespace(ServiceNamespace serviceNamespace)The namespace for the AWS service that the scalable target is associated with.ScalableTargetwithServiceNamespace(String serviceNamespace)The namespace for the AWS service that the scalable target is associated with.
-
-
-
Method Detail
-
setServiceNamespace
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.
- 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:
ServiceNamespace
-
getServiceNamespace
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.
- 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:
ServiceNamespace
-
withServiceNamespace
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.
- 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:
ServiceNamespace
-
setServiceNamespace
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.
- 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:
ServiceNamespace
-
withServiceNamespace
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.
- 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:
ServiceNamespace
-
setResourceId
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.- 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
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.- 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
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.- 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
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:DesiredCountfor 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:DesiredCountfor the desired task count of an Amazon ECS service.- See Also:
ScalableDimension
-
getScalableDimension
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:DesiredCountfor 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:DesiredCountfor the desired task count of an Amazon ECS service. - See Also:
ScalableDimension
-
withScalableDimension
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:DesiredCountfor 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:DesiredCountfor 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:
ScalableDimension
-
setScalableDimension
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:DesiredCountfor 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:DesiredCountfor the desired task count of an Amazon ECS service.- See Also:
ScalableDimension
-
withScalableDimension
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:DesiredCountfor 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:DesiredCountfor 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:
ScalableDimension
-
setMinCapacity
public void setMinCapacity(Integer minCapacity)
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
public Integer 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
public ScalableTarget withMinCapacity(Integer minCapacity)
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
public void setMaxCapacity(Integer maxCapacity)
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
public Integer 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
public ScalableTarget withMaxCapacity(Integer maxCapacity)
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
public void setRoleARN(String roleARN)
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
public String 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
public ScalableTarget withRoleARN(String roleARN)
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
public void setCreationTime(Date creationTime)
The Unix timestamp for when the scalable target was created.
- Parameters:
creationTime- The Unix timestamp for when the scalable target was created.
-
getCreationTime
public Date getCreationTime()
The Unix timestamp for when the scalable target was created.
- Returns:
- The Unix timestamp for when the scalable target was created.
-
withCreationTime
public ScalableTarget withCreationTime(Date creationTime)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ScalableTarget clone()
-
-