/* * 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.dynamodbv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents the properties of the exported table. *

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

* The Amazon Resource Name (ARN) of the table export. *

*/ private String exportArn; /** *

* Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED. *

*/ private String exportStatus; /** *

* The time at which the export task began. *

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

* The time at which the export task completed. *

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

* The name of the manifest file for the export task. *

*/ private String exportManifest; /** *

* The Amazon Resource Name (ARN) of the table that was exported. *

*/ private String tableArn; /** *

* Unique ID of the table that was exported. *

*/ private String tableId; /** *

* Point in time from which table data was exported. *

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

* The client token that was provided for the export task. A client token makes calls to * ExportTableToPointInTimeInput idempotent, meaning that multiple identical calls have the same effect * as one single call. *

*/ private String clientToken; /** *

* The name of the Amazon S3 bucket containing the export. *

*/ private String s3Bucket; /** *

* The ID of the Amazon Web Services account that owns the bucket containing the export. *

*/ private String s3BucketOwner; /** *

* The Amazon S3 bucket prefix used as the file name and path of the exported snapshot. *

*/ private String s3Prefix; /** *

* Type of encryption used on the bucket where export data is stored. Valid values for S3SseAlgorithm * are: *

* */ private String s3SseAlgorithm; /** *

* The ID of the KMS managed key used to encrypt the S3 bucket where export data is stored (if applicable). *

*/ private String s3SseKmsKeyId; /** *

* Status code for the result of the failed export. *

*/ private String failureCode; /** *

* Export failure reason description. *

*/ private String failureMessage; /** *

* The format of the exported data. Valid values for ExportFormat are DYNAMODB_JSON or * ION. *

*/ private String exportFormat; /** *

* The billable size of the table export. *

*/ private Long billedSizeBytes; /** *

* The number of items exported. *

*/ private Long itemCount; /** *

* The Amazon Resource Name (ARN) of the table export. *

* * @param exportArn * The Amazon Resource Name (ARN) of the table export. */ public void setExportArn(String exportArn) { this.exportArn = exportArn; } /** *

* The Amazon Resource Name (ARN) of the table export. *

* * @return The Amazon Resource Name (ARN) of the table export. */ public String getExportArn() { return this.exportArn; } /** *

* The Amazon Resource Name (ARN) of the table export. *

* * @param exportArn * The Amazon Resource Name (ARN) of the table export. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportDescription withExportArn(String exportArn) { setExportArn(exportArn); return this; } /** *

* Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED. *

* * @param exportStatus * Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED. * @see ExportStatus */ public void setExportStatus(String exportStatus) { this.exportStatus = exportStatus; } /** *

* Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED. *

* * @return Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED. * @see ExportStatus */ public String getExportStatus() { return this.exportStatus; } /** *

* Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED. *

* * @param exportStatus * Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED. * @return Returns a reference to this object so that method calls can be chained together. * @see ExportStatus */ public ExportDescription withExportStatus(String exportStatus) { setExportStatus(exportStatus); return this; } /** *

* Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED. *

* * @param exportStatus * Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED. * @return Returns a reference to this object so that method calls can be chained together. * @see ExportStatus */ public ExportDescription withExportStatus(ExportStatus exportStatus) { this.exportStatus = exportStatus.toString(); return this; } /** *

* The time at which the export task began. *

* * @param startTime * The time at which the export task began. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The time at which the export task began. *

* * @return The time at which the export task began. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The time at which the export task began. *

* * @param startTime * The time at which the export task began. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportDescription withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The time at which the export task completed. *

* * @param endTime * The time at which the export task completed. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The time at which the export task completed. *

* * @return The time at which the export task completed. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The time at which the export task completed. *

* * @param endTime * The time at which the export task completed. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportDescription withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The name of the manifest file for the export task. *

* * @param exportManifest * The name of the manifest file for the export task. */ public void setExportManifest(String exportManifest) { this.exportManifest = exportManifest; } /** *

* The name of the manifest file for the export task. *

* * @return The name of the manifest file for the export task. */ public String getExportManifest() { return this.exportManifest; } /** *

* The name of the manifest file for the export task. *

* * @param exportManifest * The name of the manifest file for the export task. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportDescription withExportManifest(String exportManifest) { setExportManifest(exportManifest); return this; } /** *

* The Amazon Resource Name (ARN) of the table that was exported. *

* * @param tableArn * The Amazon Resource Name (ARN) of the table that was exported. */ public void setTableArn(String tableArn) { this.tableArn = tableArn; } /** *

* The Amazon Resource Name (ARN) of the table that was exported. *

* * @return The Amazon Resource Name (ARN) of the table that was exported. */ public String getTableArn() { return this.tableArn; } /** *

* The Amazon Resource Name (ARN) of the table that was exported. *

* * @param tableArn * The Amazon Resource Name (ARN) of the table that was exported. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportDescription withTableArn(String tableArn) { setTableArn(tableArn); return this; } /** *

* Unique ID of the table that was exported. *

* * @param tableId * Unique ID of the table that was exported. */ public void setTableId(String tableId) { this.tableId = tableId; } /** *

* Unique ID of the table that was exported. *

* * @return Unique ID of the table that was exported. */ public String getTableId() { return this.tableId; } /** *

* Unique ID of the table that was exported. *

* * @param tableId * Unique ID of the table that was exported. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportDescription withTableId(String tableId) { setTableId(tableId); return this; } /** *

* Point in time from which table data was exported. *

* * @param exportTime * Point in time from which table data was exported. */ public void setExportTime(java.util.Date exportTime) { this.exportTime = exportTime; } /** *

* Point in time from which table data was exported. *

* * @return Point in time from which table data was exported. */ public java.util.Date getExportTime() { return this.exportTime; } /** *

* Point in time from which table data was exported. *

* * @param exportTime * Point in time from which table data was exported. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportDescription withExportTime(java.util.Date exportTime) { setExportTime(exportTime); return this; } /** *

* The client token that was provided for the export task. A client token makes calls to * ExportTableToPointInTimeInput idempotent, meaning that multiple identical calls have the same effect * as one single call. *

* * @param clientToken * The client token that was provided for the export task. A client token makes calls to * ExportTableToPointInTimeInput idempotent, meaning that multiple identical calls have the same * effect as one single call. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* The client token that was provided for the export task. A client token makes calls to * ExportTableToPointInTimeInput idempotent, meaning that multiple identical calls have the same effect * as one single call. *

* * @return The client token that was provided for the export task. A client token makes calls to * ExportTableToPointInTimeInput idempotent, meaning that multiple identical calls have the * same effect as one single call. */ public String getClientToken() { return this.clientToken; } /** *

* The client token that was provided for the export task. A client token makes calls to * ExportTableToPointInTimeInput idempotent, meaning that multiple identical calls have the same effect * as one single call. *

* * @param clientToken * The client token that was provided for the export task. A client token makes calls to * ExportTableToPointInTimeInput idempotent, meaning that multiple identical calls have the same * effect as one single call. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportDescription withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* The name of the Amazon S3 bucket containing the export. *

* * @param s3Bucket * The name of the Amazon S3 bucket containing the export. */ public void setS3Bucket(String s3Bucket) { this.s3Bucket = s3Bucket; } /** *

* The name of the Amazon S3 bucket containing the export. *

* * @return The name of the Amazon S3 bucket containing the export. */ public String getS3Bucket() { return this.s3Bucket; } /** *

* The name of the Amazon S3 bucket containing the export. *

* * @param s3Bucket * The name of the Amazon S3 bucket containing the export. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportDescription withS3Bucket(String s3Bucket) { setS3Bucket(s3Bucket); return this; } /** *

* The ID of the Amazon Web Services account that owns the bucket containing the export. *

* * @param s3BucketOwner * The ID of the Amazon Web Services account that owns the bucket containing the export. */ public void setS3BucketOwner(String s3BucketOwner) { this.s3BucketOwner = s3BucketOwner; } /** *

* The ID of the Amazon Web Services account that owns the bucket containing the export. *

* * @return The ID of the Amazon Web Services account that owns the bucket containing the export. */ public String getS3BucketOwner() { return this.s3BucketOwner; } /** *

* The ID of the Amazon Web Services account that owns the bucket containing the export. *

* * @param s3BucketOwner * The ID of the Amazon Web Services account that owns the bucket containing the export. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportDescription withS3BucketOwner(String s3BucketOwner) { setS3BucketOwner(s3BucketOwner); return this; } /** *

* The Amazon S3 bucket prefix used as the file name and path of the exported snapshot. *

* * @param s3Prefix * The Amazon S3 bucket prefix used as the file name and path of the exported snapshot. */ public void setS3Prefix(String s3Prefix) { this.s3Prefix = s3Prefix; } /** *

* The Amazon S3 bucket prefix used as the file name and path of the exported snapshot. *

* * @return The Amazon S3 bucket prefix used as the file name and path of the exported snapshot. */ public String getS3Prefix() { return this.s3Prefix; } /** *

* The Amazon S3 bucket prefix used as the file name and path of the exported snapshot. *

* * @param s3Prefix * The Amazon S3 bucket prefix used as the file name and path of the exported snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public ExportDescription withS3Prefix(String s3Prefix) { setS3Prefix(s3Prefix); return this; } /** *

* Type of encryption used on the bucket where export data is stored. Valid values for S3SseAlgorithm * are: *

* * * @param s3SseAlgorithm * Type of encryption used on the bucket where export data is stored. Valid values for * S3SseAlgorithm are:

*