/* * 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; /** *
* Describes an import instance task. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ImportInstanceTaskDetails implements Serializable, Cloneable { /** ** A description of the task. *
*/ private String description; /** ** The ID of the instance. *
*/ private String instanceId; /** ** The instance operating system. *
*/ private String platform; /** ** The volumes. *
*/ private com.amazonaws.internal.SdkInternalList* A description of the task. *
* * @param description * A description of the task. */ public void setDescription(String description) { this.description = description; } /** ** A description of the task. *
* * @return A description of the task. */ public String getDescription() { return this.description; } /** ** A description of the task. *
* * @param description * A description of the task. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportInstanceTaskDetails withDescription(String description) { setDescription(description); return this; } /** ** The ID of the instance. *
* * @param instanceId * The ID of the instance. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** ** The ID of the instance. *
* * @return The ID of the instance. */ public String getInstanceId() { return this.instanceId; } /** ** The ID of the instance. *
* * @param instanceId * The ID of the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportInstanceTaskDetails withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** ** The instance operating system. *
* * @param platform * The instance operating system. * @see PlatformValues */ public void setPlatform(String platform) { this.platform = platform; } /** ** The instance operating system. *
* * @return The instance operating system. * @see PlatformValues */ public String getPlatform() { return this.platform; } /** ** The instance operating system. *
* * @param platform * The instance operating system. * @return Returns a reference to this object so that method calls can be chained together. * @see PlatformValues */ public ImportInstanceTaskDetails withPlatform(String platform) { setPlatform(platform); return this; } /** ** The instance operating system. *
* * @param platform * The instance operating system. * @see PlatformValues */ public void setPlatform(PlatformValues platform) { withPlatform(platform); } /** ** The instance operating system. *
* * @param platform * The instance operating system. * @return Returns a reference to this object so that method calls can be chained together. * @see PlatformValues */ public ImportInstanceTaskDetails withPlatform(PlatformValues platform) { this.platform = platform.toString(); return this; } /** ** The volumes. *
* * @return The volumes. */ public java.util.List* The volumes. *
* * @param volumes * The volumes. */ public void setVolumes(java.util.Collection* The volumes. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVolumes(java.util.Collection)} or {@link #withVolumes(java.util.Collection)} if you want to override * the existing values. *
* * @param volumes * The volumes. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportInstanceTaskDetails withVolumes(ImportInstanceVolumeDetailItem... volumes) { if (this.volumes == null) { setVolumes(new com.amazonaws.internal.SdkInternalList* The volumes. *
* * @param volumes * The volumes. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportInstanceTaskDetails withVolumes(java.util.Collection