Class ScalingActivity
- java.lang.Object
-
- com.amazonaws.services.applicationautoscaling.model.ScalingActivity
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ScalingActivity extends Object implements Serializable, Cloneable
An object representing a scaling activity.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScalingActivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalingActivity
clone()
boolean
equals(Object obj)
String
getActivityId()
The unique identifier string for the scaling activity.String
getCause()
A simple description of what caused the scaling activity to happen.String
getDescription()
A simple description of what action the scaling activity intends to accomplish.String
getDetails()
The details about the scaling activity.Date
getEndTime()
The Unix timestamp for when the scaling activity ended.String
getResourceId()
The unique identifier string for the resource associated with the scaling activity.String
getScalableDimension()
The scalable dimension associated with the scaling activity.String
getServiceNamespace()
The namespace for the AWS service that the scaling activity is associated with.Date
getStartTime()
The Unix timestamp for when the scaling activity began.String
getStatusCode()
Indicates the status of the scaling activity.String
getStatusMessage()
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
setCause(String cause)
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.ScalingActivity
withActivityId(String activityId)
The unique identifier string for the scaling activity.ScalingActivity
withCause(String cause)
A simple description of what caused the scaling activity to happen.ScalingActivity
withDescription(String description)
A simple description of what action the scaling activity intends to accomplish.ScalingActivity
withDetails(String details)
The details about the scaling activity.ScalingActivity
withEndTime(Date endTime)
The Unix timestamp for when the scaling activity ended.ScalingActivity
withResourceId(String resourceId)
The unique identifier string for the resource associated with the scaling activity.ScalingActivity
withScalableDimension(ScalableDimension scalableDimension)
The scalable dimension associated with the scaling activity.ScalingActivity
withScalableDimension(String scalableDimension)
The scalable dimension associated with the scaling activity.ScalingActivity
withServiceNamespace(ServiceNamespace serviceNamespace)
The namespace for the AWS service that the scaling activity is associated with.ScalingActivity
withServiceNamespace(String serviceNamespace)
The namespace for the AWS service that the scaling activity is associated with.ScalingActivity
withStartTime(Date startTime)
The Unix timestamp for when the scaling activity began.ScalingActivity
withStatusCode(ScalingActivityStatusCode statusCode)
Indicates the status of the scaling activity.ScalingActivity
withStatusCode(String statusCode)
Indicates the status of the scaling activity.ScalingActivity
withStatusMessage(String statusMessage)
A simple message about the current status of the scaling activity.
-
-
-
Method Detail
-
setActivityId
public void setActivityId(String activityId)
The unique identifier string for the scaling activity.
- Parameters:
activityId
- The unique identifier string for the scaling activity.
-
getActivityId
public String getActivityId()
The unique identifier string for the scaling activity.
- Returns:
- The unique identifier string for the scaling activity.
-
withActivityId
public ScalingActivity withActivityId(String activityId)
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
public void setServiceNamespace(String 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.
- 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:
ServiceNamespace
-
getServiceNamespace
public String 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:
ServiceNamespace
-
withServiceNamespace
public ScalingActivity withServiceNamespace(String 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.
- 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:
ServiceNamespace
-
setServiceNamespace
public void setServiceNamespace(ServiceNamespace 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.
- 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:
ServiceNamespace
-
withServiceNamespace
public ScalingActivity withServiceNamespace(ServiceNamespace 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.
- 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:
ServiceNamespace
-
setResourceId
public void setResourceId(String 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 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
public String 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
public ScalingActivity withResourceId(String 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 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
public void setScalableDimension(String scalableDimension)
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:
ScalableDimension
-
getScalableDimension
public String 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:
ScalableDimension
-
withScalableDimension
public ScalingActivity withScalableDimension(String scalableDimension)
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:
ScalableDimension
-
setScalableDimension
public void setScalableDimension(ScalableDimension scalableDimension)
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:
ScalableDimension
-
withScalableDimension
public ScalingActivity withScalableDimension(ScalableDimension scalableDimension)
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:
ScalableDimension
-
setDescription
public void setDescription(String description)
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
public String 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
public ScalingActivity withDescription(String description)
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
public void setCause(String cause)
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
public String 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
public ScalingActivity withCause(String cause)
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
public void setStartTime(Date startTime)
The Unix timestamp for when the scaling activity began.
- Parameters:
startTime
- The Unix timestamp for when the scaling activity began.
-
getStartTime
public Date getStartTime()
The Unix timestamp for when the scaling activity began.
- Returns:
- The Unix timestamp for when the scaling activity began.
-
withStartTime
public ScalingActivity withStartTime(Date startTime)
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
public void setEndTime(Date endTime)
The Unix timestamp for when the scaling activity ended.
- Parameters:
endTime
- The Unix timestamp for when the scaling activity ended.
-
getEndTime
public Date getEndTime()
The Unix timestamp for when the scaling activity ended.
- Returns:
- The Unix timestamp for when the scaling activity ended.
-
withEndTime
public ScalingActivity withEndTime(Date endTime)
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
public void setStatusCode(String statusCode)
Indicates the status of the scaling activity.
- Parameters:
statusCode
- Indicates the status of the scaling activity.- See Also:
ScalingActivityStatusCode
-
getStatusCode
public String getStatusCode()
Indicates the status of the scaling activity.
- Returns:
- Indicates the status of the scaling activity.
- See Also:
ScalingActivityStatusCode
-
withStatusCode
public ScalingActivity withStatusCode(String statusCode)
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:
ScalingActivityStatusCode
-
setStatusCode
public void setStatusCode(ScalingActivityStatusCode statusCode)
Indicates the status of the scaling activity.
- Parameters:
statusCode
- Indicates the status of the scaling activity.- See Also:
ScalingActivityStatusCode
-
withStatusCode
public ScalingActivity withStatusCode(ScalingActivityStatusCode statusCode)
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:
ScalingActivityStatusCode
-
setStatusMessage
public void setStatusMessage(String statusMessage)
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
public String 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
public ScalingActivity withStatusMessage(String statusMessage)
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
public void setDetails(String details)
The details about the scaling activity.
- Parameters:
details
- The details about the scaling activity.
-
getDetails
public String getDetails()
The details about the scaling activity.
- Returns:
- The details about the scaling activity.
-
withDetails
public ScalingActivity withDetails(String details)
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
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 ScalingActivity clone()
-
-