/* * 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.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateScalingPlanRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the scaling plan. *
*/ private String scalingPlanName; /** *
* The version number of the scaling plan. The only valid value is 1
. Currently, you cannot have
* multiple scaling plan versions.
*
* A CloudFormation stack or set of tags. *
** For more information, see ApplicationSource in the AWS Auto Scaling API Reference. *
*/ private ApplicationSource applicationSource; /** ** The scaling instructions. *
** For more information, see ScalingInstruction in the AWS Auto Scaling API Reference. *
*/ private java.util.List* 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 UpdateScalingPlanRequest withScalingPlanName(String scalingPlanName) { setScalingPlanName(scalingPlanName); return this; } /** *
* The version number of the scaling plan. The only valid value is 1
. Currently, you cannot have
* multiple scaling plan versions.
*
1
. Currently, you cannot have
* multiple scaling plan versions.
*/
public void setScalingPlanVersion(Long scalingPlanVersion) {
this.scalingPlanVersion = scalingPlanVersion;
}
/**
*
* The version number of the scaling plan. The only valid value is 1
. Currently, you cannot have
* multiple scaling plan versions.
*
1
. Currently, you cannot
* have multiple scaling plan versions.
*/
public Long getScalingPlanVersion() {
return this.scalingPlanVersion;
}
/**
*
* The version number of the scaling plan. The only valid value is 1
. Currently, you cannot have
* multiple scaling plan versions.
*
1
. Currently, you cannot have
* multiple scaling plan versions.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateScalingPlanRequest withScalingPlanVersion(Long scalingPlanVersion) {
setScalingPlanVersion(scalingPlanVersion);
return this;
}
/**
* * A CloudFormation stack or set of tags. *
** For more information, see ApplicationSource in the AWS Auto Scaling API Reference. *
* * @param applicationSource * A CloudFormation stack or set of tags. ** For more information, see ApplicationSource in the AWS Auto Scaling API Reference. */ public void setApplicationSource(ApplicationSource applicationSource) { this.applicationSource = applicationSource; } /** *
* A CloudFormation stack or set of tags. *
** For more information, see ApplicationSource in the AWS Auto Scaling API Reference. *
* * @return A CloudFormation stack or set of tags. ** For more information, see ApplicationSource in the AWS Auto Scaling API Reference. */ public ApplicationSource getApplicationSource() { return this.applicationSource; } /** *
* A CloudFormation stack or set of tags. *
** For more information, see ApplicationSource in the AWS Auto Scaling API Reference. *
* * @param applicationSource * A CloudFormation stack or set of tags. ** For more information, see ApplicationSource in the AWS Auto Scaling API Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateScalingPlanRequest withApplicationSource(ApplicationSource applicationSource) { setApplicationSource(applicationSource); return this; } /** *
* The scaling instructions. *
** For more information, see ScalingInstruction in the AWS Auto Scaling API Reference. *
* * @return The scaling instructions. *
* For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
*/
public java.util.List
* The scaling instructions.
*
* For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
*
* For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
*/
public void setScalingInstructions(java.util.Collection
* The scaling instructions.
*
* For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setScalingInstructions(java.util.Collection)} or {@link #withScalingInstructions(java.util.Collection)}
* if you want to override the existing values.
*
* For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateScalingPlanRequest withScalingInstructions(ScalingInstruction... scalingInstructions) {
if (this.scalingInstructions == null) {
setScalingInstructions(new java.util.ArrayList
* The scaling instructions.
*
* For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
*
* For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateScalingPlanRequest withScalingInstructions(java.util.Collection