AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateThingGroupRequest.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/ThingGroupProperties.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace IoT
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateThingGroup"; }
34
35 AWS_IOT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; }
43 inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
44 inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; }
45 inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); }
46 inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); }
47 inline CreateThingGroupRequest& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;}
48 inline CreateThingGroupRequest& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
49 inline CreateThingGroupRequest& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
51
53
56 inline const Aws::String& GetParentGroupName() const{ return m_parentGroupName; }
57 inline bool ParentGroupNameHasBeenSet() const { return m_parentGroupNameHasBeenSet; }
58 inline void SetParentGroupName(const Aws::String& value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName = value; }
59 inline void SetParentGroupName(Aws::String&& value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName = std::move(value); }
60 inline void SetParentGroupName(const char* value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName.assign(value); }
61 inline CreateThingGroupRequest& WithParentGroupName(const Aws::String& value) { SetParentGroupName(value); return *this;}
62 inline CreateThingGroupRequest& WithParentGroupName(Aws::String&& value) { SetParentGroupName(std::move(value)); return *this;}
63 inline CreateThingGroupRequest& WithParentGroupName(const char* value) { SetParentGroupName(value); return *this;}
65
67
70 inline const ThingGroupProperties& GetThingGroupProperties() const{ return m_thingGroupProperties; }
71 inline bool ThingGroupPropertiesHasBeenSet() const { return m_thingGroupPropertiesHasBeenSet; }
72 inline void SetThingGroupProperties(const ThingGroupProperties& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = value; }
73 inline void SetThingGroupProperties(ThingGroupProperties&& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = std::move(value); }
77
79
82 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
85 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
86 inline CreateThingGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
87 inline CreateThingGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
88 inline CreateThingGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
89 inline CreateThingGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
91 private:
92
93 Aws::String m_thingGroupName;
94 bool m_thingGroupNameHasBeenSet = false;
95
96 Aws::String m_parentGroupName;
97 bool m_parentGroupNameHasBeenSet = false;
98
99 ThingGroupProperties m_thingGroupProperties;
100 bool m_thingGroupPropertiesHasBeenSet = false;
101
102 Aws::Vector<Tag> m_tags;
103 bool m_tagsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace IoT
108} // namespace Aws
virtual const char * GetServiceRequestName() const override
const ThingGroupProperties & GetThingGroupProperties() const
CreateThingGroupRequest & AddTags(Tag &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateThingGroupRequest & AddTags(const Tag &value)
void SetThingGroupProperties(ThingGroupProperties &&value)
CreateThingGroupRequest & WithThingGroupName(const char *value)
CreateThingGroupRequest & WithThingGroupProperties(ThingGroupProperties &&value)
void SetThingGroupName(const Aws::String &value)
CreateThingGroupRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateThingGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateThingGroupRequest & WithThingGroupProperties(const ThingGroupProperties &value)
void SetThingGroupProperties(const ThingGroupProperties &value)
CreateThingGroupRequest & WithParentGroupName(const char *value)
CreateThingGroupRequest & WithParentGroupName(const Aws::String &value)
void SetParentGroupName(const Aws::String &value)
CreateThingGroupRequest & WithParentGroupName(Aws::String &&value)
CreateThingGroupRequest & WithThingGroupName(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
CreateThingGroupRequest & WithThingGroupName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector