AWS SDK for C++  0.14.3
AWS SDK for C++
AttributePayload.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iot/IoT_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace IoT
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  AttributePayload& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
50 
55  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
56 
61  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
62 
67  inline AttributePayload& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
68 
73  inline AttributePayload& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
74 
79  inline AttributePayload& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
80 
85  inline AttributePayload& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
86 
91  inline AttributePayload& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
92 
97  inline AttributePayload& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
98 
103  inline AttributePayload& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
104 
109  inline AttributePayload& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
110 
115  inline AttributePayload& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
116 
125  inline bool GetMerge() const{ return m_merge; }
126 
135  inline void SetMerge(bool value) { m_mergeHasBeenSet = true; m_merge = value; }
136 
145  inline AttributePayload& WithMerge(bool value) { SetMerge(value); return *this;}
146 
147  private:
149  bool m_attributesHasBeenSet;
150  bool m_merge;
151  bool m_mergeHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace IoT
156 } // namespace Aws
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
AttributePayload & WithMerge(bool value)
AttributePayload & AddAttributes(const char *key, Aws::String &&value)
AttributePayload & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
AttributePayload & AddAttributes(Aws::String &&key, const char *value)
AttributePayload & AddAttributes(const char *key, const char *value)
AttributePayload & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
AttributePayload & AddAttributes(const Aws::String &key, Aws::String &&value)
AttributePayload & AddAttributes(Aws::String &&key, const Aws::String &value)
AttributePayload & AddAttributes(Aws::String &&key, Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AttributePayload & AddAttributes(const Aws::String &key, const Aws::String &value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
JSON (JavaScript Object Notation).