AWS SDK for C++

AWS SDK for C++ Version 1.11.555

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
CreateUserHierarchyGroupRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Connect
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECT_API CreateUserHierarchyGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateUserHierarchyGroup"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template<typename NameT = Aws::String>
44 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
45 template<typename NameT = Aws::String>
46 CreateUserHierarchyGroupRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
48
50
54 inline const Aws::String& GetParentGroupId() const { return m_parentGroupId; }
55 inline bool ParentGroupIdHasBeenSet() const { return m_parentGroupIdHasBeenSet; }
56 template<typename ParentGroupIdT = Aws::String>
57 void SetParentGroupId(ParentGroupIdT&& value) { m_parentGroupIdHasBeenSet = true; m_parentGroupId = std::forward<ParentGroupIdT>(value); }
58 template<typename ParentGroupIdT = Aws::String>
59 CreateUserHierarchyGroupRequest& WithParentGroupId(ParentGroupIdT&& value) { SetParentGroupId(std::forward<ParentGroupIdT>(value)); return *this;}
61
63
68 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
69 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
70 template<typename InstanceIdT = Aws::String>
71 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
72 template<typename InstanceIdT = Aws::String>
73 CreateUserHierarchyGroupRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
75
77
81 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 CreateUserHierarchyGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
87 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 CreateUserHierarchyGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
90 }
92 private:
93
94 Aws::String m_name;
95 bool m_nameHasBeenSet = false;
96
97 Aws::String m_parentGroupId;
98 bool m_parentGroupIdHasBeenSet = false;
99
100 Aws::String m_instanceId;
101 bool m_instanceIdHasBeenSet = false;
102
104 bool m_tagsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Connect
109} // 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