/* * 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.ec2.model; import java.io.Serializable; import javax.annotation.Generated; /** *

* Information about a root volume replacement task. *

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

* The ID of the root volume replacement task. *

*/ private String replaceRootVolumeTaskId; /** *

* The ID of the instance for which the root volume replacement task was created. *

*/ private String instanceId; /** *

* The state of the task. The task can be in one of the following states: *

* */ private String taskState; /** *

* The time the task was started. *

*/ private String startTime; /** *

* The time the task completed. *

*/ private String completeTime; /** *

* The tags assigned to the task. *

*/ private com.amazonaws.internal.SdkInternalList tags; /** *

* The ID of the AMI used to create the replacement root volume. *

*/ private String imageId; /** *

* The ID of the snapshot used to create the replacement root volume. *

*/ private String snapshotId; /** *

* Indicates whether the original root volume is to be deleted after the root volume replacement task completes. *

*/ private Boolean deleteReplacedRootVolume; /** *

* The ID of the root volume replacement task. *

* * @param replaceRootVolumeTaskId * The ID of the root volume replacement task. */ public void setReplaceRootVolumeTaskId(String replaceRootVolumeTaskId) { this.replaceRootVolumeTaskId = replaceRootVolumeTaskId; } /** *

* The ID of the root volume replacement task. *

* * @return The ID of the root volume replacement task. */ public String getReplaceRootVolumeTaskId() { return this.replaceRootVolumeTaskId; } /** *

* The ID of the root volume replacement task. *

* * @param replaceRootVolumeTaskId * The ID of the root volume replacement task. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplaceRootVolumeTask withReplaceRootVolumeTaskId(String replaceRootVolumeTaskId) { setReplaceRootVolumeTaskId(replaceRootVolumeTaskId); return this; } /** *

* The ID of the instance for which the root volume replacement task was created. *

* * @param instanceId * The ID of the instance for which the root volume replacement task was created. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** *

* The ID of the instance for which the root volume replacement task was created. *

* * @return The ID of the instance for which the root volume replacement task was created. */ public String getInstanceId() { return this.instanceId; } /** *

* The ID of the instance for which the root volume replacement task was created. *

* * @param instanceId * The ID of the instance for which the root volume replacement task was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplaceRootVolumeTask withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** *

* The state of the task. The task can be in one of the following states: *

* * * @param taskState * The state of the task. The task can be in one of the following states:

*