/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the dynamodb-2012-08-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.DynamoDBv2.Model
{
///
/// Represents the properties of the exported table.
///
public partial class ExportDescription
{
private long? _billedSizeBytes;
private string _clientToken;
private DateTime? _endTime;
private string _exportArn;
private ExportFormat _exportFormat;
private string _exportManifest;
private ExportStatus _exportStatus;
private DateTime? _exportTime;
private string _failureCode;
private string _failureMessage;
private long? _itemCount;
private string _s3Bucket;
private string _s3BucketOwner;
private string _s3Prefix;
private S3SseAlgorithm _s3SseAlgorithm;
private string _s3SseKmsKeyId;
private DateTime? _startTime;
private string _tableArn;
private string _tableId;
///
/// Gets and sets the property BilledSizeBytes.
///
/// The billable size of the table export.
///
///
[AWSProperty(Min=0)]
public long BilledSizeBytes
{
get { return this._billedSizeBytes.GetValueOrDefault(); }
set { this._billedSizeBytes = value; }
}
// Check to see if BilledSizeBytes property is set
internal bool IsSetBilledSizeBytes()
{
return this._billedSizeBytes.HasValue;
}
///
/// Gets and sets the property 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 string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property EndTime.
///
/// The time at which the export task completed.
///
///
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
///
/// Gets and sets the property ExportArn.
///
/// The Amazon Resource Name (ARN) of the table export.
///
///
[AWSProperty(Min=37, Max=1024)]
public string ExportArn
{
get { return this._exportArn; }
set { this._exportArn = value; }
}
// Check to see if ExportArn property is set
internal bool IsSetExportArn()
{
return this._exportArn != null;
}
///
/// Gets and sets the property ExportFormat.
///
/// The format of the exported data. Valid values for ExportFormat
are DYNAMODB_JSON
/// or ION
.
///
///
public ExportFormat ExportFormat
{
get { return this._exportFormat; }
set { this._exportFormat = value; }
}
// Check to see if ExportFormat property is set
internal bool IsSetExportFormat()
{
return this._exportFormat != null;
}
///
/// Gets and sets the property ExportManifest.
///
/// The name of the manifest file for the export task.
///
///
public string ExportManifest
{
get { return this._exportManifest; }
set { this._exportManifest = value; }
}
// Check to see if ExportManifest property is set
internal bool IsSetExportManifest()
{
return this._exportManifest != null;
}
///
/// Gets and sets the property ExportStatus.
///
/// Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED.
///
///
public ExportStatus ExportStatus
{
get { return this._exportStatus; }
set { this._exportStatus = value; }
}
// Check to see if ExportStatus property is set
internal bool IsSetExportStatus()
{
return this._exportStatus != null;
}
///
/// Gets and sets the property ExportTime.
///
/// Point in time from which table data was exported.
///
///
public DateTime ExportTime
{
get { return this._exportTime.GetValueOrDefault(); }
set { this._exportTime = value; }
}
// Check to see if ExportTime property is set
internal bool IsSetExportTime()
{
return this._exportTime.HasValue;
}
///
/// Gets and sets the property FailureCode.
///
/// Status code for the result of the failed export.
///
///
public string FailureCode
{
get { return this._failureCode; }
set { this._failureCode = value; }
}
// Check to see if FailureCode property is set
internal bool IsSetFailureCode()
{
return this._failureCode != null;
}
///
/// Gets and sets the property FailureMessage.
///
/// Export failure reason description.
///
///
public string FailureMessage
{
get { return this._failureMessage; }
set { this._failureMessage = value; }
}
// Check to see if FailureMessage property is set
internal bool IsSetFailureMessage()
{
return this._failureMessage != null;
}
///
/// Gets and sets the property ItemCount.
///
/// The number of items exported.
///
///
[AWSProperty(Min=0)]
public long ItemCount
{
get { return this._itemCount.GetValueOrDefault(); }
set { this._itemCount = value; }
}
// Check to see if ItemCount property is set
internal bool IsSetItemCount()
{
return this._itemCount.HasValue;
}
///
/// Gets and sets the property S3Bucket.
///
/// The name of the Amazon S3 bucket containing the export.
///
///
[AWSProperty(Max=255)]
public string S3Bucket
{
get { return this._s3Bucket; }
set { this._s3Bucket = value; }
}
// Check to see if S3Bucket property is set
internal bool IsSetS3Bucket()
{
return this._s3Bucket != null;
}
///
/// Gets and sets the property S3BucketOwner.
///
/// The ID of the Amazon Web Services account that owns the bucket containing the export.
///
///
public string S3BucketOwner
{
get { return this._s3BucketOwner; }
set { this._s3BucketOwner = value; }
}
// Check to see if S3BucketOwner property is set
internal bool IsSetS3BucketOwner()
{
return this._s3BucketOwner != null;
}
///
/// Gets and sets the property S3Prefix.
///
/// The Amazon S3 bucket prefix used as the file name and path of the exported snapshot.
///
///
[AWSProperty(Max=1024)]
public string S3Prefix
{
get { return this._s3Prefix; }
set { this._s3Prefix = value; }
}
// Check to see if S3Prefix property is set
internal bool IsSetS3Prefix()
{
return this._s3Prefix != null;
}
///
/// Gets and sets the property S3SseAlgorithm.
///
/// Type of encryption used on the bucket where export data is stored. Valid values for
/// S3SseAlgorithm
are:
///
/// -
///
///
AES256
- server-side encryption with Amazon S3 managed keys
///
/// -
///
///
KMS
- server-side encryption with KMS managed keys
///
///
///
public S3SseAlgorithm S3SseAlgorithm
{
get { return this._s3SseAlgorithm; }
set { this._s3SseAlgorithm = value; }
}
// Check to see if S3SseAlgorithm property is set
internal bool IsSetS3SseAlgorithm()
{
return this._s3SseAlgorithm != null;
}
///
/// Gets and sets the property S3SseKmsKeyId.
///
/// The ID of the KMS managed key used to encrypt the S3 bucket where export data is stored
/// (if applicable).
///
///
[AWSProperty(Min=1, Max=2048)]
public string S3SseKmsKeyId
{
get { return this._s3SseKmsKeyId; }
set { this._s3SseKmsKeyId = value; }
}
// Check to see if S3SseKmsKeyId property is set
internal bool IsSetS3SseKmsKeyId()
{
return this._s3SseKmsKeyId != null;
}
///
/// Gets and sets the property StartTime.
///
/// The time at which the export task began.
///
///
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
///
/// Gets and sets the property TableArn.
///
/// The Amazon Resource Name (ARN) of the table that was exported.
///
///
public string TableArn
{
get { return this._tableArn; }
set { this._tableArn = value; }
}
// Check to see if TableArn property is set
internal bool IsSetTableArn()
{
return this._tableArn != null;
}
///
/// Gets and sets the property TableId.
///
/// Unique ID of the table that was exported.
///
///
public string TableId
{
get { return this._tableId; }
set { this._tableId = value; }
}
// Check to see if TableId property is set
internal bool IsSetTableId()
{
return this._tableId != null;
}
}
}