/* * 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 scalable target. *

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

* 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 scalable target. This string consists of the resource type and * unique identifier. *

* */ private String resourceId; /** *

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

* */ private String scalableDimension; /** *

* The minimum value to scale to in response to a scale-in activity. *

*/ private Integer minCapacity; /** *

* The maximum value to scale to in response to a scale-out activity. *

*/ private Integer maxCapacity; /** *

* The ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your behalf. *

*/ private String roleARN; /** *

* The Unix timestamp for when the scalable target was created. *

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

* Specifies whether the scaling activities for a scalable target are in a suspended state. *

*/ private SuspendedState suspendedState; /** *

* The ARN of the scalable target. *

*/ private String scalableTargetARN; /** *

* 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 ScalableTarget 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 ScalableTarget withServiceNamespace(ServiceNamespace serviceNamespace) { this.serviceNamespace = serviceNamespace.toString(); return this; } /** *

* The identifier of the resource associated with the scalable target. This string consists of the resource type and * unique identifier. *

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

*