AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportTableRequest.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/DynamoDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dynamodb/model/S3BucketSource.h>
11#include <aws/dynamodb/model/InputFormat.h>
12#include <aws/dynamodb/model/InputFormatOptions.h>
13#include <aws/dynamodb/model/InputCompressionType.h>
14#include <aws/dynamodb/model/TableCreationParameters.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace DynamoDB
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_DYNAMODB_API ImportTableRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ImportTable"; }
37
38 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
39
41
45 AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override;
47
49
60 inline const Aws::String& GetClientToken() const { return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 template<typename ClientTokenT = Aws::String>
63 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
64 template<typename ClientTokenT = Aws::String>
65 ImportTableRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
67
69
72 inline const S3BucketSource& GetS3BucketSource() const { return m_s3BucketSource; }
73 inline bool S3BucketSourceHasBeenSet() const { return m_s3BucketSourceHasBeenSet; }
74 template<typename S3BucketSourceT = S3BucketSource>
75 void SetS3BucketSource(S3BucketSourceT&& value) { m_s3BucketSourceHasBeenSet = true; m_s3BucketSource = std::forward<S3BucketSourceT>(value); }
76 template<typename S3BucketSourceT = S3BucketSource>
77 ImportTableRequest& WithS3BucketSource(S3BucketSourceT&& value) { SetS3BucketSource(std::forward<S3BucketSourceT>(value)); return *this;}
79
81
85 inline InputFormat GetInputFormat() const { return m_inputFormat; }
86 inline bool InputFormatHasBeenSet() const { return m_inputFormatHasBeenSet; }
87 inline void SetInputFormat(InputFormat value) { m_inputFormatHasBeenSet = true; m_inputFormat = value; }
88 inline ImportTableRequest& WithInputFormat(InputFormat value) { SetInputFormat(value); return *this;}
90
92
95 inline const InputFormatOptions& GetInputFormatOptions() const { return m_inputFormatOptions; }
96 inline bool InputFormatOptionsHasBeenSet() const { return m_inputFormatOptionsHasBeenSet; }
97 template<typename InputFormatOptionsT = InputFormatOptions>
98 void SetInputFormatOptions(InputFormatOptionsT&& value) { m_inputFormatOptionsHasBeenSet = true; m_inputFormatOptions = std::forward<InputFormatOptionsT>(value); }
99 template<typename InputFormatOptionsT = InputFormatOptions>
100 ImportTableRequest& WithInputFormatOptions(InputFormatOptionsT&& value) { SetInputFormatOptions(std::forward<InputFormatOptionsT>(value)); return *this;}
102
104
108 inline InputCompressionType GetInputCompressionType() const { return m_inputCompressionType; }
109 inline bool InputCompressionTypeHasBeenSet() const { return m_inputCompressionTypeHasBeenSet; }
110 inline void SetInputCompressionType(InputCompressionType value) { m_inputCompressionTypeHasBeenSet = true; m_inputCompressionType = value; }
113
115
118 inline const TableCreationParameters& GetTableCreationParameters() const { return m_tableCreationParameters; }
119 inline bool TableCreationParametersHasBeenSet() const { return m_tableCreationParametersHasBeenSet; }
120 template<typename TableCreationParametersT = TableCreationParameters>
121 void SetTableCreationParameters(TableCreationParametersT&& value) { m_tableCreationParametersHasBeenSet = true; m_tableCreationParameters = std::forward<TableCreationParametersT>(value); }
122 template<typename TableCreationParametersT = TableCreationParameters>
123 ImportTableRequest& WithTableCreationParameters(TableCreationParametersT&& value) { SetTableCreationParameters(std::forward<TableCreationParametersT>(value)); return *this;}
125 private:
126
128 bool m_clientTokenHasBeenSet = true;
129
130 S3BucketSource m_s3BucketSource;
131 bool m_s3BucketSourceHasBeenSet = false;
132
133 InputFormat m_inputFormat{InputFormat::NOT_SET};
134 bool m_inputFormatHasBeenSet = false;
135
136 InputFormatOptions m_inputFormatOptions;
137 bool m_inputFormatOptionsHasBeenSet = false;
138
140 bool m_inputCompressionTypeHasBeenSet = false;
141
142 TableCreationParameters m_tableCreationParameters;
143 bool m_tableCreationParametersHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace DynamoDB
148} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
ImportTableRequest & WithTableCreationParameters(TableCreationParametersT &&value)
AWS_DYNAMODB_API ImportTableRequest()=default
void SetS3BucketSource(S3BucketSourceT &&value)
virtual const char * GetServiceRequestName() const override
ImportTableRequest & WithInputFormatOptions(InputFormatOptionsT &&value)
ImportTableRequest & WithS3BucketSource(S3BucketSourceT &&value)
ImportTableRequest & WithClientToken(ClientTokenT &&value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetInputFormatOptions(InputFormatOptionsT &&value)
AWS_DYNAMODB_API Aws::Vector< Aws::String > GetOperationContextParams() const
const Aws::String & GetClientToken() const
void SetInputCompressionType(InputCompressionType value)
InputCompressionType GetInputCompressionType() const
const S3BucketSource & GetS3BucketSource() const
AWS_DYNAMODB_API Aws::String SerializePayload() const override
void SetTableCreationParameters(TableCreationParametersT &&value)
ImportTableRequest & WithInputCompressionType(InputCompressionType value)
ImportTableRequest & WithInputFormat(InputFormat value)
const TableCreationParameters & GetTableCreationParameters() const
AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override
const InputFormatOptions & GetInputFormatOptions() const
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector