AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ConditionalCheckFailedException.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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DynamoDB {
22namespace Model {
23
31 public:
32 AWS_DYNAMODB_API ConditionalCheckFailedException() = default;
35 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetMessage() const { return m_message; }
42 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
43 template <typename MessageT = Aws::String>
44 void SetMessage(MessageT&& value) {
45 m_messageHasBeenSet = true;
46 m_message = std::forward<MessageT>(value);
47 }
48 template <typename MessageT = Aws::String>
50 SetMessage(std::forward<MessageT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const { return m_item; }
60 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
61 template <typename ItemT = Aws::Map<Aws::String, AttributeValue>>
62 void SetItem(ItemT&& value) {
63 m_itemHasBeenSet = true;
64 m_item = std::forward<ItemT>(value);
65 }
66 template <typename ItemT = Aws::Map<Aws::String, AttributeValue>>
68 SetItem(std::forward<ItemT>(value));
69 return *this;
70 }
71 template <typename ItemKeyT = Aws::String, typename ItemValueT = AttributeValue>
72 ConditionalCheckFailedException& AddItem(ItemKeyT&& key, ItemValueT&& value) {
73 m_itemHasBeenSet = true;
74 m_item.emplace(std::forward<ItemKeyT>(key), std::forward<ItemValueT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_message;
80
82 bool m_messageHasBeenSet = false;
83 bool m_itemHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace DynamoDB
88} // namespace Aws
ConditionalCheckFailedException & WithItem(ItemT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API ConditionalCheckFailedException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConditionalCheckFailedException & AddItem(ItemKeyT &&key, ItemValueT &&value)
ConditionalCheckFailedException & WithMessage(MessageT &&value)
AWS_DYNAMODB_API ConditionalCheckFailedException(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API ConditionalCheckFailedException()=default
const Aws::Map< Aws::String, AttributeValue > & GetItem() const
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