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

* Contains the details of a snapshot or cluster export to Amazon S3. *

*

* This data type is used as a response element in the DescribeExportTasks action. *

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

* A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket * where the data is exported. *

*/ private String exportTaskIdentifier; /** *

* The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3. *

*/ private String sourceArn; /** *

* The data exported from the snapshot or cluster. Valid values are the following: *

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

* The time that the snapshot was created. *

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

* The time that the snapshot or cluster export task started. *

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

* The time that the snapshot or cluster export task ended. *

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

* The Amazon S3 bucket that the snapshot or cluster is exported to. *

*/ private String s3Bucket; /** *

* The Amazon S3 bucket prefix that is the file name and path of the exported data. *

*/ private String s3Prefix; /** *

* The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster. *

*/ private String iamRoleArn; /** *

* The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to * Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the * export must have encryption and decryption permissions to use this KMS key. *

*/ private String kmsKeyId; /** *

* The progress status of the export task. The status can be one of the following: *

* */ private String status; /** *

* The progress of the snapshot or cluster export task as a percentage. *

*/ private Integer percentProgress; /** *

* The total amount of data exported, in gigabytes. *

*/ private Integer totalExtractedDataInGB; /** *

* The reason the export failed, if it failed. *

*/ private String failureCause; /** *

* A warning about the snapshot or cluster export task. *

*/ private String warningMessage; /** *

* The type of source for the export. *

*/ private String sourceType; /** *

* A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket * where the data is exported. *

* * @param exportTaskIdentifier * A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 * bucket where the data is exported. */ public void setExportTaskIdentifier(String exportTaskIdentifier) { this.exportTaskIdentifier = exportTaskIdentifier; } /** *

* A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket * where the data is exported. *

* * @return A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon * S3 bucket where the data is exported. */ public String getExportTaskIdentifier() { return this.exportTaskIdentifier; } /** *

* A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket * where the data is exported. *

* * @param exportTaskIdentifier * A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 * bucket where the data is exported. * @return Returns a reference to this object so that method calls can be chained together. */ public StartExportTaskResult withExportTaskIdentifier(String exportTaskIdentifier) { setExportTaskIdentifier(exportTaskIdentifier); return this; } /** *

* The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3. *

* * @param sourceArn * The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3. */ public void setSourceArn(String sourceArn) { this.sourceArn = sourceArn; } /** *

* The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3. *

* * @return The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3. */ public String getSourceArn() { return this.sourceArn; } /** *

* The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3. *

* * @param sourceArn * The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ public StartExportTaskResult withSourceArn(String sourceArn) { setSourceArn(sourceArn); return this; } /** *

* The data exported from the snapshot or cluster. Valid values are the following: *

* * * @return The data exported from the snapshot or cluster. Valid values are the following:

*