AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreateThingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/AttributePayload.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IoT {
16namespace Model {
17
24 public:
25 AWS_IOT_API CreateThingRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateThing"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
36
41 inline const Aws::String& GetThingName() const { return m_thingName; }
42 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
43 template <typename ThingNameT = Aws::String>
44 void SetThingName(ThingNameT&& value) {
45 m_thingNameHasBeenSet = true;
46 m_thingName = std::forward<ThingNameT>(value);
47 }
48 template <typename ThingNameT = Aws::String>
49 CreateThingRequest& WithThingName(ThingNameT&& value) {
50 SetThingName(std::forward<ThingNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetThingTypeName() const { return m_thingTypeName; }
60 inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
61 template <typename ThingTypeNameT = Aws::String>
62 void SetThingTypeName(ThingTypeNameT&& value) {
63 m_thingTypeNameHasBeenSet = true;
64 m_thingTypeName = std::forward<ThingTypeNameT>(value);
65 }
66 template <typename ThingTypeNameT = Aws::String>
67 CreateThingRequest& WithThingTypeName(ThingTypeNameT&& value) {
68 SetThingTypeName(std::forward<ThingTypeNameT>(value));
69 return *this;
70 }
72
74
79 inline const AttributePayload& GetAttributePayload() const { return m_attributePayload; }
80 inline bool AttributePayloadHasBeenSet() const { return m_attributePayloadHasBeenSet; }
81 template <typename AttributePayloadT = AttributePayload>
82 void SetAttributePayload(AttributePayloadT&& value) {
83 m_attributePayloadHasBeenSet = true;
84 m_attributePayload = std::forward<AttributePayloadT>(value);
85 }
86 template <typename AttributePayloadT = AttributePayload>
87 CreateThingRequest& WithAttributePayload(AttributePayloadT&& value) {
88 SetAttributePayload(std::forward<AttributePayloadT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetBillingGroupName() const { return m_billingGroupName; }
98 inline bool BillingGroupNameHasBeenSet() const { return m_billingGroupNameHasBeenSet; }
99 template <typename BillingGroupNameT = Aws::String>
100 void SetBillingGroupName(BillingGroupNameT&& value) {
101 m_billingGroupNameHasBeenSet = true;
102 m_billingGroupName = std::forward<BillingGroupNameT>(value);
103 }
104 template <typename BillingGroupNameT = Aws::String>
105 CreateThingRequest& WithBillingGroupName(BillingGroupNameT&& value) {
106 SetBillingGroupName(std::forward<BillingGroupNameT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_thingName;
112 bool m_thingNameHasBeenSet = false;
113
114 Aws::String m_thingTypeName;
115 bool m_thingTypeNameHasBeenSet = false;
116
117 AttributePayload m_attributePayload;
118 bool m_attributePayloadHasBeenSet = false;
119
120 Aws::String m_billingGroupName;
121 bool m_billingGroupNameHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace IoT
126} // namespace Aws
const Aws::String & GetThingName() const
const AttributePayload & GetAttributePayload() const
CreateThingRequest & WithBillingGroupName(BillingGroupNameT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
AWS_IOT_API CreateThingRequest()=default
CreateThingRequest & WithThingName(ThingNameT &&value)
CreateThingRequest & WithThingTypeName(ThingTypeNameT &&value)
void SetThingName(ThingNameT &&value)
const Aws::String & GetThingTypeName() const
void SetThingTypeName(ThingTypeNameT &&value)
const Aws::String & GetBillingGroupName() const
CreateThingRequest & WithAttributePayload(AttributePayloadT &&value)
void SetAttributePayload(AttributePayloadT &&value)
virtual const char * GetServiceRequestName() const override
void SetBillingGroupName(BillingGroupNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String