/* * 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 export image task. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ExportImageTask implements Serializable, Cloneable { /** ** A description of the image being exported. *
*/ private String description; /** ** The ID of the export image task. *
*/ private String exportImageTaskId; /** ** The ID of the image. *
*/ private String imageId; /** ** The percent complete of the export image task. *
*/ private String progress; /** ** Information about the destination Amazon S3 bucket. *
*/ private ExportTaskS3Location s3ExportLocation; /** *
* The status of the export image task. The possible values are active
, completed
,
* deleting
, and deleted
.
*
* The status message for the export image task. *
*/ private String statusMessage; /** ** Any tags assigned to the export image task. *
*/ private com.amazonaws.internal.SdkInternalList* A description of the image being exported. *
* * @param description * A description of the image being exported. */ public void setDescription(String description) { this.description = description; } /** ** A description of the image being exported. *
* * @return A description of the image being exported. */ public String getDescription() { return this.description; } /** ** A description of the image being exported. *
* * @param description * A description of the image being exported. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportImageTask withDescription(String description) { setDescription(description); return this; } /** ** The ID of the export image task. *
* * @param exportImageTaskId * The ID of the export image task. */ public void setExportImageTaskId(String exportImageTaskId) { this.exportImageTaskId = exportImageTaskId; } /** ** The ID of the export image task. *
* * @return The ID of the export image task. */ public String getExportImageTaskId() { return this.exportImageTaskId; } /** ** The ID of the export image task. *
* * @param exportImageTaskId * The ID of the export image task. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportImageTask withExportImageTaskId(String exportImageTaskId) { setExportImageTaskId(exportImageTaskId); return this; } /** ** The ID of the image. *
* * @param imageId * The ID of the image. */ public void setImageId(String imageId) { this.imageId = imageId; } /** ** The ID of the image. *
* * @return The ID of the image. */ public String getImageId() { return this.imageId; } /** ** The ID of the image. *
* * @param imageId * The ID of the image. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportImageTask withImageId(String imageId) { setImageId(imageId); return this; } /** ** The percent complete of the export image task. *
* * @param progress * The percent complete of the export image task. */ public void setProgress(String progress) { this.progress = progress; } /** ** The percent complete of the export image task. *
* * @return The percent complete of the export image task. */ public String getProgress() { return this.progress; } /** ** The percent complete of the export image task. *
* * @param progress * The percent complete of the export image task. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportImageTask withProgress(String progress) { setProgress(progress); return this; } /** ** Information about the destination Amazon S3 bucket. *
* * @param s3ExportLocation * Information about the destination Amazon S3 bucket. */ public void setS3ExportLocation(ExportTaskS3Location s3ExportLocation) { this.s3ExportLocation = s3ExportLocation; } /** ** Information about the destination Amazon S3 bucket. *
* * @return Information about the destination Amazon S3 bucket. */ public ExportTaskS3Location getS3ExportLocation() { return this.s3ExportLocation; } /** ** Information about the destination Amazon S3 bucket. *
* * @param s3ExportLocation * Information about the destination Amazon S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportImageTask withS3ExportLocation(ExportTaskS3Location s3ExportLocation) { setS3ExportLocation(s3ExportLocation); return this; } /** *
* The status of the export image task. The possible values are active
, completed
,
* deleting
, and deleted
.
*
active
, completed
,
* deleting
, and deleted
.
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the export image task. The possible values are active
, completed
,
* deleting
, and deleted
.
*
active
, completed
,
* deleting
, and deleted
.
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the export image task. The possible values are active
, completed
,
* deleting
, and deleted
.
*
active
, completed
,
* deleting
, and deleted
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportImageTask withStatus(String status) {
setStatus(status);
return this;
}
/**
* * The status message for the export image task. *
* * @param statusMessage * The status message for the export image task. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** ** The status message for the export image task. *
* * @return The status message for the export image task. */ public String getStatusMessage() { return this.statusMessage; } /** ** The status message for the export image task. *
* * @param statusMessage * The status message for the export image task. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportImageTask withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** ** Any tags assigned to the export image task. *
* * @return Any tags assigned to the export image task. */ public java.util.List* Any tags assigned to the export image task. *
* * @param tags * Any tags assigned to the export image task. */ public void setTags(java.util.Collection* Any tags assigned to the export image task. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Any tags assigned to the export image task. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportImageTask withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* Any tags assigned to the export image task. *
* * @param tags * Any tags assigned to the export image task. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportImageTask withTags(java.util.Collection