AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateThingRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/AttributePayload.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_IOT_API CreateThingRequest() = default;
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_IOT_API Aws::String SerializePayload() const override;
37
38
40
45 inline const Aws::String& GetThingName() const { return m_thingName; }
46 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
47 template<typename ThingNameT = Aws::String>
48 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
49 template<typename ThingNameT = Aws::String>
50 CreateThingRequest& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetThingTypeName() const { return m_thingTypeName; }
58 inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
59 template<typename ThingTypeNameT = Aws::String>
60 void SetThingTypeName(ThingTypeNameT&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::forward<ThingTypeNameT>(value); }
61 template<typename ThingTypeNameT = Aws::String>
62 CreateThingRequest& WithThingTypeName(ThingTypeNameT&& value) { SetThingTypeName(std::forward<ThingTypeNameT>(value)); return *this;}
64
66
71 inline const AttributePayload& GetAttributePayload() const { return m_attributePayload; }
72 inline bool AttributePayloadHasBeenSet() const { return m_attributePayloadHasBeenSet; }
73 template<typename AttributePayloadT = AttributePayload>
74 void SetAttributePayload(AttributePayloadT&& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = std::forward<AttributePayloadT>(value); }
75 template<typename AttributePayloadT = AttributePayload>
76 CreateThingRequest& WithAttributePayload(AttributePayloadT&& value) { SetAttributePayload(std::forward<AttributePayloadT>(value)); return *this;}
78
80
83 inline const Aws::String& GetBillingGroupName() const { return m_billingGroupName; }
84 inline bool BillingGroupNameHasBeenSet() const { return m_billingGroupNameHasBeenSet; }
85 template<typename BillingGroupNameT = Aws::String>
86 void SetBillingGroupName(BillingGroupNameT&& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = std::forward<BillingGroupNameT>(value); }
87 template<typename BillingGroupNameT = Aws::String>
88 CreateThingRequest& WithBillingGroupName(BillingGroupNameT&& value) { SetBillingGroupName(std::forward<BillingGroupNameT>(value)); return *this;}
90 private:
91
92 Aws::String m_thingName;
93 bool m_thingNameHasBeenSet = false;
94
95 Aws::String m_thingTypeName;
96 bool m_thingTypeNameHasBeenSet = false;
97
98 AttributePayload m_attributePayload;
99 bool m_attributePayloadHasBeenSet = false;
100
101 Aws::String m_billingGroupName;
102 bool m_billingGroupNameHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace IoT
107} // 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