/* * 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.autoscalingplans.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents a scalable resource. *

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

* The name of the scaling plan. *

*/ private String scalingPlanName; /** *

* The version number of the scaling plan. *

*/ private Long scalingPlanVersion; /** *

* The namespace of the AWS service. *

*/ private String serviceNamespace; /** *

* The ID of the resource. This string consists of the resource type and unique identifier. *

* */ private String resourceId; /** *

* The scalable dimension for the resource. *

* */ private String scalableDimension; /** *

* The scaling policies. *

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

* The scaling status of the resource. *

* */ private String scalingStatusCode; /** *

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

*/ private String scalingStatusMessage; /** *

* The name of the scaling plan. *

* * @param scalingPlanName * The name of the scaling plan. */ public void setScalingPlanName(String scalingPlanName) { this.scalingPlanName = scalingPlanName; } /** *

* The name of the scaling plan. *

* * @return The name of the scaling plan. */ public String getScalingPlanName() { return this.scalingPlanName; } /** *

* The name of the scaling plan. *

* * @param scalingPlanName * The name of the scaling plan. * @return Returns a reference to this object so that method calls can be chained together. */ public ScalingPlanResource withScalingPlanName(String scalingPlanName) { setScalingPlanName(scalingPlanName); return this; } /** *

* The version number of the scaling plan. *

* * @param scalingPlanVersion * The version number of the scaling plan. */ public void setScalingPlanVersion(Long scalingPlanVersion) { this.scalingPlanVersion = scalingPlanVersion; } /** *

* The version number of the scaling plan. *

* * @return The version number of the scaling plan. */ public Long getScalingPlanVersion() { return this.scalingPlanVersion; } /** *

* The version number of the scaling plan. *

* * @param scalingPlanVersion * The version number of the scaling plan. * @return Returns a reference to this object so that method calls can be chained together. */ public ScalingPlanResource withScalingPlanVersion(Long scalingPlanVersion) { setScalingPlanVersion(scalingPlanVersion); return this; } /** *

* The namespace of the AWS service. *

* * @param serviceNamespace * The namespace of the AWS service. * @see ServiceNamespace */ public void setServiceNamespace(String serviceNamespace) { this.serviceNamespace = serviceNamespace; } /** *

* The namespace of the AWS service. *

* * @return The namespace of the AWS service. * @see ServiceNamespace */ public String getServiceNamespace() { return this.serviceNamespace; } /** *

* The namespace of the AWS service. *

* * @param serviceNamespace * The namespace of the AWS service. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceNamespace */ public ScalingPlanResource withServiceNamespace(String serviceNamespace) { setServiceNamespace(serviceNamespace); return this; } /** *

* The namespace of the AWS service. *

* * @param serviceNamespace * The namespace of the AWS service. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceNamespace */ public ScalingPlanResource withServiceNamespace(ServiceNamespace serviceNamespace) { this.serviceNamespace = serviceNamespace.toString(); return this; } /** *

* The ID of the resource. This string consists of the resource type and unique identifier. *

* * * @param resourceId * The ID of the resource. This string consists of the resource type and unique identifier.

*