AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
CreateUserHierarchyGroupRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Connect {
16namespace Model {
17
21 public:
22 AWS_CONNECT_API CreateUserHierarchyGroupRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateUserHierarchyGroup"; }
29
30 AWS_CONNECT_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetParentGroupId() const { return m_parentGroupId; }
57 inline bool ParentGroupIdHasBeenSet() const { return m_parentGroupIdHasBeenSet; }
58 template <typename ParentGroupIdT = Aws::String>
59 void SetParentGroupId(ParentGroupIdT&& value) {
60 m_parentGroupIdHasBeenSet = true;
61 m_parentGroupId = std::forward<ParentGroupIdT>(value);
62 }
63 template <typename ParentGroupIdT = Aws::String>
65 SetParentGroupId(std::forward<ParentGroupIdT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
77 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
78 template <typename InstanceIdT = Aws::String>
79 void SetInstanceId(InstanceIdT&& value) {
80 m_instanceIdHasBeenSet = true;
81 m_instanceId = std::forward<InstanceIdT>(value);
82 }
83 template <typename InstanceIdT = Aws::String>
85 SetInstanceId(std::forward<InstanceIdT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetTags(TagsT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags = std::forward<TagsT>(value);
101 }
102 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 SetTags(std::forward<TagsT>(value));
105 return *this;
106 }
107 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
108 CreateUserHierarchyGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 Aws::String m_parentGroupId;
119 bool m_parentGroupIdHasBeenSet = false;
120
121 Aws::String m_instanceId;
122 bool m_instanceIdHasBeenSet = false;
123
125 bool m_tagsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Connect
130} // namespace Aws
AWS_CONNECT_API CreateUserHierarchyGroupRequest()=default
CreateUserHierarchyGroupRequest & WithParentGroupId(ParentGroupIdT &&value)
CreateUserHierarchyGroupRequest & WithInstanceId(InstanceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateUserHierarchyGroupRequest & WithName(NameT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateUserHierarchyGroupRequest & WithTags(TagsT &&value)
CreateUserHierarchyGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String