AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
CreateThingResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
30 public:
31 AWS_IOT_API CreateThingResult() = default;
34
36
39 inline const Aws::String& GetThingName() const { return m_thingName; }
40 template <typename ThingNameT = Aws::String>
41 void SetThingName(ThingNameT&& value) {
42 m_thingNameHasBeenSet = true;
43 m_thingName = std::forward<ThingNameT>(value);
44 }
45 template <typename ThingNameT = Aws::String>
46 CreateThingResult& WithThingName(ThingNameT&& value) {
47 SetThingName(std::forward<ThingNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetThingArn() const { return m_thingArn; }
57 template <typename ThingArnT = Aws::String>
58 void SetThingArn(ThingArnT&& value) {
59 m_thingArnHasBeenSet = true;
60 m_thingArn = std::forward<ThingArnT>(value);
61 }
62 template <typename ThingArnT = Aws::String>
63 CreateThingResult& WithThingArn(ThingArnT&& value) {
64 SetThingArn(std::forward<ThingArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetThingId() const { return m_thingId; }
74 template <typename ThingIdT = Aws::String>
75 void SetThingId(ThingIdT&& value) {
76 m_thingIdHasBeenSet = true;
77 m_thingId = std::forward<ThingIdT>(value);
78 }
79 template <typename ThingIdT = Aws::String>
80 CreateThingResult& WithThingId(ThingIdT&& value) {
81 SetThingId(std::forward<ThingIdT>(value));
82 return *this;
83 }
85
87
88 inline const Aws::String& GetRequestId() const { return m_requestId; }
89 template <typename RequestIdT = Aws::String>
90 void SetRequestId(RequestIdT&& value) {
91 m_requestIdHasBeenSet = true;
92 m_requestId = std::forward<RequestIdT>(value);
93 }
94 template <typename RequestIdT = Aws::String>
95 CreateThingResult& WithRequestId(RequestIdT&& value) {
96 SetRequestId(std::forward<RequestIdT>(value));
97 return *this;
98 }
100 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
101
102 private:
103 Aws::String m_thingName;
104
105 Aws::String m_thingArn;
106
107 Aws::String m_thingId;
108
109 Aws::String m_requestId;
110 Aws::Http::HttpResponseCode m_HttpResponseCode;
111 bool m_thingNameHasBeenSet = false;
112 bool m_thingArnHasBeenSet = false;
113 bool m_thingIdHasBeenSet = false;
114 bool m_requestIdHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace IoT
119} // namespace Aws
AWS_IOT_API CreateThingResult()=default
const Aws::String & GetRequestId() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_IOT_API CreateThingResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetThingId() const
AWS_IOT_API CreateThingResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateThingResult & WithRequestId(RequestIdT &&value)
CreateThingResult & WithThingName(ThingNameT &&value)
const Aws::String & GetThingArn() const
CreateThingResult & WithThingArn(ThingArnT &&value)
CreateThingResult & WithThingId(ThingIdT &&value)
const Aws::String & GetThingName() const
void SetRequestId(RequestIdT &&value)
void SetThingName(ThingNameT &&value)
void SetThingArn(ThingArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue