/* * 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; /** *

* Describes an instance refresh for an Auto Scaling group. *

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

* The instance refresh ID. *

*/ private String instanceRefreshId; /** *

* The name of the Auto Scaling group. *

*/ private String autoScalingGroupName; /** *

* The current status for the instance refresh operation: *

* */ private String status; /** *

* The explanation for the specific status assigned to this operation. *

*/ private String statusReason; /** *

* The date and time at which the instance refresh began. *

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

* The date and time at which the instance refresh ended. *

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

* The percentage of the instance refresh that is complete. For each instance replacement, Amazon EC2 Auto Scaling * tracks the instance's health status and warm-up time. When the instance's health status changes to healthy and * the specified warm-up time passes, the instance is considered updated and is added to the percentage complete. *

* *

* PercentageComplete does not include instances that are replaced during a rollback. This value * gradually goes back down to zero during a rollback. *

*
*/ private Integer percentageComplete; /** *

* The number of instances remaining to update before the instance refresh is complete. *

* *

* If you roll back the instance refresh, InstancesToUpdate shows you the number of instances that were * not yet updated by the instance refresh. Therefore, these instances don't need to be replaced as part of the * rollback. *

*
*/ private Integer instancesToUpdate; /** *

* Additional progress details for an Auto Scaling group that has a warm pool. *

*/ private InstanceRefreshProgressDetails progressDetails; /** *

* The preferences for an instance refresh. *

*/ private RefreshPreferences preferences; /** *

* Describes the desired configuration for the instance refresh. *

*/ private DesiredConfiguration desiredConfiguration; /** *

* The rollback details. *

*/ private RollbackDetails rollbackDetails; /** *

* The instance refresh ID. *

* * @param instanceRefreshId * The instance refresh ID. */ public void setInstanceRefreshId(String instanceRefreshId) { this.instanceRefreshId = instanceRefreshId; } /** *

* The instance refresh ID. *

* * @return The instance refresh ID. */ public String getInstanceRefreshId() { return this.instanceRefreshId; } /** *

* The instance refresh ID. *

* * @param instanceRefreshId * The instance refresh ID. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceRefresh withInstanceRefreshId(String instanceRefreshId) { setInstanceRefreshId(instanceRefreshId); return this; } /** *

* 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 InstanceRefresh withAutoScalingGroupName(String autoScalingGroupName) { setAutoScalingGroupName(autoScalingGroupName); return this; } /** *

* The current status for the instance refresh operation: *

* * * @param status * The current status for the instance refresh operation:

*