AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
DescribeThingResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/IoT_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace IoT {
24namespace Model {
31 public:
32 AWS_IOT_API DescribeThingResult() = default;
35
37
46 inline const Aws::String& GetDefaultClientId() const { return m_defaultClientId; }
47 template <typename DefaultClientIdT = Aws::String>
48 void SetDefaultClientId(DefaultClientIdT&& value) {
49 m_defaultClientIdHasBeenSet = true;
50 m_defaultClientId = std::forward<DefaultClientIdT>(value);
51 }
52 template <typename DefaultClientIdT = Aws::String>
53 DescribeThingResult& WithDefaultClientId(DefaultClientIdT&& value) {
54 SetDefaultClientId(std::forward<DefaultClientIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetThingName() const { return m_thingName; }
64 template <typename ThingNameT = Aws::String>
65 void SetThingName(ThingNameT&& value) {
66 m_thingNameHasBeenSet = true;
67 m_thingName = std::forward<ThingNameT>(value);
68 }
69 template <typename ThingNameT = Aws::String>
70 DescribeThingResult& WithThingName(ThingNameT&& value) {
71 SetThingName(std::forward<ThingNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetThingId() const { return m_thingId; }
81 template <typename ThingIdT = Aws::String>
82 void SetThingId(ThingIdT&& value) {
83 m_thingIdHasBeenSet = true;
84 m_thingId = std::forward<ThingIdT>(value);
85 }
86 template <typename ThingIdT = Aws::String>
87 DescribeThingResult& WithThingId(ThingIdT&& value) {
88 SetThingId(std::forward<ThingIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetThingArn() const { return m_thingArn; }
98 template <typename ThingArnT = Aws::String>
99 void SetThingArn(ThingArnT&& value) {
100 m_thingArnHasBeenSet = true;
101 m_thingArn = std::forward<ThingArnT>(value);
102 }
103 template <typename ThingArnT = Aws::String>
104 DescribeThingResult& WithThingArn(ThingArnT&& value) {
105 SetThingArn(std::forward<ThingArnT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetThingTypeName() const { return m_thingTypeName; }
115 template <typename ThingTypeNameT = Aws::String>
116 void SetThingTypeName(ThingTypeNameT&& value) {
117 m_thingTypeNameHasBeenSet = true;
118 m_thingTypeName = std::forward<ThingTypeNameT>(value);
119 }
120 template <typename ThingTypeNameT = Aws::String>
121 DescribeThingResult& WithThingTypeName(ThingTypeNameT&& value) {
122 SetThingTypeName(std::forward<ThingTypeNameT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
132 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
133 void SetAttributes(AttributesT&& value) {
134 m_attributesHasBeenSet = true;
135 m_attributes = std::forward<AttributesT>(value);
136 }
137 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
138 DescribeThingResult& WithAttributes(AttributesT&& value) {
139 SetAttributes(std::forward<AttributesT>(value));
140 return *this;
141 }
142 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
143 DescribeThingResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
144 m_attributesHasBeenSet = true;
145 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
146 return *this;
147 }
149
151
157 inline long long GetVersion() const { return m_version; }
158 inline void SetVersion(long long value) {
159 m_versionHasBeenSet = true;
160 m_version = value;
161 }
162 inline DescribeThingResult& WithVersion(long long value) {
163 SetVersion(value);
164 return *this;
165 }
167
169
172 inline const Aws::String& GetBillingGroupName() const { return m_billingGroupName; }
173 template <typename BillingGroupNameT = Aws::String>
174 void SetBillingGroupName(BillingGroupNameT&& value) {
175 m_billingGroupNameHasBeenSet = true;
176 m_billingGroupName = std::forward<BillingGroupNameT>(value);
177 }
178 template <typename BillingGroupNameT = Aws::String>
179 DescribeThingResult& WithBillingGroupName(BillingGroupNameT&& value) {
180 SetBillingGroupName(std::forward<BillingGroupNameT>(value));
181 return *this;
182 }
184
186
187 inline const Aws::String& GetRequestId() const { return m_requestId; }
188 template <typename RequestIdT = Aws::String>
189 void SetRequestId(RequestIdT&& value) {
190 m_requestIdHasBeenSet = true;
191 m_requestId = std::forward<RequestIdT>(value);
192 }
193 template <typename RequestIdT = Aws::String>
194 DescribeThingResult& WithRequestId(RequestIdT&& value) {
195 SetRequestId(std::forward<RequestIdT>(value));
196 return *this;
197 }
199 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
200
201 private:
202 Aws::String m_defaultClientId;
203
204 Aws::String m_thingName;
205
206 Aws::String m_thingId;
207
208 Aws::String m_thingArn;
209
210 Aws::String m_thingTypeName;
211
213
214 long long m_version{0};
215
216 Aws::String m_billingGroupName;
217
218 Aws::String m_requestId;
219 Aws::Http::HttpResponseCode m_HttpResponseCode;
220 bool m_defaultClientIdHasBeenSet = false;
221 bool m_thingNameHasBeenSet = false;
222 bool m_thingIdHasBeenSet = false;
223 bool m_thingArnHasBeenSet = false;
224 bool m_thingTypeNameHasBeenSet = false;
225 bool m_attributesHasBeenSet = false;
226 bool m_versionHasBeenSet = false;
227 bool m_billingGroupNameHasBeenSet = false;
228 bool m_requestIdHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace IoT
233} // namespace Aws
const Aws::String & GetDefaultClientId() const
DescribeThingResult & WithThingTypeName(ThingTypeNameT &&value)
DescribeThingResult & WithVersion(long long value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetRequestId() const
void SetThingTypeName(ThingTypeNameT &&value)
const Aws::String & GetThingArn() const
DescribeThingResult & WithBillingGroupName(BillingGroupNameT &&value)
DescribeThingResult & WithAttributes(AttributesT &&value)
DescribeThingResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
DescribeThingResult & WithThingArn(ThingArnT &&value)
void SetBillingGroupName(BillingGroupNameT &&value)
AWS_IOT_API DescribeThingResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeThingResult & WithThingId(ThingIdT &&value)
AWS_IOT_API DescribeThingResult()=default
const Aws::String & GetThingId() const
DescribeThingResult & WithDefaultClientId(DefaultClientIdT &&value)
const Aws::String & GetBillingGroupName() const
AWS_IOT_API DescribeThingResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeThingResult & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
void SetDefaultClientId(DefaultClientIdT &&value)
DescribeThingResult & WithThingName(ThingNameT &&value)
const Aws::String & GetThingName() const
const Aws::String & GetThingTypeName() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue