AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
BatchStatementError.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/BatchStatementErrorCodeEnum.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
32 public:
33 AWS_DYNAMODB_API BatchStatementError() = default;
36 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline BatchStatementErrorCodeEnum GetCode() const { return m_code; }
43 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
45 m_codeHasBeenSet = true;
46 m_code = value;
47 }
49 SetCode(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetMessage() const { return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 template <typename MessageT = Aws::String>
61 void SetMessage(MessageT&& value) {
62 m_messageHasBeenSet = true;
63 m_message = std::forward<MessageT>(value);
64 }
65 template <typename MessageT = Aws::String>
66 BatchStatementError& WithMessage(MessageT&& value) {
67 SetMessage(std::forward<MessageT>(value));
68 return *this;
69 }
71
73
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>>
85 BatchStatementError& WithItem(ItemT&& value) {
86 SetItem(std::forward<ItemT>(value));
87 return *this;
88 }
89 template <typename ItemKeyT = Aws::String, typename ItemValueT = AttributeValue>
90 BatchStatementError& 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:
98
99 Aws::String m_message;
100
102 bool m_codeHasBeenSet = false;
103 bool m_messageHasBeenSet = false;
104 bool m_itemHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace DynamoDB
109} // namespace Aws
BatchStatementErrorCodeEnum GetCode() const
AWS_DYNAMODB_API BatchStatementError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchStatementError & WithMessage(MessageT &&value)
void SetCode(BatchStatementErrorCodeEnum value)
const Aws::Map< Aws::String, AttributeValue > & GetItem() const
BatchStatementError & AddItem(ItemKeyT &&key, ItemValueT &&value)
BatchStatementError & WithItem(ItemT &&value)
AWS_DYNAMODB_API BatchStatementError()=default
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
BatchStatementError & WithCode(BatchStatementErrorCodeEnum value)
AWS_DYNAMODB_API BatchStatementError(Aws::Utils::Json::JsonView jsonValue)
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