AWS SDK for C++  1.9.132
AWS SDK for C++
AttributePayload.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
45  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
46 
51  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
52 
57  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
58 
63  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
64 
69  inline AttributePayload& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
70 
75  inline AttributePayload& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
76 
81  inline AttributePayload& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
82 
87  inline AttributePayload& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
88 
93  inline AttributePayload& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
94 
99  inline AttributePayload& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
100 
105  inline AttributePayload& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
106 
111  inline AttributePayload& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
112 
117  inline AttributePayload& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
118 
119 
128  inline bool GetMerge() const{ return m_merge; }
129 
138  inline bool MergeHasBeenSet() const { return m_mergeHasBeenSet; }
139 
148  inline void SetMerge(bool value) { m_mergeHasBeenSet = true; m_merge = value; }
149 
158  inline AttributePayload& WithMerge(bool value) { SetMerge(value); return *this;}
159 
160  private:
161 
163  bool m_attributesHasBeenSet;
164 
165  bool m_merge;
166  bool m_mergeHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace IoT
171 } // namespace Aws
Aws::IoT::Model::AttributePayload::AddAttributes
AttributePayload & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: AttributePayload.h:81
Aws::IoT::Model::AttributePayload::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: AttributePayload.h:63
Aws::IoT::Model::AttributePayload::SetMerge
void SetMerge(bool value)
Definition: AttributePayload.h:148
Aws::IoT::Model::AttributePayload::AddAttributes
AttributePayload & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: AttributePayload.h:99
Aws::IoT::Model::AttributePayload::GetMerge
bool GetMerge() const
Definition: AttributePayload.h:128
Aws::IoT::Model::AttributePayload::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: AttributePayload.h:51
Aws::IoT::Model::AttributePayload
Definition: AttributePayload.h:33
Aws::IoT::Model::AttributePayload::WithAttributes
AttributePayload & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: AttributePayload.h:75
Aws::IoT::Model::AttributePayload::AddAttributes
AttributePayload & AddAttributes(Aws::String &&key, const char *value)
Definition: AttributePayload.h:111
Aws::IoT::Model::AttributePayload::AddAttributes
AttributePayload & AddAttributes(const char *key, const char *value)
Definition: AttributePayload.h:117
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::AttributePayload::AttributePayload
AttributePayload()
Aws::IoT::Model::AttributePayload::WithAttributes
AttributePayload & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: AttributePayload.h:69
Aws::IoT::Model::AttributePayload::MergeHasBeenSet
bool MergeHasBeenSet() const
Definition: AttributePayload.h:138
Aws::IoT::Model::AttributePayload::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AttributePayload::AddAttributes
AttributePayload & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: AttributePayload.h:87
Aws::IoT::Model::AttributePayload::AttributePayload
AttributePayload(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::AttributePayload::AddAttributes
AttributePayload & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: AttributePayload.h:93
Aws::IoT::Model::AttributePayload::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: AttributePayload.h:45
Aws::IoT::Model::AttributePayload::WithMerge
AttributePayload & WithMerge(bool value)
Definition: AttributePayload.h:158
AWSMap.h
Aws::IoT::Model::AttributePayload::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: AttributePayload.h:57
Aws::IoT::Model::AttributePayload::operator=
AttributePayload & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AttributePayload::AddAttributes
AttributePayload & AddAttributes(const char *key, Aws::String &&value)
Definition: AttributePayload.h:105
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
IoT_EXPORTS.h