All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.autoscaling.model.UpdateAutoScalingGroupRequest Maven / Gradle / Ivy

/*
 * Copyright 2010-2011 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.autoscaling.model;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * Container for the parameters to the {@link com.amazonaws.services.autoscaling.AmazonAutoScaling#updateAutoScalingGroup(UpdateAutoScalingGroupRequest) UpdateAutoScalingGroup operation}.
 * 

* Updates the configuration for the specified AutoScalingGroup. *

*

* The new settings are registered upon the completion of this call. Any * launch configuration settings take effect on any triggers after this * call returns. Triggers that are currently in progress aren't affected. *

*

* NOTE: If the new values are specified for the MinSize or * MaxSize parameters, then there will be an implicit call to * SetDesiredCapacity to set the group to the new MaxSize. All optional * parameters are left unchanged if not passed in the request. *

* * @see com.amazonaws.services.autoscaling.AmazonAutoScaling#updateAutoScalingGroup(UpdateAutoScalingGroupRequest) */ public class UpdateAutoScalingGroupRequest extends AmazonWebServiceRequest { /** * *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String autoScalingGroupName; /** * *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String launchConfigurationName; /** * */ private Integer minSize; /** * */ private Integer maxSize; /** * */ private Integer cooldown; /** * *

* Constraints:
* Length: 1 -
*/ private java.util.List availabilityZones; /** * *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return */ public String getAutoScalingGroupName() { return autoScalingGroupName; } /** * *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param autoScalingGroupName */ public void setAutoScalingGroupName(String autoScalingGroupName) { this.autoScalingGroupName = autoScalingGroupName; } /** * *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 100
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param autoScalingGroupName * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateAutoScalingGroupRequest withAutoScalingGroupName(String autoScalingGroupName) { this.autoScalingGroupName = autoScalingGroupName; return this; } /** * *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return */ public String getLaunchConfigurationName() { return launchConfigurationName; } /** * *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param launchConfigurationName */ public void setLaunchConfigurationName(String launchConfigurationName) { this.launchConfigurationName = launchConfigurationName; } /** * *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param launchConfigurationName * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateAutoScalingGroupRequest withLaunchConfigurationName(String launchConfigurationName) { this.launchConfigurationName = launchConfigurationName; return this; } /** * * * @return */ public Integer getMinSize() { return minSize; } /** * * * @param minSize */ public void setMinSize(Integer minSize) { this.minSize = minSize; } /** * *

* Returns a reference to this object so that method calls can be chained together. * * @param minSize * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateAutoScalingGroupRequest withMinSize(Integer minSize) { this.minSize = minSize; return this; } /** * * * @return */ public Integer getMaxSize() { return maxSize; } /** * * * @param maxSize */ public void setMaxSize(Integer maxSize) { this.maxSize = maxSize; } /** * *

* Returns a reference to this object so that method calls can be chained together. * * @param maxSize * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateAutoScalingGroupRequest withMaxSize(Integer maxSize) { this.maxSize = maxSize; return this; } /** * * * @return */ public Integer getCooldown() { return cooldown; } /** * * * @param cooldown */ public void setCooldown(Integer cooldown) { this.cooldown = cooldown; } /** * *

* Returns a reference to this object so that method calls can be chained together. * * @param cooldown * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateAutoScalingGroupRequest withCooldown(Integer cooldown) { this.cooldown = cooldown; return this; } /** * *

* Constraints:
* Length: 1 -
* * @return */ public java.util.List getAvailabilityZones() { if (availabilityZones == null) { availabilityZones = new java.util.ArrayList(); } return availabilityZones; } /** * *

* Constraints:
* Length: 1 -
* * @param availabilityZones */ public void setAvailabilityZones(java.util.Collection availabilityZones) { java.util.List availabilityZonesCopy = new java.util.ArrayList(); if (availabilityZones != null) { availabilityZonesCopy.addAll(availabilityZones); } this.availabilityZones = availabilityZonesCopy; } /** * *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 -
* * @param availabilityZones * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateAutoScalingGroupRequest withAvailabilityZones(String... availabilityZones) { for (String value : availabilityZones) { getAvailabilityZones().add(value); } return this; } /** * *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 -
* * @param availabilityZones * * @return A reference to this updated object so that method calls can be chained * together. */ public UpdateAutoScalingGroupRequest withAvailabilityZones(java.util.Collection availabilityZones) { java.util.List availabilityZonesCopy = new java.util.ArrayList(); if (availabilityZones != null) { availabilityZonesCopy.addAll(availabilityZones); } this.availabilityZones = availabilityZonesCopy; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("AutoScalingGroupName: " + autoScalingGroupName + ", "); sb.append("LaunchConfigurationName: " + launchConfigurationName + ", "); sb.append("MinSize: " + minSize + ", "); sb.append("MaxSize: " + maxSize + ", "); sb.append("Cooldown: " + cooldown + ", "); sb.append("AvailabilityZones: " + availabilityZones + ", "); sb.append("}"); return sb.toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy