AWS SDK for C++  1.9.132
AWS SDK for C++
CreateThingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateThing"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
44  inline const Aws::String& GetThingName() const{ return m_thingName; }
45 
51  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
52 
58  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
59 
65  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
66 
72  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
73 
79  inline CreateThingRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
80 
86  inline CreateThingRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
87 
93  inline CreateThingRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
94 
95 
99  inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
100 
104  inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
105 
109  inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
110 
114  inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
115 
119  inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
120 
124  inline CreateThingRequest& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
125 
129  inline CreateThingRequest& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
130 
134  inline CreateThingRequest& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
135 
136 
142  inline const AttributePayload& GetAttributePayload() const{ return m_attributePayload; }
143 
149  inline bool AttributePayloadHasBeenSet() const { return m_attributePayloadHasBeenSet; }
150 
156  inline void SetAttributePayload(const AttributePayload& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = value; }
157 
163  inline void SetAttributePayload(AttributePayload&& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = std::move(value); }
164 
170  inline CreateThingRequest& WithAttributePayload(const AttributePayload& value) { SetAttributePayload(value); return *this;}
171 
177  inline CreateThingRequest& WithAttributePayload(AttributePayload&& value) { SetAttributePayload(std::move(value)); return *this;}
178 
179 
183  inline const Aws::String& GetBillingGroupName() const{ return m_billingGroupName; }
184 
188  inline bool BillingGroupNameHasBeenSet() const { return m_billingGroupNameHasBeenSet; }
189 
193  inline void SetBillingGroupName(const Aws::String& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = value; }
194 
198  inline void SetBillingGroupName(Aws::String&& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = std::move(value); }
199 
203  inline void SetBillingGroupName(const char* value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName.assign(value); }
204 
208  inline CreateThingRequest& WithBillingGroupName(const Aws::String& value) { SetBillingGroupName(value); return *this;}
209 
213  inline CreateThingRequest& WithBillingGroupName(Aws::String&& value) { SetBillingGroupName(std::move(value)); return *this;}
214 
218  inline CreateThingRequest& WithBillingGroupName(const char* value) { SetBillingGroupName(value); return *this;}
219 
220  private:
221 
222  Aws::String m_thingName;
223  bool m_thingNameHasBeenSet;
224 
225  Aws::String m_thingTypeName;
226  bool m_thingTypeNameHasBeenSet;
227 
228  AttributePayload m_attributePayload;
229  bool m_attributePayloadHasBeenSet;
230 
231  Aws::String m_billingGroupName;
232  bool m_billingGroupNameHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace IoT
237 } // namespace Aws
Aws::IoT::Model::CreateThingRequest::CreateThingRequest
CreateThingRequest()
Aws::IoT::Model::CreateThingRequest::AttributePayloadHasBeenSet
bool AttributePayloadHasBeenSet() const
Definition: CreateThingRequest.h:149
Aws::IoT::Model::CreateThingRequest::SetAttributePayload
void SetAttributePayload(const AttributePayload &value)
Definition: CreateThingRequest.h:156
AttributePayload.h
Aws::IoT::Model::CreateThingRequest::SetAttributePayload
void SetAttributePayload(AttributePayload &&value)
Definition: CreateThingRequest.h:163
Aws::IoT::Model::CreateThingRequest::SetThingTypeName
void SetThingTypeName(const Aws::String &value)
Definition: CreateThingRequest.h:109
Aws::IoT::Model::CreateThingRequest::WithThingTypeName
CreateThingRequest & WithThingTypeName(Aws::String &&value)
Definition: CreateThingRequest.h:129
Aws::IoT::Model::CreateThingRequest::SetBillingGroupName
void SetBillingGroupName(Aws::String &&value)
Definition: CreateThingRequest.h:198
Aws::IoT::Model::CreateThingRequest::GetThingTypeName
const Aws::String & GetThingTypeName() const
Definition: CreateThingRequest.h:99
Aws::IoT::Model::CreateThingRequest::WithBillingGroupName
CreateThingRequest & WithBillingGroupName(const Aws::String &value)
Definition: CreateThingRequest.h:208
Aws::IoT::Model::CreateThingRequest::WithThingTypeName
CreateThingRequest & WithThingTypeName(const Aws::String &value)
Definition: CreateThingRequest.h:124
Aws::IoT::Model::CreateThingRequest::SetBillingGroupName
void SetBillingGroupName(const Aws::String &value)
Definition: CreateThingRequest.h:193
Aws::IoT::Model::CreateThingRequest::WithThingTypeName
CreateThingRequest & WithThingTypeName(const char *value)
Definition: CreateThingRequest.h:134
Aws::IoT::Model::CreateThingRequest::WithBillingGroupName
CreateThingRequest & WithBillingGroupName(const char *value)
Definition: CreateThingRequest.h:218
Aws::IoT::Model::CreateThingRequest::GetAttributePayload
const AttributePayload & GetAttributePayload() const
Definition: CreateThingRequest.h:142
Aws::IoT::Model::CreateThingRequest::WithThingName
CreateThingRequest & WithThingName(const Aws::String &value)
Definition: CreateThingRequest.h:79
Aws::IoT::Model::AttributePayload
Definition: AttributePayload.h:33
Aws::IoT::Model::CreateThingRequest
Definition: CreateThingRequest.h:26
Aws::IoT::Model::CreateThingRequest::BillingGroupNameHasBeenSet
bool BillingGroupNameHasBeenSet() const
Definition: CreateThingRequest.h:188
Aws::IoT::Model::CreateThingRequest::SetBillingGroupName
void SetBillingGroupName(const char *value)
Definition: CreateThingRequest.h:203
AWSString.h
Aws::IoT::Model::CreateThingRequest::WithAttributePayload
CreateThingRequest & WithAttributePayload(AttributePayload &&value)
Definition: CreateThingRequest.h:177
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateThingRequest::WithAttributePayload
CreateThingRequest & WithAttributePayload(const AttributePayload &value)
Definition: CreateThingRequest.h:170
Aws::IoT::Model::CreateThingRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: CreateThingRequest.h:51
Aws::IoT::Model::CreateThingRequest::GetThingName
const Aws::String & GetThingName() const
Definition: CreateThingRequest.h:44
Aws::IoT::Model::CreateThingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateThingRequest.h:34
Aws::IoT::Model::CreateThingRequest::ThingTypeNameHasBeenSet
bool ThingTypeNameHasBeenSet() const
Definition: CreateThingRequest.h:104
Aws::IoT::Model::CreateThingRequest::SetThingTypeName
void SetThingTypeName(Aws::String &&value)
Definition: CreateThingRequest.h:114
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateThingRequest::GetBillingGroupName
const Aws::String & GetBillingGroupName() const
Definition: CreateThingRequest.h:183
Aws::IoT::Model::CreateThingRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: CreateThingRequest.h:65
Aws::IoT::Model::CreateThingRequest::SetThingName
void SetThingName(const char *value)
Definition: CreateThingRequest.h:72
Aws::IoT::Model::CreateThingRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: CreateThingRequest.h:58
Aws::IoT::Model::CreateThingRequest::WithThingName
CreateThingRequest & WithThingName(const char *value)
Definition: CreateThingRequest.h:93
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::CreateThingRequest::SetThingTypeName
void SetThingTypeName(const char *value)
Definition: CreateThingRequest.h:119
Aws::IoT::Model::CreateThingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CreateThingRequest::WithBillingGroupName
CreateThingRequest & WithBillingGroupName(Aws::String &&value)
Definition: CreateThingRequest.h:213
IoTRequest.h
Aws::IoT::Model::CreateThingRequest::WithThingName
CreateThingRequest & WithThingName(Aws::String &&value)
Definition: CreateThingRequest.h:86
IoT_EXPORTS.h