AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AttributePayload.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/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
29 public:
30 AWS_IOT_API AttributePayload() = default;
34
36
40 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
41 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
42 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
43 void SetAttributes(AttributesT&& value) {
44 m_attributesHasBeenSet = true;
45 m_attributes = std::forward<AttributesT>(value);
46 }
47 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
48 AttributePayload& WithAttributes(AttributesT&& value) {
49 SetAttributes(std::forward<AttributesT>(value));
50 return *this;
51 }
52 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
53 AttributePayload& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
54 m_attributesHasBeenSet = true;
55 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
56 return *this;
57 }
59
61
69 inline bool GetMerge() const { return m_merge; }
70 inline bool MergeHasBeenSet() const { return m_mergeHasBeenSet; }
71 inline void SetMerge(bool value) {
72 m_mergeHasBeenSet = true;
73 m_merge = value;
74 }
75 inline AttributePayload& WithMerge(bool value) {
76 SetMerge(value);
77 return *this;
78 }
80 private:
82
83 bool m_merge{false};
84 bool m_attributesHasBeenSet = false;
85 bool m_mergeHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace IoT
90} // namespace Aws
void SetAttributes(AttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AttributePayload & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AttributePayload & WithAttributes(AttributesT &&value)
AWS_IOT_API AttributePayload(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API AttributePayload()=default
AWS_IOT_API AttributePayload & operator=(Aws::Utils::Json::JsonView jsonValue)
AttributePayload & WithMerge(bool value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue