AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
48 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
49 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
50 inline CreateThingRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
51 inline CreateThingRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
52 inline CreateThingRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
54
56
59 inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
60 inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
61 inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
62 inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
63 inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
64 inline CreateThingRequest& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
65 inline CreateThingRequest& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
66 inline CreateThingRequest& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
68
70
75 inline const AttributePayload& GetAttributePayload() const{ return m_attributePayload; }
76 inline bool AttributePayloadHasBeenSet() const { return m_attributePayloadHasBeenSet; }
77 inline void SetAttributePayload(const AttributePayload& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = value; }
78 inline void SetAttributePayload(AttributePayload&& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = std::move(value); }
79 inline CreateThingRequest& WithAttributePayload(const AttributePayload& value) { SetAttributePayload(value); return *this;}
80 inline CreateThingRequest& WithAttributePayload(AttributePayload&& value) { SetAttributePayload(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetBillingGroupName() const{ return m_billingGroupName; }
88 inline bool BillingGroupNameHasBeenSet() const { return m_billingGroupNameHasBeenSet; }
89 inline void SetBillingGroupName(const Aws::String& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = value; }
90 inline void SetBillingGroupName(Aws::String&& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = std::move(value); }
91 inline void SetBillingGroupName(const char* value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName.assign(value); }
92 inline CreateThingRequest& WithBillingGroupName(const Aws::String& value) { SetBillingGroupName(value); return *this;}
93 inline CreateThingRequest& WithBillingGroupName(Aws::String&& value) { SetBillingGroupName(std::move(value)); return *this;}
94 inline CreateThingRequest& WithBillingGroupName(const char* value) { SetBillingGroupName(value); return *this;}
96 private:
97
98 Aws::String m_thingName;
99 bool m_thingNameHasBeenSet = false;
100
101 Aws::String m_thingTypeName;
102 bool m_thingTypeNameHasBeenSet = false;
103
104 AttributePayload m_attributePayload;
105 bool m_attributePayloadHasBeenSet = false;
106
107 Aws::String m_billingGroupName;
108 bool m_billingGroupNameHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace IoT
113} // namespace Aws
CreateThingRequest & WithThingTypeName(const char *value)
CreateThingRequest & WithThingName(Aws::String &&value)
CreateThingRequest & WithAttributePayload(const AttributePayload &value)
CreateThingRequest & WithThingName(const Aws::String &value)
void SetBillingGroupName(const char *value)
const Aws::String & GetThingName() const
const AttributePayload & GetAttributePayload() const
void SetThingName(Aws::String &&value)
CreateThingRequest & WithBillingGroupName(const Aws::String &value)
CreateThingRequest & WithBillingGroupName(const char *value)
void SetThingName(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetAttributePayload(AttributePayload &&value)
void SetThingTypeName(const char *value)
void SetAttributePayload(const AttributePayload &value)
CreateThingRequest & WithAttributePayload(AttributePayload &&value)
void SetBillingGroupName(const Aws::String &value)
CreateThingRequest & WithBillingGroupName(Aws::String &&value)
void SetBillingGroupName(Aws::String &&value)
void SetThingTypeName(Aws::String &&value)
void SetThingTypeName(const Aws::String &value)
const Aws::String & GetThingTypeName() const
CreateThingRequest & WithThingTypeName(const Aws::String &value)
CreateThingRequest & WithThingName(const char *value)
CreateThingRequest & WithThingTypeName(Aws::String &&value)
const Aws::String & GetBillingGroupName() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String