AWS SDK for C++  0.12.9
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 
39  {
40  public:
43  AttributePayload& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
51 
56  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
57 
62  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
63 
68  inline AttributePayload& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
69 
74  inline AttributePayload& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
75 
80  inline AttributePayload& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
81 
86  inline AttributePayload& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
87 
92  inline AttributePayload& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
93 
98  inline AttributePayload& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
99 
104  inline AttributePayload& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
105 
110  inline AttributePayload& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
111 
116  inline AttributePayload& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
117 
118  private:
120  bool m_attributesHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace IoT
125 } // namespace Aws
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
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:34
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).