AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BatchStatementError.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/BatchStatementErrorCodeEnum.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
36 {
37 public:
38 AWS_DYNAMODB_API BatchStatementError() = default;
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline BatchStatementErrorCodeEnum GetCode() const { return m_code; }
49 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 inline void SetCode(BatchStatementErrorCodeEnum value) { m_codeHasBeenSet = true; m_code = value; }
51 inline BatchStatementError& WithCode(BatchStatementErrorCodeEnum value) { SetCode(value); return *this;}
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) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
62 template<typename MessageT = Aws::String>
63 BatchStatementError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
65
67
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 BatchStatementError& WithItem(ItemT&& value) { SetItem(std::forward<ItemT>(value)); return *this;}
77 template<typename ItemKeyT = Aws::String, typename ItemValueT = AttributeValue>
78 BatchStatementError& 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
85 bool m_codeHasBeenSet = false;
86
87 Aws::String m_message;
88 bool m_messageHasBeenSet = false;
89
91 bool m_itemHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace DynamoDB
96} // 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