Class ScalingActivity
- All Implemented Interfaces:
Serializable
,Cloneable
An object representing a scaling activity.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The unique identifier string for the scaling activity.getCause()
A simple description of what caused the scaling activity to happen.A simple description of what action the scaling activity intends to accomplish.The details about the scaling activity.The Unix timestamp for when the scaling activity ended.The unique identifier string for the resource associated with the scaling activity.The scalable dimension associated with the scaling activity.The namespace for the AWS service that the scaling activity is associated with.The Unix timestamp for when the scaling activity began.Indicates the status of the scaling activity.A simple message about the current status of the scaling activity.int
hashCode()
void
setActivityId
(String activityId) The unique identifier string for the scaling activity.void
A simple description of what caused the scaling activity to happen.void
setDescription
(String description) A simple description of what action the scaling activity intends to accomplish.void
setDetails
(String details) The details about the scaling activity.void
setEndTime
(Date endTime) The Unix timestamp for when the scaling activity ended.void
setResourceId
(String resourceId) The unique identifier string for the resource associated with the scaling activity.void
setScalableDimension
(ScalableDimension scalableDimension) The scalable dimension associated with the scaling activity.void
setScalableDimension
(String scalableDimension) The scalable dimension associated with the scaling activity.void
setServiceNamespace
(ServiceNamespace serviceNamespace) The namespace for the AWS service that the scaling activity is associated with.void
setServiceNamespace
(String serviceNamespace) The namespace for the AWS service that the scaling activity is associated with.void
setStartTime
(Date startTime) The Unix timestamp for when the scaling activity began.void
setStatusCode
(ScalingActivityStatusCode statusCode) Indicates the status of the scaling activity.void
setStatusCode
(String statusCode) Indicates the status of the scaling activity.void
setStatusMessage
(String statusMessage) A simple message about the current status of the scaling activity.toString()
Returns a string representation of this object; useful for testing and debugging.withActivityId
(String activityId) The unique identifier string for the scaling activity.A simple description of what caused the scaling activity to happen.withDescription
(String description) A simple description of what action the scaling activity intends to accomplish.withDetails
(String details) The details about the scaling activity.withEndTime
(Date endTime) The Unix timestamp for when the scaling activity ended.withResourceId
(String resourceId) The unique identifier string for the resource associated with the scaling activity.withScalableDimension
(ScalableDimension scalableDimension) The scalable dimension associated with the scaling activity.withScalableDimension
(String scalableDimension) The scalable dimension associated with the scaling activity.withServiceNamespace
(ServiceNamespace serviceNamespace) The namespace for the AWS service that the scaling activity is associated with.withServiceNamespace
(String serviceNamespace) The namespace for the AWS service that the scaling activity is associated with.withStartTime
(Date startTime) The Unix timestamp for when the scaling activity began.withStatusCode
(ScalingActivityStatusCode statusCode) Indicates the status of the scaling activity.withStatusCode
(String statusCode) Indicates the status of the scaling activity.withStatusMessage
(String statusMessage) A simple message about the current status of the scaling activity.
-
Constructor Details
-
ScalingActivity
public ScalingActivity()
-
-
Method Details
-
setActivityId
The unique identifier string for the scaling activity.
- Parameters:
activityId
- The unique identifier string for the scaling activity.
-
getActivityId
The unique identifier string for the scaling activity.
- Returns:
- The unique identifier string for the scaling activity.
-
withActivityId
The unique identifier string for the scaling activity.
- Parameters:
activityId
- The unique identifier string for the scaling activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setServiceNamespace
The namespace for the AWS service that the scaling activity 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 scaling activity 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 scaling activity 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 scaling activity 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 scaling activity 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 scaling activity 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 scaling activity 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 scaling activity 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 scaling activity 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 scaling activity 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 scaling activity. 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 scaling activity. 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 scaling activity. 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
scaling activity. 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 scaling activity. 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 scaling activity. 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 scaling activity. 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 scaling activity. 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 scaling activity. 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 scaling activity. 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 scaling activity. 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 scaling activity. 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 scaling activity. 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 scaling activity. 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 scaling activity. 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 scaling activity. 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:
-
setDescription
A simple description of what action the scaling activity intends to accomplish.
- Parameters:
description
- A simple description of what action the scaling activity intends to accomplish.
-
getDescription
A simple description of what action the scaling activity intends to accomplish.
- Returns:
- A simple description of what action the scaling activity intends to accomplish.
-
withDescription
A simple description of what action the scaling activity intends to accomplish.
- Parameters:
description
- A simple description of what action the scaling activity intends to accomplish.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCause
A simple description of what caused the scaling activity to happen.
- Parameters:
cause
- A simple description of what caused the scaling activity to happen.
-
getCause
A simple description of what caused the scaling activity to happen.
- Returns:
- A simple description of what caused the scaling activity to happen.
-
withCause
A simple description of what caused the scaling activity to happen.
- Parameters:
cause
- A simple description of what caused the scaling activity to happen.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartTime
The Unix timestamp for when the scaling activity began.
- Parameters:
startTime
- The Unix timestamp for when the scaling activity began.
-
getStartTime
The Unix timestamp for when the scaling activity began.
- Returns:
- The Unix timestamp for when the scaling activity began.
-
withStartTime
The Unix timestamp for when the scaling activity began.
- Parameters:
startTime
- The Unix timestamp for when the scaling activity began.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndTime
The Unix timestamp for when the scaling activity ended.
- Parameters:
endTime
- The Unix timestamp for when the scaling activity ended.
-
getEndTime
The Unix timestamp for when the scaling activity ended.
- Returns:
- The Unix timestamp for when the scaling activity ended.
-
withEndTime
The Unix timestamp for when the scaling activity ended.
- Parameters:
endTime
- The Unix timestamp for when the scaling activity ended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatusCode
Indicates the status of the scaling activity.
- Parameters:
statusCode
- Indicates the status of the scaling activity.- See Also:
-
getStatusCode
Indicates the status of the scaling activity.
- Returns:
- Indicates the status of the scaling activity.
- See Also:
-
withStatusCode
Indicates the status of the scaling activity.
- Parameters:
statusCode
- Indicates the status of the scaling activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setStatusCode
Indicates the status of the scaling activity.
- Parameters:
statusCode
- Indicates the status of the scaling activity.- See Also:
-
withStatusCode
Indicates the status of the scaling activity.
- Parameters:
statusCode
- Indicates the status of the scaling activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setStatusMessage
A simple message about the current status of the scaling activity.
- Parameters:
statusMessage
- A simple message about the current status of the scaling activity.
-
getStatusMessage
A simple message about the current status of the scaling activity.
- Returns:
- A simple message about the current status of the scaling activity.
-
withStatusMessage
A simple message about the current status of the scaling activity.
- Parameters:
statusMessage
- A simple message about the current status of the scaling activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDetails
The details about the scaling activity.
- Parameters:
details
- The details about the scaling activity.
-
getDetails
The details about the scaling activity.
- Returns:
- The details about the scaling activity.
-
withDetails
The details about the scaling activity.
- Parameters:
details
- The details about the scaling activity.- 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
-