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 ScalingActivityclone()booleanequals(Object obj)StringgetActivityId()The unique identifier string for the scaling activity.StringgetCause()A simple description of what caused the scaling activity to happen.StringgetDescription()A simple description of what action the scaling activity intends to accomplish.StringgetDetails()The details about the scaling activity.DategetEndTime()The Unix timestamp for when the scaling activity ended.StringgetResourceId()The unique identifier string for the resource associated with the scaling activity.StringgetScalableDimension()The scalable dimension associated with the scaling activity.StringgetServiceNamespace()The namespace for the AWS service that the scaling activity is associated with.DategetStartTime()The Unix timestamp for when the scaling activity began.StringgetStatusCode()Indicates the status of the scaling activity.StringgetStatusMessage()A simple message about the current status of the scaling activity.inthashCode()voidsetActivityId(String activityId)The unique identifier string for the scaling activity.voidsetCause(String cause)A simple description of what caused the scaling activity to happen.voidsetDescription(String description)A simple description of what action the scaling activity intends to accomplish.voidsetDetails(String details)The details about the scaling activity.voidsetEndTime(Date endTime)The Unix timestamp for when the scaling activity ended.voidsetResourceId(String resourceId)The unique identifier string for the resource associated with the scaling activity.voidsetScalableDimension(ScalableDimension scalableDimension)The scalable dimension associated with the scaling activity.voidsetScalableDimension(String scalableDimension)The scalable dimension associated with the scaling activity.voidsetServiceNamespace(ServiceNamespace serviceNamespace)The namespace for the AWS service that the scaling activity is associated with.voidsetServiceNamespace(String serviceNamespace)The namespace for the AWS service that the scaling activity is associated with.voidsetStartTime(Date startTime)The Unix timestamp for when the scaling activity began.voidsetStatusCode(ScalingActivityStatusCode statusCode)Indicates the status of the scaling activity.voidsetStatusCode(String statusCode)Indicates the status of the scaling activity.voidsetStatusMessage(String statusMessage)A simple message about the current status of the scaling activity.StringtoString()Returns a string representation of this object; useful for testing and debugging.ScalingActivitywithActivityId(String activityId)The unique identifier string for the scaling activity.ScalingActivitywithCause(String cause)A simple description of what caused the scaling activity to happen.ScalingActivitywithDescription(String description)A simple description of what action the scaling activity intends to accomplish.ScalingActivitywithDetails(String details)The details about the scaling activity.ScalingActivitywithEndTime(Date endTime)The Unix timestamp for when the scaling activity ended.ScalingActivitywithResourceId(String resourceId)The unique identifier string for the resource associated with the scaling activity.ScalingActivitywithScalableDimension(ScalableDimension scalableDimension)The scalable dimension associated with the scaling activity.ScalingActivitywithScalableDimension(String scalableDimension)The scalable dimension associated with the scaling activity.ScalingActivitywithServiceNamespace(ServiceNamespace serviceNamespace)The namespace for the AWS service that the scaling activity is associated with.ScalingActivitywithServiceNamespace(String serviceNamespace)The namespace for the AWS service that the scaling activity is associated with.ScalingActivitywithStartTime(Date startTime)The Unix timestamp for when the scaling activity began.ScalingActivitywithStatusCode(ScalingActivityStatusCode statusCode)Indicates the status of the scaling activity.ScalingActivitywithStatusCode(String statusCode)Indicates the status of the scaling activity.ScalingActivitywithStatusMessage(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:DesiredCountfor 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:DesiredCountfor 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:DesiredCountfor 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:DesiredCountfor 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:DesiredCountfor 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: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 scaling activity. 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 scaling activity. 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 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:DesiredCountfor 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: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
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ScalingActivity clone()
-
-