AWS SDK for C++  1.9.125
AWS SDK for C++
CreateThingResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoT
24 {
25 namespace Model
26 {
33  {
34  public:
38 
39 
43  inline const Aws::String& GetThingName() const{ return m_thingName; }
44 
48  inline void SetThingName(const Aws::String& value) { m_thingName = value; }
49 
53  inline void SetThingName(Aws::String&& value) { m_thingName = std::move(value); }
54 
58  inline void SetThingName(const char* value) { m_thingName.assign(value); }
59 
63  inline CreateThingResult& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
64 
68  inline CreateThingResult& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
69 
73  inline CreateThingResult& WithThingName(const char* value) { SetThingName(value); return *this;}
74 
75 
79  inline const Aws::String& GetThingArn() const{ return m_thingArn; }
80 
84  inline void SetThingArn(const Aws::String& value) { m_thingArn = value; }
85 
89  inline void SetThingArn(Aws::String&& value) { m_thingArn = std::move(value); }
90 
94  inline void SetThingArn(const char* value) { m_thingArn.assign(value); }
95 
99  inline CreateThingResult& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
100 
104  inline CreateThingResult& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
105 
109  inline CreateThingResult& WithThingArn(const char* value) { SetThingArn(value); return *this;}
110 
111 
115  inline const Aws::String& GetThingId() const{ return m_thingId; }
116 
120  inline void SetThingId(const Aws::String& value) { m_thingId = value; }
121 
125  inline void SetThingId(Aws::String&& value) { m_thingId = std::move(value); }
126 
130  inline void SetThingId(const char* value) { m_thingId.assign(value); }
131 
135  inline CreateThingResult& WithThingId(const Aws::String& value) { SetThingId(value); return *this;}
136 
140  inline CreateThingResult& WithThingId(Aws::String&& value) { SetThingId(std::move(value)); return *this;}
141 
145  inline CreateThingResult& WithThingId(const char* value) { SetThingId(value); return *this;}
146 
147  private:
148 
149  Aws::String m_thingName;
150 
151  Aws::String m_thingArn;
152 
153  Aws::String m_thingId;
154  };
155 
156 } // namespace Model
157 } // namespace IoT
158 } // namespace Aws
Aws::IoT::Model::CreateThingResult::WithThingId
CreateThingResult & WithThingId(const char *value)
Definition: CreateThingResult.h:145
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::CreateThingResult::GetThingArn
const Aws::String & GetThingArn() const
Definition: CreateThingResult.h:79
Aws::IoT::Model::CreateThingResult::CreateThingResult
CreateThingResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::CreateThingResult::operator=
CreateThingResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::CreateThingResult::SetThingName
void SetThingName(const Aws::String &value)
Definition: CreateThingResult.h:48
Aws::IoT::Model::CreateThingResult::WithThingId
CreateThingResult & WithThingId(const Aws::String &value)
Definition: CreateThingResult.h:135
Aws::IoT::Model::CreateThingResult
Definition: CreateThingResult.h:33
Aws::IoT::Model::CreateThingResult::SetThingName
void SetThingName(Aws::String &&value)
Definition: CreateThingResult.h:53
Aws::IoT::Model::CreateThingResult::CreateThingResult
CreateThingResult()
Aws::IoT::Model::CreateThingResult::SetThingId
void SetThingId(Aws::String &&value)
Definition: CreateThingResult.h:125
Aws::IoT::Model::CreateThingResult::WithThingName
CreateThingResult & WithThingName(const char *value)
Definition: CreateThingResult.h:73
Aws::IoT::Model::CreateThingResult::GetThingName
const Aws::String & GetThingName() const
Definition: CreateThingResult.h:43
AWSString.h
Aws::IoT::Model::CreateThingResult::SetThingId
void SetThingId(const Aws::String &value)
Definition: CreateThingResult.h:120
Aws::IoT::Model::CreateThingResult::WithThingName
CreateThingResult & WithThingName(const Aws::String &value)
Definition: CreateThingResult.h:63
Aws::IoT::Model::CreateThingResult::GetThingId
const Aws::String & GetThingId() const
Definition: CreateThingResult.h:115
Aws::IoT::Model::CreateThingResult::SetThingArn
void SetThingArn(const Aws::String &value)
Definition: CreateThingResult.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateThingResult::WithThingArn
CreateThingResult & WithThingArn(const Aws::String &value)
Definition: CreateThingResult.h:99
Aws::IoT::Model::CreateThingResult::WithThingArn
CreateThingResult & WithThingArn(const char *value)
Definition: CreateThingResult.h:109
Aws::IoT::Model::CreateThingResult::WithThingId
CreateThingResult & WithThingId(Aws::String &&value)
Definition: CreateThingResult.h:140
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CreateThingResult::WithThingName
CreateThingResult & WithThingName(Aws::String &&value)
Definition: CreateThingResult.h:68
Aws::IoT::Model::CreateThingResult::WithThingArn
CreateThingResult & WithThingArn(Aws::String &&value)
Definition: CreateThingResult.h:104
Aws::IoT::Model::CreateThingResult::SetThingId
void SetThingId(const char *value)
Definition: CreateThingResult.h:130
Aws::IoT::Model::CreateThingResult::SetThingArn
void SetThingArn(const char *value)
Definition: CreateThingResult.h:94
Aws::IoT::Model::CreateThingResult::SetThingName
void SetThingName(const char *value)
Definition: CreateThingResult.h:58
IoT_EXPORTS.h
Aws::IoT::Model::CreateThingResult::SetThingArn
void SetThingArn(Aws::String &&value)
Definition: CreateThingResult.h:89