AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const BatchStatementErrorCodeEnum& GetCode() const{ return m_code; }
49 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 inline void SetCode(const BatchStatementErrorCodeEnum& value) { m_codeHasBeenSet = true; m_code = value; }
51 inline void SetCode(BatchStatementErrorCodeEnum&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
52 inline BatchStatementError& WithCode(const BatchStatementErrorCodeEnum& value) { SetCode(value); return *this;}
53 inline BatchStatementError& WithCode(BatchStatementErrorCodeEnum&& value) { SetCode(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetMessage() const{ return m_message; }
61 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
62 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
63 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
64 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
65 inline BatchStatementError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
66 inline BatchStatementError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
67 inline BatchStatementError& WithMessage(const char* value) { SetMessage(value); return *this;}
69
71
75 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const{ return m_item; }
76 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
77 inline void SetItem(const Aws::Map<Aws::String, AttributeValue>& value) { m_itemHasBeenSet = true; m_item = value; }
78 inline void SetItem(Aws::Map<Aws::String, AttributeValue>&& value) { m_itemHasBeenSet = true; m_item = std::move(value); }
79 inline BatchStatementError& WithItem(const Aws::Map<Aws::String, AttributeValue>& value) { SetItem(value); return *this;}
80 inline BatchStatementError& WithItem(Aws::Map<Aws::String, AttributeValue>&& value) { SetItem(std::move(value)); return *this;}
81 inline BatchStatementError& AddItem(const Aws::String& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
82 inline BatchStatementError& AddItem(Aws::String&& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), value); return *this; }
83 inline BatchStatementError& AddItem(const Aws::String& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
84 inline BatchStatementError& AddItem(Aws::String&& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), std::move(value)); return *this; }
85 inline BatchStatementError& AddItem(const char* key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
86 inline BatchStatementError& AddItem(const char* key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
88 private:
89
91 bool m_codeHasBeenSet = false;
92
93 Aws::String m_message;
94 bool m_messageHasBeenSet = false;
95
97 bool m_itemHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace DynamoDB
102} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
void SetMessage(const Aws::String &value)
void SetCode(BatchStatementErrorCodeEnum &&value)
BatchStatementError & WithCode(BatchStatementErrorCodeEnum &&value)
BatchStatementError & WithMessage(const char *value)
AWS_DYNAMODB_API BatchStatementError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetItem(Aws::Map< Aws::String, AttributeValue > &&value)
BatchStatementError & AddItem(const Aws::String &key, AttributeValue &&value)
void SetItem(const Aws::Map< Aws::String, AttributeValue > &value)
BatchStatementError & AddItem(const char *key, AttributeValue &&value)
BatchStatementError & AddItem(Aws::String &&key, const AttributeValue &value)
BatchStatementError & AddItem(Aws::String &&key, AttributeValue &&value)
BatchStatementError & WithMessage(Aws::String &&value)
const Aws::Map< Aws::String, AttributeValue > & GetItem() const
BatchStatementError & WithItem(const Aws::Map< Aws::String, AttributeValue > &value)
BatchStatementError & WithItem(Aws::Map< Aws::String, AttributeValue > &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
BatchStatementError & AddItem(const Aws::String &key, const AttributeValue &value)
BatchStatementError & WithMessage(const Aws::String &value)
void SetCode(const BatchStatementErrorCodeEnum &value)
BatchStatementError & WithCode(const BatchStatementErrorCodeEnum &value)
BatchStatementError & AddItem(const char *key, const AttributeValue &value)
const BatchStatementErrorCodeEnum & GetCode() const
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