AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
BatchStatementResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/DynamoDB_EXPORTS.h>
10#include <aws/dynamodb/model/AttributeValue.h>
11#include <aws/dynamodb/model/BatchStatementError.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB {
23namespace Model {
24
31 public:
32 AWS_DYNAMODB_API BatchStatementResponse() = default;
35 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const BatchStatementError& GetError() const { return m_error; }
42 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
43 template <typename ErrorT = BatchStatementError>
44 void SetError(ErrorT&& value) {
45 m_errorHasBeenSet = true;
46 m_error = std::forward<ErrorT>(value);
47 }
48 template <typename ErrorT = BatchStatementError>
50 SetError(std::forward<ErrorT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTableName() const { return m_tableName; }
60 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
61 template <typename TableNameT = Aws::String>
62 void SetTableName(TableNameT&& value) {
63 m_tableNameHasBeenSet = true;
64 m_tableName = std::forward<TableNameT>(value);
65 }
66 template <typename TableNameT = Aws::String>
68 SetTableName(std::forward<TableNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const { return m_item; }
78 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
79 template <typename ItemT = Aws::Map<Aws::String, AttributeValue>>
80 void SetItem(ItemT&& value) {
81 m_itemHasBeenSet = true;
82 m_item = std::forward<ItemT>(value);
83 }
84 template <typename ItemT = Aws::Map<Aws::String, AttributeValue>>
86 SetItem(std::forward<ItemT>(value));
87 return *this;
88 }
89 template <typename ItemKeyT = Aws::String, typename ItemValueT = AttributeValue>
90 BatchStatementResponse& AddItem(ItemKeyT&& key, ItemValueT&& value) {
91 m_itemHasBeenSet = true;
92 m_item.emplace(std::forward<ItemKeyT>(key), std::forward<ItemValueT>(value));
93 return *this;
94 }
96 private:
97 BatchStatementError m_error;
98
99 Aws::String m_tableName;
100
102 bool m_errorHasBeenSet = false;
103 bool m_tableNameHasBeenSet = false;
104 bool m_itemHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace DynamoDB
109} // namespace Aws
AWS_DYNAMODB_API BatchStatementResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API BatchStatementResponse(Aws::Utils::Json::JsonView jsonValue)
const BatchStatementError & GetError() const
BatchStatementResponse & AddItem(ItemKeyT &&key, ItemValueT &&value)
BatchStatementResponse & WithTableName(TableNameT &&value)
const Aws::Map< Aws::String, AttributeValue > & GetItem() const
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
BatchStatementResponse & WithError(ErrorT &&value)
BatchStatementResponse & WithItem(ItemT &&value)
AWS_DYNAMODB_API BatchStatementResponse()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue