/* * 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.autoscaling.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 StartInstanceRefreshRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the Auto Scaling group. *
*/ private String autoScalingGroupName; /** *
* The strategy to use for the instance refresh. The only valid value is Rolling
.
*
* The desired configuration. For example, the desired configuration can specify a new launch template or a new * version of the current launch template. *
** Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates the settings of the Auto Scaling group to * reflect the new desired configuration. *
*
* When you specify a new launch template or a new version of the current launch template for your desired
* configuration, consider enabling the SkipMatching
property in preferences. If it's enabled, Amazon
* EC2 Auto Scaling skips replacing instances that already use the specified launch template and instance types.
* This can help you reduce the number of replacements that are required to apply updates.
*
* Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the
* instance warmup time, the minimum healthy percentage, and the behaviors that you want Amazon EC2 Auto Scaling to
* use if instances that are in Standby
state or protected from scale in are found. You can also choose
* to enable additional features, such as the following:
*
* Auto rollback *
** Checkpoints *
** Skip matching *
** The name of the Auto Scaling group. *
* * @param autoScalingGroupName * The name of the Auto Scaling group. */ public void setAutoScalingGroupName(String autoScalingGroupName) { this.autoScalingGroupName = autoScalingGroupName; } /** ** The name of the Auto Scaling group. *
* * @return The name of the Auto Scaling group. */ public String getAutoScalingGroupName() { return this.autoScalingGroupName; } /** ** The name of the Auto Scaling group. *
* * @param autoScalingGroupName * The name of the Auto Scaling group. * @return Returns a reference to this object so that method calls can be chained together. */ public StartInstanceRefreshRequest withAutoScalingGroupName(String autoScalingGroupName) { setAutoScalingGroupName(autoScalingGroupName); return this; } /** *
* The strategy to use for the instance refresh. The only valid value is Rolling
.
*
Rolling
.
* @see RefreshStrategy
*/
public void setStrategy(String strategy) {
this.strategy = strategy;
}
/**
*
* The strategy to use for the instance refresh. The only valid value is Rolling
.
*
Rolling
.
* @see RefreshStrategy
*/
public String getStrategy() {
return this.strategy;
}
/**
*
* The strategy to use for the instance refresh. The only valid value is Rolling
.
*
Rolling
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RefreshStrategy
*/
public StartInstanceRefreshRequest withStrategy(String strategy) {
setStrategy(strategy);
return this;
}
/**
*
* The strategy to use for the instance refresh. The only valid value is Rolling
.
*
Rolling
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RefreshStrategy
*/
public StartInstanceRefreshRequest withStrategy(RefreshStrategy strategy) {
this.strategy = strategy.toString();
return this;
}
/**
* * The desired configuration. For example, the desired configuration can specify a new launch template or a new * version of the current launch template. *
** Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates the settings of the Auto Scaling group to * reflect the new desired configuration. *
*
* When you specify a new launch template or a new version of the current launch template for your desired
* configuration, consider enabling the SkipMatching
property in preferences. If it's enabled, Amazon
* EC2 Auto Scaling skips replacing instances that already use the specified launch template and instance types.
* This can help you reduce the number of replacements that are required to apply updates.
*
* Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates the settings of the Auto Scaling group * to reflect the new desired configuration. *
*
* When you specify a new launch template or a new version of the current launch template for your desired
* configuration, consider enabling the SkipMatching
property in preferences. If it's enabled,
* Amazon EC2 Auto Scaling skips replacing instances that already use the specified launch template and
* instance types. This can help you reduce the number of replacements that are required to apply updates.
*
* The desired configuration. For example, the desired configuration can specify a new launch template or a new * version of the current launch template. *
** Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates the settings of the Auto Scaling group to * reflect the new desired configuration. *
*
* When you specify a new launch template or a new version of the current launch template for your desired
* configuration, consider enabling the SkipMatching
property in preferences. If it's enabled, Amazon
* EC2 Auto Scaling skips replacing instances that already use the specified launch template and instance types.
* This can help you reduce the number of replacements that are required to apply updates.
*
* Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates the settings of the Auto Scaling * group to reflect the new desired configuration. *
*
* When you specify a new launch template or a new version of the current launch template for your desired
* configuration, consider enabling the SkipMatching
property in preferences. If it's enabled,
* Amazon EC2 Auto Scaling skips replacing instances that already use the specified launch template and
* instance types. This can help you reduce the number of replacements that are required to apply updates.
*
* The desired configuration. For example, the desired configuration can specify a new launch template or a new * version of the current launch template. *
** Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates the settings of the Auto Scaling group to * reflect the new desired configuration. *
*
* When you specify a new launch template or a new version of the current launch template for your desired
* configuration, consider enabling the SkipMatching
property in preferences. If it's enabled, Amazon
* EC2 Auto Scaling skips replacing instances that already use the specified launch template and instance types.
* This can help you reduce the number of replacements that are required to apply updates.
*
* Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates the settings of the Auto Scaling group * to reflect the new desired configuration. *
*
* When you specify a new launch template or a new version of the current launch template for your desired
* configuration, consider enabling the SkipMatching
property in preferences. If it's enabled,
* Amazon EC2 Auto Scaling skips replacing instances that already use the specified launch template and
* instance types. This can help you reduce the number of replacements that are required to apply updates.
*
* Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the
* instance warmup time, the minimum healthy percentage, and the behaviors that you want Amazon EC2 Auto Scaling to
* use if instances that are in Standby
state or protected from scale in are found. You can also choose
* to enable additional features, such as the following:
*
* Auto rollback *
** Checkpoints *
** Skip matching *
*Standby
state or protected from scale in are found.
* You can also choose to enable additional features, such as the following:
* * Auto rollback *
** Checkpoints *
** Skip matching *
*
* Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the
* instance warmup time, the minimum healthy percentage, and the behaviors that you want Amazon EC2 Auto Scaling to
* use if instances that are in Standby
state or protected from scale in are found. You can also choose
* to enable additional features, such as the following:
*
* Auto rollback *
** Checkpoints *
** Skip matching *
*Standby
state or protected from scale in
* are found. You can also choose to enable additional features, such as the following:
* * Auto rollback *
** Checkpoints *
** Skip matching *
*
* Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the
* instance warmup time, the minimum healthy percentage, and the behaviors that you want Amazon EC2 Auto Scaling to
* use if instances that are in Standby
state or protected from scale in are found. You can also choose
* to enable additional features, such as the following:
*
* Auto rollback *
** Checkpoints *
** Skip matching *
*Standby
state or protected from scale in are found.
* You can also choose to enable additional features, such as the following:
* * Auto rollback *
** Checkpoints *
** Skip matching *
*