AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BatchStatementResponse.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/BatchStatementError.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/dynamodb/model/AttributeValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DynamoDB
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DYNAMODB_API BatchStatementResponse() = default;
40 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const BatchStatementError& GetError() const { return m_error; }
48 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
49 template<typename ErrorT = BatchStatementError>
50 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
51 template<typename ErrorT = BatchStatementError>
52 BatchStatementResponse& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
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) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
63 template<typename TableNameT = Aws::String>
64 BatchStatementResponse& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
66
68
71 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const { return m_item; }
72 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
73 template<typename ItemT = Aws::Map<Aws::String, AttributeValue>>
74 void SetItem(ItemT&& value) { m_itemHasBeenSet = true; m_item = std::forward<ItemT>(value); }
75 template<typename ItemT = Aws::Map<Aws::String, AttributeValue>>
76 BatchStatementResponse& WithItem(ItemT&& value) { SetItem(std::forward<ItemT>(value)); return *this;}
77 template<typename ItemKeyT = Aws::String, typename ItemValueT = AttributeValue>
78 BatchStatementResponse& AddItem(ItemKeyT&& key, ItemValueT&& value) {
79 m_itemHasBeenSet = true; m_item.emplace(std::forward<ItemKeyT>(key), std::forward<ItemValueT>(value)); return *this;
80 }
82 private:
83
84 BatchStatementError m_error;
85 bool m_errorHasBeenSet = false;
86
87 Aws::String m_tableName;
88 bool m_tableNameHasBeenSet = false;
89
91 bool m_itemHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace DynamoDB
96} // 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