AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeThingResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
34 {
35 public:
36 AWS_IOT_API DescribeThingResult() = default;
39
40
42
51 inline const Aws::String& GetDefaultClientId() const { return m_defaultClientId; }
52 template<typename DefaultClientIdT = Aws::String>
53 void SetDefaultClientId(DefaultClientIdT&& value) { m_defaultClientIdHasBeenSet = true; m_defaultClientId = std::forward<DefaultClientIdT>(value); }
54 template<typename DefaultClientIdT = Aws::String>
55 DescribeThingResult& WithDefaultClientId(DefaultClientIdT&& value) { SetDefaultClientId(std::forward<DefaultClientIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetThingName() const { return m_thingName; }
63 template<typename ThingNameT = Aws::String>
64 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
65 template<typename ThingNameT = Aws::String>
66 DescribeThingResult& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetThingId() const { return m_thingId; }
74 template<typename ThingIdT = Aws::String>
75 void SetThingId(ThingIdT&& value) { m_thingIdHasBeenSet = true; m_thingId = std::forward<ThingIdT>(value); }
76 template<typename ThingIdT = Aws::String>
77 DescribeThingResult& WithThingId(ThingIdT&& value) { SetThingId(std::forward<ThingIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetThingArn() const { return m_thingArn; }
85 template<typename ThingArnT = Aws::String>
86 void SetThingArn(ThingArnT&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::forward<ThingArnT>(value); }
87 template<typename ThingArnT = Aws::String>
88 DescribeThingResult& WithThingArn(ThingArnT&& value) { SetThingArn(std::forward<ThingArnT>(value)); return *this;}
90
92
95 inline const Aws::String& GetThingTypeName() const { return m_thingTypeName; }
96 template<typename ThingTypeNameT = Aws::String>
97 void SetThingTypeName(ThingTypeNameT&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::forward<ThingTypeNameT>(value); }
98 template<typename ThingTypeNameT = Aws::String>
99 DescribeThingResult& WithThingTypeName(ThingTypeNameT&& value) { SetThingTypeName(std::forward<ThingTypeNameT>(value)); return *this;}
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
107 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
108 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
109 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
110 DescribeThingResult& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
111 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
112 DescribeThingResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
113 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
114 }
116
118
124 inline long long GetVersion() const { return m_version; }
125 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
126 inline DescribeThingResult& WithVersion(long long value) { SetVersion(value); return *this;}
128
130
133 inline const Aws::String& GetBillingGroupName() const { return m_billingGroupName; }
134 template<typename BillingGroupNameT = Aws::String>
135 void SetBillingGroupName(BillingGroupNameT&& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = std::forward<BillingGroupNameT>(value); }
136 template<typename BillingGroupNameT = Aws::String>
137 DescribeThingResult& WithBillingGroupName(BillingGroupNameT&& value) { SetBillingGroupName(std::forward<BillingGroupNameT>(value)); return *this;}
139
141
142 inline const Aws::String& GetRequestId() const { return m_requestId; }
143 template<typename RequestIdT = Aws::String>
144 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
145 template<typename RequestIdT = Aws::String>
146 DescribeThingResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
148 private:
149
150 Aws::String m_defaultClientId;
151 bool m_defaultClientIdHasBeenSet = false;
152
153 Aws::String m_thingName;
154 bool m_thingNameHasBeenSet = false;
155
156 Aws::String m_thingId;
157 bool m_thingIdHasBeenSet = false;
158
159 Aws::String m_thingArn;
160 bool m_thingArnHasBeenSet = false;
161
162 Aws::String m_thingTypeName;
163 bool m_thingTypeNameHasBeenSet = false;
164
166 bool m_attributesHasBeenSet = false;
167
168 long long m_version{0};
169 bool m_versionHasBeenSet = false;
170
171 Aws::String m_billingGroupName;
172 bool m_billingGroupNameHasBeenSet = false;
173
174 Aws::String m_requestId;
175 bool m_requestIdHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace IoT
180} // namespace Aws
const Aws::String & GetDefaultClientId() const
DescribeThingResult & WithThingTypeName(ThingTypeNameT &&value)
DescribeThingResult & WithVersion(long long value)
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