AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ImportTableRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/DynamoDBRequest.h>
10#include <aws/dynamodb/DynamoDB_EXPORTS.h>
11#include <aws/dynamodb/model/InputCompressionType.h>
12#include <aws/dynamodb/model/InputFormat.h>
13#include <aws/dynamodb/model/InputFormatOptions.h>
14#include <aws/dynamodb/model/S3BucketSource.h>
15#include <aws/dynamodb/model/TableCreationParameters.h>
16
17#include <utility>
18
19namespace Aws {
20namespace DynamoDB {
21namespace Model {
22
26 public:
27 AWS_DYNAMODB_API ImportTableRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ImportTable"; }
34
35 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
36
38
42 AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override;
44
46
57 inline const Aws::String& GetClientToken() const { return m_clientToken; }
58 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
59 template <typename ClientTokenT = Aws::String>
60 void SetClientToken(ClientTokenT&& value) {
61 m_clientTokenHasBeenSet = true;
62 m_clientToken = std::forward<ClientTokenT>(value);
63 }
64 template <typename ClientTokenT = Aws::String>
65 ImportTableRequest& WithClientToken(ClientTokenT&& value) {
66 SetClientToken(std::forward<ClientTokenT>(value));
67 return *this;
68 }
70
72
75 inline const S3BucketSource& GetS3BucketSource() const { return m_s3BucketSource; }
76 inline bool S3BucketSourceHasBeenSet() const { return m_s3BucketSourceHasBeenSet; }
77 template <typename S3BucketSourceT = S3BucketSource>
78 void SetS3BucketSource(S3BucketSourceT&& value) {
79 m_s3BucketSourceHasBeenSet = true;
80 m_s3BucketSource = std::forward<S3BucketSourceT>(value);
81 }
82 template <typename S3BucketSourceT = S3BucketSource>
83 ImportTableRequest& WithS3BucketSource(S3BucketSourceT&& value) {
84 SetS3BucketSource(std::forward<S3BucketSourceT>(value));
85 return *this;
86 }
88
90
94 inline InputFormat GetInputFormat() const { return m_inputFormat; }
95 inline bool InputFormatHasBeenSet() const { return m_inputFormatHasBeenSet; }
96 inline void SetInputFormat(InputFormat value) {
97 m_inputFormatHasBeenSet = true;
98 m_inputFormat = value;
99 }
101 SetInputFormat(value);
102 return *this;
103 }
105
107
110 inline const InputFormatOptions& GetInputFormatOptions() const { return m_inputFormatOptions; }
111 inline bool InputFormatOptionsHasBeenSet() const { return m_inputFormatOptionsHasBeenSet; }
112 template <typename InputFormatOptionsT = InputFormatOptions>
113 void SetInputFormatOptions(InputFormatOptionsT&& value) {
114 m_inputFormatOptionsHasBeenSet = true;
115 m_inputFormatOptions = std::forward<InputFormatOptionsT>(value);
116 }
117 template <typename InputFormatOptionsT = InputFormatOptions>
118 ImportTableRequest& WithInputFormatOptions(InputFormatOptionsT&& value) {
119 SetInputFormatOptions(std::forward<InputFormatOptionsT>(value));
120 return *this;
121 }
123
125
129 inline InputCompressionType GetInputCompressionType() const { return m_inputCompressionType; }
130 inline bool InputCompressionTypeHasBeenSet() const { return m_inputCompressionTypeHasBeenSet; }
132 m_inputCompressionTypeHasBeenSet = true;
133 m_inputCompressionType = value;
134 }
137 return *this;
138 }
140
142
145 inline const TableCreationParameters& GetTableCreationParameters() const { return m_tableCreationParameters; }
146 inline bool TableCreationParametersHasBeenSet() const { return m_tableCreationParametersHasBeenSet; }
147 template <typename TableCreationParametersT = TableCreationParameters>
148 void SetTableCreationParameters(TableCreationParametersT&& value) {
149 m_tableCreationParametersHasBeenSet = true;
150 m_tableCreationParameters = std::forward<TableCreationParametersT>(value);
151 }
152 template <typename TableCreationParametersT = TableCreationParameters>
153 ImportTableRequest& WithTableCreationParameters(TableCreationParametersT&& value) {
154 SetTableCreationParameters(std::forward<TableCreationParametersT>(value));
155 return *this;
156 }
158 private:
160
161 S3BucketSource m_s3BucketSource;
162
163 InputFormat m_inputFormat{InputFormat::NOT_SET};
164
165 InputFormatOptions m_inputFormatOptions;
166
168
169 TableCreationParameters m_tableCreationParameters;
170 bool m_clientTokenHasBeenSet = true;
171 bool m_s3BucketSourceHasBeenSet = false;
172 bool m_inputFormatHasBeenSet = false;
173 bool m_inputFormatOptionsHasBeenSet = false;
174 bool m_inputCompressionTypeHasBeenSet = false;
175 bool m_tableCreationParametersHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace DynamoDB
180} // 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