AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
49 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
51 inline AttributePayload& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
52 inline AttributePayload& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
53 inline AttributePayload& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
54 inline AttributePayload& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
55 inline AttributePayload& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
56 inline AttributePayload& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
57 inline AttributePayload& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
58 inline AttributePayload& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
60
62
70 inline bool GetMerge() const{ return m_merge; }
71 inline bool MergeHasBeenSet() const { return m_mergeHasBeenSet; }
72 inline void SetMerge(bool value) { m_mergeHasBeenSet = true; m_merge = value; }
73 inline AttributePayload& WithMerge(bool value) { SetMerge(value); return *this;}
75 private:
76
78 bool m_attributesHasBeenSet = false;
79
80 bool m_merge;
81 bool m_mergeHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace IoT
86} // namespace Aws
AttributePayload & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
AttributePayload & AddAttributes(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AttributePayload & AddAttributes(Aws::String &&key, const char *value)
AttributePayload & AddAttributes(const Aws::String &key, const Aws::String &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
AWS_IOT_API AttributePayload(Aws::Utils::Json::JsonView jsonValue)
AttributePayload & AddAttributes(const char *key, Aws::String &&value)
AWS_IOT_API AttributePayload & operator=(Aws::Utils::Json::JsonView jsonValue)
AttributePayload & AddAttributes(const Aws::String &key, Aws::String &&value)
AttributePayload & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
AttributePayload & AddAttributes(Aws::String &&key, Aws::String &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
AttributePayload & AddAttributes(Aws::String &&key, const Aws::String &value)
AttributePayload & WithMerge(bool value)
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