AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeThingResult.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 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace IoT
33 {
34 namespace Model
35 {
40  {
41  public:
45 
49  inline const Aws::String& GetDefaultClientId() const{ return m_defaultClientId; }
50 
54  inline void SetDefaultClientId(const Aws::String& value) { m_defaultClientId = value; }
55 
59  inline void SetDefaultClientId(Aws::String&& value) { m_defaultClientId = value; }
60 
64  inline void SetDefaultClientId(const char* value) { m_defaultClientId.assign(value); }
65 
69  inline DescribeThingResult& WithDefaultClientId(const Aws::String& value) { SetDefaultClientId(value); return *this;}
70 
74  inline DescribeThingResult& WithDefaultClientId(Aws::String&& value) { SetDefaultClientId(value); return *this;}
75 
79  inline DescribeThingResult& WithDefaultClientId(const char* value) { SetDefaultClientId(value); return *this;}
80 
84  inline const Aws::String& GetThingName() const{ return m_thingName; }
85 
89  inline void SetThingName(const Aws::String& value) { m_thingName = value; }
90 
94  inline void SetThingName(Aws::String&& value) { m_thingName = value; }
95 
99  inline void SetThingName(const char* value) { m_thingName.assign(value); }
100 
104  inline DescribeThingResult& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
105 
109  inline DescribeThingResult& WithThingName(Aws::String&& value) { SetThingName(value); return *this;}
110 
114  inline DescribeThingResult& WithThingName(const char* value) { SetThingName(value); return *this;}
115 
119  inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
120 
124  inline void SetThingTypeName(const Aws::String& value) { m_thingTypeName = value; }
125 
129  inline void SetThingTypeName(Aws::String&& value) { m_thingTypeName = value; }
130 
134  inline void SetThingTypeName(const char* value) { m_thingTypeName.assign(value); }
135 
139  inline DescribeThingResult& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
140 
144  inline DescribeThingResult& WithThingTypeName(Aws::String&& value) { SetThingTypeName(value); return *this;}
145 
149  inline DescribeThingResult& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
150 
154  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
155 
159  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributes = value; }
160 
164  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributes = value; }
165 
169  inline DescribeThingResult& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
170 
174  inline DescribeThingResult& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
175 
179  inline DescribeThingResult& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributes[key] = value; return *this; }
180 
184  inline DescribeThingResult& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributes[key] = value; return *this; }
185 
189  inline DescribeThingResult& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributes[key] = value; return *this; }
190 
194  inline DescribeThingResult& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributes[key] = value; return *this; }
195 
199  inline DescribeThingResult& AddAttributes(const char* key, Aws::String&& value) { m_attributes[key] = value; return *this; }
200 
204  inline DescribeThingResult& AddAttributes(Aws::String&& key, const char* value) { m_attributes[key] = value; return *this; }
205 
209  inline DescribeThingResult& AddAttributes(const char* key, const char* value) { m_attributes[key] = value; return *this; }
210 
217  inline long long GetVersion() const{ return m_version; }
218 
225  inline void SetVersion(long long value) { m_version = value; }
226 
233  inline DescribeThingResult& WithVersion(long long value) { SetVersion(value); return *this;}
234 
235  private:
236  Aws::String m_defaultClientId;
237  Aws::String m_thingName;
238  Aws::String m_thingTypeName;
240  long long m_version;
241  };
242 
243 } // namespace Model
244 } // namespace IoT
245 } // namespace Aws
const Aws::String & GetThingName() const
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
DescribeThingResult & WithThingTypeName(const char *value)
void SetDefaultClientId(Aws::String &&value)
DescribeThingResult & WithThingName(Aws::String &&value)
DescribeThingResult & AddAttributes(const Aws::String &key, const Aws::String &value)
DescribeThingResult & WithVersion(long long value)
void SetThingTypeName(const Aws::String &value)
DescribeThingResult & AddAttributes(Aws::String &&key, const char *value)
const Aws::String & GetThingTypeName() const
DescribeThingResult & WithThingTypeName(const Aws::String &value)
const Aws::String & GetDefaultClientId() const
DescribeThingResult & AddAttributes(const char *key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
DescribeThingResult & WithThingTypeName(Aws::String &&value)
void SetThingTypeName(Aws::String &&value)
DescribeThingResult & WithThingName(const char *value)
DescribeThingResult & AddAttributes(const char *key, Aws::String &&value)
void SetThingName(Aws::String &&value)
DescribeThingResult & AddAttributes(Aws::String &&key, Aws::String &&value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
DescribeThingResult & WithThingName(const Aws::String &value)
DescribeThingResult & WithDefaultClientId(const char *value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
DescribeThingResult & AddAttributes(Aws::String &&key, const Aws::String &value)
void SetThingName(const Aws::String &value)
DescribeThingResult & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
DescribeThingResult & WithDefaultClientId(const Aws::String &value)
DescribeThingResult & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeThingResult & WithDefaultClientId(Aws::String &&value)
void SetDefaultClientId(const Aws::String &value)
void SetDefaultClientId(const char *value)
DescribeThingResult & AddAttributes(const Aws::String &key, Aws::String &&value)
JSON (JavaScript Object Notation).