AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AttributePayload.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOT_API AttributePayload() = default;
39
40
42
46 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
47 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
48 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
49 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
50 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
51 AttributePayload& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
52 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
53 AttributePayload& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
54 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
55 }
57
59
67 inline bool GetMerge() const { return m_merge; }
68 inline bool MergeHasBeenSet() const { return m_mergeHasBeenSet; }
69 inline void SetMerge(bool value) { m_mergeHasBeenSet = true; m_merge = value; }
70 inline AttributePayload& WithMerge(bool value) { SetMerge(value); return *this;}
72 private:
73
75 bool m_attributesHasBeenSet = false;
76
77 bool m_merge{false};
78 bool m_mergeHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace IoT
83} // 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