/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.applicationautoscaling.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents a scaling activity. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ScalingActivity implements Serializable, Cloneable, StructuredPojo { /** *

* The unique identifier of the scaling activity. *

*/ private String activityId; /** *

* The namespace of the Amazon Web Services service that provides the resource, or a custom-resource. *

*/ private String serviceNamespace; /** *

* The identifier of the resource associated with the scaling activity. This string consists of the resource type * and unique identifier. *

* */ private String resourceId; /** *

* The scalable dimension. This string consists of the service namespace, resource type, and scaling property. *

* */ private String scalableDimension; /** *

* A simple description of what action the scaling activity intends to accomplish. *

*/ private String description; /** *

* A simple description of what caused the scaling activity to happen. *

*/ private String cause; /** *

* The Unix timestamp for when the scaling activity began. *

*/ private java.util.Date startTime; /** *

* The Unix timestamp for when the scaling activity ended. *

*/ private java.util.Date endTime; /** *

* Indicates the status of the scaling activity. *

*/ private String statusCode; /** *

* A simple message about the current status of the scaling activity. *

*/ private String statusMessage; /** *

* The details about the scaling activity. *

*/ private String details; /** *

* Machine-readable data that describes the reason for a not scaled activity. Only available when DescribeScalingActivities includes not scaled activities. *

*/ private java.util.List notScaledReasons; /** *

* The unique identifier of the scaling activity. *

* * @param activityId * The unique identifier of the scaling activity. */ public void setActivityId(String activityId) { this.activityId = activityId; } /** *

* The unique identifier of the scaling activity. *

* * @return The unique identifier of the scaling activity. */ public String getActivityId() { return this.activityId; } /** *

* The unique identifier of the scaling activity. *

* * @param activityId * The unique identifier of the scaling activity. * @return Returns a reference to this object so that method calls can be chained together. */ public ScalingActivity withActivityId(String activityId) { setActivityId(activityId); return this; } /** *

* The namespace of the Amazon Web Services service that provides the resource, or a custom-resource. *

* * @param serviceNamespace * The namespace of the Amazon Web Services service that provides the resource, or a * custom-resource. * @see ServiceNamespace */ public void setServiceNamespace(String serviceNamespace) { this.serviceNamespace = serviceNamespace; } /** *

* The namespace of the Amazon Web Services service that provides the resource, or a custom-resource. *

* * @return The namespace of the Amazon Web Services service that provides the resource, or a * custom-resource. * @see ServiceNamespace */ public String getServiceNamespace() { return this.serviceNamespace; } /** *

* The namespace of the Amazon Web Services service that provides the resource, or a custom-resource. *

* * @param serviceNamespace * The namespace of the Amazon Web Services service that provides the resource, or a * custom-resource. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceNamespace */ public ScalingActivity withServiceNamespace(String serviceNamespace) { setServiceNamespace(serviceNamespace); return this; } /** *

* The namespace of the Amazon Web Services service that provides the resource, or a custom-resource. *

* * @param serviceNamespace * The namespace of the Amazon Web Services service that provides the resource, or a * custom-resource. * @see ServiceNamespace */ public void setServiceNamespace(ServiceNamespace serviceNamespace) { withServiceNamespace(serviceNamespace); } /** *

* The namespace of the Amazon Web Services service that provides the resource, or a custom-resource. *

* * @param serviceNamespace * The namespace of the Amazon Web Services service that provides the resource, or a * custom-resource. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceNamespace */ public ScalingActivity withServiceNamespace(ServiceNamespace serviceNamespace) { this.serviceNamespace = serviceNamespace.toString(); return this; } /** *

* The identifier of the resource associated with the scaling activity. This string consists of the resource type * and unique identifier. *

* * * @param resourceId * The identifier of the resource associated with the scaling activity. This string consists of the resource * type and unique identifier.

*