public class ScalingActivity
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
An object representing a scaling activity.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
activityId
The unique identifier string for the scaling activity.
|
private java.lang.String |
cause
A simple description of what caused the scaling activity to happen.
|
private java.lang.String |
description
A simple description of what action the scaling activity intends to
accomplish.
|
private java.lang.String |
details
The details about the scaling activity.
|
private java.util.Date |
endTime
The Unix timestamp for when the scaling activity ended.
|
private java.lang.String |
resourceId
The unique identifier string for the resource associated with the scaling
activity.
|
private java.lang.String |
scalableDimension
The scalable dimension associated with the scaling activity.
|
private java.lang.String |
serviceNamespace
The namespace for the AWS service that the scaling activity is associated
with.
|
private java.util.Date |
startTime
The Unix timestamp for when the scaling activity began.
|
private java.lang.String |
statusCode
Indicates the status of the scaling activity.
|
private java.lang.String |
statusMessage
A simple message about the current status of the scaling activity.
|
Constructor and Description |
---|
ScalingActivity() |
Modifier and Type | Method and Description |
---|---|
ScalingActivity |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActivityId()
The unique identifier string for the scaling activity.
|
java.lang.String |
getCause()
A simple description of what caused the scaling activity to happen.
|
java.lang.String |
getDescription()
A simple description of what action the scaling activity intends to
accomplish.
|
java.lang.String |
getDetails()
The details about the scaling activity.
|
java.util.Date |
getEndTime()
The Unix timestamp for when the scaling activity ended.
|
java.lang.String |
getResourceId()
The unique identifier string for the resource associated with the scaling
activity.
|
java.lang.String |
getScalableDimension()
The scalable dimension associated with the scaling activity.
|
java.lang.String |
getServiceNamespace()
The namespace for the AWS service that the scaling activity is associated
with.
|
java.util.Date |
getStartTime()
The Unix timestamp for when the scaling activity began.
|
java.lang.String |
getStatusCode()
Indicates the status of the scaling activity.
|
java.lang.String |
getStatusMessage()
A simple message about the current status of the scaling activity.
|
int |
hashCode() |
void |
setActivityId(java.lang.String activityId)
The unique identifier string for the scaling activity.
|
void |
setCause(java.lang.String cause)
A simple description of what caused the scaling activity to happen.
|
void |
setDescription(java.lang.String description)
A simple description of what action the scaling activity intends to
accomplish.
|
void |
setDetails(java.lang.String details)
The details about the scaling activity.
|
void |
setEndTime(java.util.Date endTime)
The Unix timestamp for when the scaling activity ended.
|
void |
setResourceId(java.lang.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(java.lang.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(java.lang.String serviceNamespace)
The namespace for the AWS service that the scaling activity is associated
with.
|
void |
setStartTime(java.util.Date startTime)
The Unix timestamp for when the scaling activity began.
|
void |
setStatusCode(ScalingActivityStatusCode statusCode)
Indicates the status of the scaling activity.
|
void |
setStatusCode(java.lang.String statusCode)
Indicates the status of the scaling activity.
|
void |
setStatusMessage(java.lang.String statusMessage)
A simple message about the current status of the scaling activity.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ScalingActivity |
withActivityId(java.lang.String activityId)
The unique identifier string for the scaling activity.
|
ScalingActivity |
withCause(java.lang.String cause)
A simple description of what caused the scaling activity to happen.
|
ScalingActivity |
withDescription(java.lang.String description)
A simple description of what action the scaling activity intends to
accomplish.
|
ScalingActivity |
withDetails(java.lang.String details)
The details about the scaling activity.
|
ScalingActivity |
withEndTime(java.util.Date endTime)
The Unix timestamp for when the scaling activity ended.
|
ScalingActivity |
withResourceId(java.lang.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(java.lang.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(java.lang.String serviceNamespace)
The namespace for the AWS service that the scaling activity is associated
with.
|
ScalingActivity |
withStartTime(java.util.Date startTime)
The Unix timestamp for when the scaling activity began.
|
ScalingActivity |
withStatusCode(ScalingActivityStatusCode statusCode)
Indicates the status of the scaling activity.
|
ScalingActivity |
withStatusCode(java.lang.String statusCode)
Indicates the status of the scaling activity.
|
ScalingActivity |
withStatusMessage(java.lang.String statusMessage)
A simple message about the current status of the scaling activity.
|
private java.lang.String activityId
The unique identifier string for the scaling activity.
private java.lang.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.
private java.lang.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
.
private java.lang.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.
private java.lang.String description
A simple description of what action the scaling activity intends to accomplish.
private java.lang.String cause
A simple description of what caused the scaling activity to happen.
private java.util.Date startTime
The Unix timestamp for when the scaling activity began.
private java.util.Date endTime
The Unix timestamp for when the scaling activity ended.
private java.lang.String statusCode
Indicates the status of the scaling activity.
private java.lang.String statusMessage
A simple message about the current status of the scaling activity.
private java.lang.String details
The details about the scaling activity.
public void setActivityId(java.lang.String activityId)
The unique identifier string for the scaling activity.
activityId
- The unique identifier string for the scaling activity.public java.lang.String getActivityId()
The unique identifier string for the scaling activity.
public ScalingActivity withActivityId(java.lang.String activityId)
The unique identifier string for the scaling activity.
activityId
- The unique identifier string for the scaling activity.public void setServiceNamespace(java.lang.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.
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.ServiceNamespace
public java.lang.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.
ServiceNamespace
public ScalingActivity withServiceNamespace(java.lang.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.
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.ServiceNamespace
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.
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.ServiceNamespace
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.
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.ServiceNamespace
public void setResourceId(java.lang.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
.
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
.public java.lang.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
.
service/default/sample-webapp
.public ScalingActivity withResourceId(java.lang.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
.
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
.public void setScalableDimension(java.lang.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.
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.ScalableDimension
public java.lang.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.
ecs:service:DesiredCount
for the desired task count
of an Amazon ECS service.ScalableDimension
public ScalingActivity withScalableDimension(java.lang.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.
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.ScalableDimension
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.
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.ScalableDimension
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.
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.ScalableDimension
public void setDescription(java.lang.String description)
A simple description of what action the scaling activity intends to accomplish.
description
- A simple description of what action the scaling activity intends
to accomplish.public java.lang.String getDescription()
A simple description of what action the scaling activity intends to accomplish.
public ScalingActivity withDescription(java.lang.String description)
A simple description of what action the scaling activity intends to accomplish.
description
- A simple description of what action the scaling activity intends
to accomplish.public void setCause(java.lang.String cause)
A simple description of what caused the scaling activity to happen.
cause
- A simple description of what caused the scaling activity to
happen.public java.lang.String getCause()
A simple description of what caused the scaling activity to happen.
public ScalingActivity withCause(java.lang.String cause)
A simple description of what caused the scaling activity to happen.
cause
- A simple description of what caused the scaling activity to
happen.public void setStartTime(java.util.Date startTime)
The Unix timestamp for when the scaling activity began.
startTime
- The Unix timestamp for when the scaling activity began.public java.util.Date getStartTime()
The Unix timestamp for when the scaling activity began.
public ScalingActivity withStartTime(java.util.Date startTime)
The Unix timestamp for when the scaling activity began.
startTime
- The Unix timestamp for when the scaling activity began.public void setEndTime(java.util.Date endTime)
The Unix timestamp for when the scaling activity ended.
endTime
- The Unix timestamp for when the scaling activity ended.public java.util.Date getEndTime()
The Unix timestamp for when the scaling activity ended.
public ScalingActivity withEndTime(java.util.Date endTime)
The Unix timestamp for when the scaling activity ended.
endTime
- The Unix timestamp for when the scaling activity ended.public void setStatusCode(java.lang.String statusCode)
Indicates the status of the scaling activity.
statusCode
- Indicates the status of the scaling activity.ScalingActivityStatusCode
public java.lang.String getStatusCode()
Indicates the status of the scaling activity.
ScalingActivityStatusCode
public ScalingActivity withStatusCode(java.lang.String statusCode)
Indicates the status of the scaling activity.
statusCode
- Indicates the status of the scaling activity.ScalingActivityStatusCode
public void setStatusCode(ScalingActivityStatusCode statusCode)
Indicates the status of the scaling activity.
statusCode
- Indicates the status of the scaling activity.ScalingActivityStatusCode
public ScalingActivity withStatusCode(ScalingActivityStatusCode statusCode)
Indicates the status of the scaling activity.
statusCode
- Indicates the status of the scaling activity.ScalingActivityStatusCode
public void setStatusMessage(java.lang.String statusMessage)
A simple message about the current status of the scaling activity.
statusMessage
- A simple message about the current status of the scaling activity.public java.lang.String getStatusMessage()
A simple message about the current status of the scaling activity.
public ScalingActivity withStatusMessage(java.lang.String statusMessage)
A simple message about the current status of the scaling activity.
statusMessage
- A simple message about the current status of the scaling activity.public void setDetails(java.lang.String details)
The details about the scaling activity.
details
- The details about the scaling activity.public java.lang.String getDetails()
The details about the scaling activity.
public ScalingActivity withDetails(java.lang.String details)
The details about the scaling activity.
details
- The details about the scaling activity.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ScalingActivity clone()
clone
in class java.lang.Object