AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
StartBulkPutItemsRequest.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/BulkOperationPerformanceTier.h>
12#include <aws/dynamodb/model/InputS3Configuration.h>
13#include <aws/dynamodb/model/OutputS3Configuration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DynamoDB {
19namespace Model {
20
24 public:
25 AWS_DYNAMODB_API StartBulkPutItemsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartBulkPutItems"; }
32
33 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
34
36
40 AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override;
41
43
51 inline const Aws::String& GetClientToken() const { return m_clientToken; }
52 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
53 template <typename ClientTokenT = Aws::String>
54 void SetClientToken(ClientTokenT&& value) {
55 m_clientTokenHasBeenSet = true;
56 m_clientToken = std::forward<ClientTokenT>(value);
57 }
58 template <typename ClientTokenT = Aws::String>
60 SetClientToken(std::forward<ClientTokenT>(value));
61 return *this;
62 }
64
66
70 inline const InputS3Configuration& GetInputS3Configuration() const { return m_inputS3Configuration; }
71 inline bool InputS3ConfigurationHasBeenSet() const { return m_inputS3ConfigurationHasBeenSet; }
72 template <typename InputS3ConfigurationT = InputS3Configuration>
73 void SetInputS3Configuration(InputS3ConfigurationT&& value) {
74 m_inputS3ConfigurationHasBeenSet = true;
75 m_inputS3Configuration = std::forward<InputS3ConfigurationT>(value);
76 }
77 template <typename InputS3ConfigurationT = InputS3Configuration>
78 StartBulkPutItemsRequest& WithInputS3Configuration(InputS3ConfigurationT&& value) {
79 SetInputS3Configuration(std::forward<InputS3ConfigurationT>(value));
80 return *this;
81 }
83
85
89 inline const OutputS3Configuration& GetOutputS3Configuration() const { return m_outputS3Configuration; }
90 inline bool OutputS3ConfigurationHasBeenSet() const { return m_outputS3ConfigurationHasBeenSet; }
91 template <typename OutputS3ConfigurationT = OutputS3Configuration>
92 void SetOutputS3Configuration(OutputS3ConfigurationT&& value) {
93 m_outputS3ConfigurationHasBeenSet = true;
94 m_outputS3Configuration = std::forward<OutputS3ConfigurationT>(value);
95 }
96 template <typename OutputS3ConfigurationT = OutputS3Configuration>
97 StartBulkPutItemsRequest& WithOutputS3Configuration(OutputS3ConfigurationT&& value) {
98 SetOutputS3Configuration(std::forward<OutputS3ConfigurationT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetTableName() const { return m_tableName; }
108 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
109 template <typename TableNameT = Aws::String>
110 void SetTableName(TableNameT&& value) {
111 m_tableNameHasBeenSet = true;
112 m_tableName = std::forward<TableNameT>(value);
113 }
114 template <typename TableNameT = Aws::String>
116 SetTableName(std::forward<TableNameT>(value));
117 return *this;
118 }
120
122
128 inline long long GetMaxWriteRequestUnits() const { return m_maxWriteRequestUnits; }
129 inline bool MaxWriteRequestUnitsHasBeenSet() const { return m_maxWriteRequestUnitsHasBeenSet; }
130 inline void SetMaxWriteRequestUnits(long long value) {
131 m_maxWriteRequestUnitsHasBeenSet = true;
132 m_maxWriteRequestUnits = value;
133 }
136 return *this;
137 }
139
141
146 inline BulkOperationPerformanceTier GetPerformanceTier() const { return m_performanceTier; }
147 inline bool PerformanceTierHasBeenSet() const { return m_performanceTierHasBeenSet; }
149 m_performanceTierHasBeenSet = true;
150 m_performanceTier = value;
151 }
157 private:
159
160 InputS3Configuration m_inputS3Configuration;
161
162 OutputS3Configuration m_outputS3Configuration;
163
164 Aws::String m_tableName;
165
166 long long m_maxWriteRequestUnits{0};
167
169 bool m_clientTokenHasBeenSet = true;
170 bool m_inputS3ConfigurationHasBeenSet = false;
171 bool m_outputS3ConfigurationHasBeenSet = false;
172 bool m_tableNameHasBeenSet = false;
173 bool m_maxWriteRequestUnitsHasBeenSet = false;
174 bool m_performanceTierHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace DynamoDB
179} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
StartBulkPutItemsRequest & WithTableName(TableNameT &&value)
AWS_DYNAMODB_API StartBulkPutItemsRequest()=default
AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override
BulkOperationPerformanceTier GetPerformanceTier() const
const OutputS3Configuration & GetOutputS3Configuration() const
void SetOutputS3Configuration(OutputS3ConfigurationT &&value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartBulkPutItemsRequest & WithInputS3Configuration(InputS3ConfigurationT &&value)
void SetInputS3Configuration(InputS3ConfigurationT &&value)
StartBulkPutItemsRequest & WithPerformanceTier(BulkOperationPerformanceTier value)
StartBulkPutItemsRequest & WithMaxWriteRequestUnits(long long value)
StartBulkPutItemsRequest & WithClientToken(ClientTokenT &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
void SetPerformanceTier(BulkOperationPerformanceTier value)
StartBulkPutItemsRequest & WithOutputS3Configuration(OutputS3ConfigurationT &&value)
const InputS3Configuration & GetInputS3Configuration() const
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String