AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
27 AWS_IOT_API CreateThingGroupRequest() = default;
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 template<typename ThingGroupNameT = Aws::String>
45 void SetThingGroupName(ThingGroupNameT&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::forward<ThingGroupNameT>(value); }
46 template<typename ThingGroupNameT = Aws::String>
47 CreateThingGroupRequest& WithThingGroupName(ThingGroupNameT&& value) { SetThingGroupName(std::forward<ThingGroupNameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetParentGroupName() const { return m_parentGroupName; }
55 inline bool ParentGroupNameHasBeenSet() const { return m_parentGroupNameHasBeenSet; }
56 template<typename ParentGroupNameT = Aws::String>
57 void SetParentGroupName(ParentGroupNameT&& value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName = std::forward<ParentGroupNameT>(value); }
58 template<typename ParentGroupNameT = Aws::String>
59 CreateThingGroupRequest& WithParentGroupName(ParentGroupNameT&& value) { SetParentGroupName(std::forward<ParentGroupNameT>(value)); return *this;}
61
63
66 inline const ThingGroupProperties& GetThingGroupProperties() const { return m_thingGroupProperties; }
67 inline bool ThingGroupPropertiesHasBeenSet() const { return m_thingGroupPropertiesHasBeenSet; }
68 template<typename ThingGroupPropertiesT = ThingGroupProperties>
69 void SetThingGroupProperties(ThingGroupPropertiesT&& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = std::forward<ThingGroupPropertiesT>(value); }
70 template<typename ThingGroupPropertiesT = ThingGroupProperties>
71 CreateThingGroupRequest& WithThingGroupProperties(ThingGroupPropertiesT&& value) { SetThingGroupProperties(std::forward<ThingGroupPropertiesT>(value)); return *this;}
73
75
78 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 template<typename TagsT = Aws::Vector<Tag>>
81 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
82 template<typename TagsT = Aws::Vector<Tag>>
83 CreateThingGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
84 template<typename TagsT = Tag>
85 CreateThingGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
87 private:
88
89 Aws::String m_thingGroupName;
90 bool m_thingGroupNameHasBeenSet = false;
91
92 Aws::String m_parentGroupName;
93 bool m_parentGroupNameHasBeenSet = false;
94
95 ThingGroupProperties m_thingGroupProperties;
96 bool m_thingGroupPropertiesHasBeenSet = false;
97
98 Aws::Vector<Tag> m_tags;
99 bool m_tagsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace IoT
104} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetParentGroupName(ParentGroupNameT &&value)
const ThingGroupProperties & GetThingGroupProperties() const
void SetThingGroupName(ThingGroupNameT &&value)
CreateThingGroupRequest & WithTags(TagsT &&value)
CreateThingGroupRequest & AddTags(TagsT &&value)
CreateThingGroupRequest & WithParentGroupName(ParentGroupNameT &&value)
CreateThingGroupRequest & WithThingGroupProperties(ThingGroupPropertiesT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateThingGroupRequest & WithThingGroupName(ThingGroupNameT &&value)
void SetThingGroupProperties(ThingGroupPropertiesT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_IOT_API CreateThingGroupRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector