AWS SDK for C++  0.12.9
AWS SDK for C++
ThingAttribute.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  ThingAttribute& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetThingName() const{ return m_thingName; }
49 
53  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
54 
58  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
59 
63  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
64 
68  inline ThingAttribute& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
69 
73  inline ThingAttribute& WithThingName(Aws::String&& value) { SetThingName(value); return *this;}
74 
78  inline ThingAttribute& WithThingName(const char* value) { SetThingName(value); return *this;}
79 
83  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
84 
88  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
89 
93  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
94 
98  inline ThingAttribute& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
99 
103  inline ThingAttribute& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
104 
108  inline ThingAttribute& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
109 
113  inline ThingAttribute& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
114 
118  inline ThingAttribute& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
119 
123  inline ThingAttribute& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
124 
128  inline ThingAttribute& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
129 
133  inline ThingAttribute& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
134 
138  inline ThingAttribute& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
139 
140  private:
141  Aws::String m_thingName;
142  bool m_thingNameHasBeenSet;
144  bool m_attributesHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace IoT
149 } // namespace Aws
const Aws::String & GetThingName() const
ThingAttribute & AddAttributes(Aws::String &&key, const Aws::String &value)
void SetThingName(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
ThingAttribute & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ThingAttribute & AddAttributes(Aws::String &&key, Aws::String &&value)
ThingAttribute & WithThingName(const Aws::String &value)
void SetThingName(Aws::String &&value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:34
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ThingAttribute & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ThingAttribute & AddAttributes(Aws::String &&key, const char *value)
ThingAttribute & AddAttributes(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
ThingAttribute & AddAttributes(const char *key, Aws::String &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ThingAttribute & AddAttributes(const Aws::String &key, Aws::String &&value)
void SetThingName(const char *value)
ThingAttribute & AddAttributes(const char *key, const char *value)
ThingAttribute & WithThingName(const char *value)
JSON (JavaScript Object Notation).
ThingAttribute & WithThingName(Aws::String &&value)