/*
* 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
{
///
/// Container for the parameters to the ImportTable operation.
/// Imports table data from an S3 bucket.
///
public partial class ImportTableRequest : AmazonDynamoDBRequest
{
private string _clientToken;
private InputCompressionType _inputCompressionType;
private InputFormat _inputFormat;
private InputFormatOptions _inputFormatOptions;
private S3BucketSource _s3BucketSource;
private TableCreationParameters _tableCreationParameters;
///
/// Gets and sets the property ClientToken.
///
/// Providing a ClientToken
makes the call to ImportTableInput
/// idempotent, meaning that multiple identical calls have the same effect as one single
/// call.
///
///
///
/// A client token is valid for 8 hours after the first request that uses it is completed.
/// After 8 hours, any request with the same client token is treated as a new request.
/// Do not resubmit the same request with the same client token for more than 8 hours,
/// or the result might not be idempotent.
///
///
///
/// If you submit a request with the same client token but a change in other parameters
/// within the 8-hour idempotency window, DynamoDB returns an IdempotentParameterMismatch
/// exception.
///
///
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 InputCompressionType.
///
/// Type of compression to be used on the input coming from the imported table.
///
///
public InputCompressionType InputCompressionType
{
get { return this._inputCompressionType; }
set { this._inputCompressionType = value; }
}
// Check to see if InputCompressionType property is set
internal bool IsSetInputCompressionType()
{
return this._inputCompressionType != null;
}
///
/// Gets and sets the property InputFormat.
///
/// The format of the source data. Valid values for ImportFormat
are CSV
,
/// DYNAMODB_JSON
or ION
.
///
///
[AWSProperty(Required=true)]
public InputFormat InputFormat
{
get { return this._inputFormat; }
set { this._inputFormat = value; }
}
// Check to see if InputFormat property is set
internal bool IsSetInputFormat()
{
return this._inputFormat != null;
}
///
/// Gets and sets the property InputFormatOptions.
///
/// Additional properties that specify how the input is formatted,
///
///
public InputFormatOptions InputFormatOptions
{
get { return this._inputFormatOptions; }
set { this._inputFormatOptions = value; }
}
// Check to see if InputFormatOptions property is set
internal bool IsSetInputFormatOptions()
{
return this._inputFormatOptions != null;
}
///
/// Gets and sets the property S3BucketSource.
///
/// The S3 bucket that provides the source for the import.
///
///
[AWSProperty(Required=true)]
public S3BucketSource S3BucketSource
{
get { return this._s3BucketSource; }
set { this._s3BucketSource = value; }
}
// Check to see if S3BucketSource property is set
internal bool IsSetS3BucketSource()
{
return this._s3BucketSource != null;
}
///
/// Gets and sets the property TableCreationParameters.
///
/// Parameters for the table to import the data into.
///
///
[AWSProperty(Required=true)]
public TableCreationParameters TableCreationParameters
{
get { return this._tableCreationParameters; }
set { this._tableCreationParameters = value; }
}
// Check to see if TableCreationParameters property is set
internal bool IsSetTableCreationParameters()
{
return this._tableCreationParameters != null;
}
}
}