Class RegisterScalableTargetRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.applicationautoscaling.model.RegisterScalableTargetRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class RegisterScalableTargetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description RegisterScalableTargetRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegisterScalableTargetRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
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 to associate 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
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 to associate 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.RegisterScalableTargetRequest
withMaxCapacity(Integer maxCapacity)
The maximum value for this scalable target to scale out to in response to scaling activities.RegisterScalableTargetRequest
withMinCapacity(Integer minCapacity)
The minimum value for this scalable target to scale in to in response to scaling activities.RegisterScalableTargetRequest
withResourceId(String resourceId)
The unique identifier string for the resource to associate with the scalable target.RegisterScalableTargetRequest
withRoleARN(String roleARN)
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.RegisterScalableTargetRequest
withScalableDimension(ScalableDimension scalableDimension)
The scalable dimension associated with the scalable target.RegisterScalableTargetRequest
withScalableDimension(String scalableDimension)
The scalable dimension associated with the scalable target.RegisterScalableTargetRequest
withServiceNamespace(ServiceNamespace serviceNamespace)
The namespace for the AWS service that the scalable target is associated with.RegisterScalableTargetRequest
withServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scalable target is associated with.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setServiceNamespace
public void setServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services, the namespace value is
ecs
. 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 Amazon ECS services, the namespace value isecs
. 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 Amazon ECS services, the namespace value is
ecs
. 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 Amazon ECS services, the namespace value is
ecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference. - See Also:
ServiceNamespace
-
withServiceNamespace
public RegisterScalableTargetRequest withServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services, the namespace value is
ecs
. 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 Amazon ECS services, the namespace value isecs
. 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 Amazon ECS services, the namespace value is
ecs
. 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 Amazon ECS services, the namespace value isecs
. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.- See Also:
ServiceNamespace
-
withServiceNamespace
public RegisterScalableTargetRequest withServiceNamespace(ServiceNamespace serviceNamespace)
The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services, the namespace value is
ecs
. 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 Amazon ECS services, the namespace value isecs
. 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 to associate 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 to associate 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 to associate 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 to associate 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 RegisterScalableTargetRequest withResourceId(String resourceId)
The unique identifier string for the resource to associate 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 to associate 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: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:
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: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:
ScalableDimension
-
withScalableDimension
public RegisterScalableTargetRequest 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.- 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:
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: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:
ScalableDimension
-
withScalableDimension
public RegisterScalableTargetRequest 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.- 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:
ScalableDimension
-
setMinCapacity
public void setMinCapacity(Integer minCapacity)
The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
- Parameters:
minCapacity
- The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
-
getMinCapacity
public Integer getMinCapacity()
The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
- Returns:
- The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
-
withMinCapacity
public RegisterScalableTargetRequest withMinCapacity(Integer minCapacity)
The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
- Parameters:
minCapacity
- The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.- 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. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
- Parameters:
maxCapacity
- The maximum value for this scalable target to scale out to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
-
getMaxCapacity
public Integer getMaxCapacity()
The maximum value for this scalable target to scale out to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
- Returns:
- The maximum value for this scalable target to scale out to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
-
withMaxCapacity
public RegisterScalableTargetRequest withMaxCapacity(Integer maxCapacity)
The maximum value for this scalable target to scale out to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
- Parameters:
maxCapacity
- The maximum value for this scalable target to scale out to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.- 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. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
- Parameters:
roleARN
- The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
-
getRoleARN
public String getRoleARN()
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
- Returns:
- The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
-
withRoleARN
public RegisterScalableTargetRequest withRoleARN(String roleARN)
The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.
- Parameters:
roleARN
- The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RegisterScalableTargetRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-