AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
44 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
45 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
46 inline CreateUserHierarchyGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
47 inline CreateUserHierarchyGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
48 inline CreateUserHierarchyGroupRequest& WithName(const char* value) { SetName(value); return *this;}
50
52
56 inline const Aws::String& GetParentGroupId() const{ return m_parentGroupId; }
57 inline bool ParentGroupIdHasBeenSet() const { return m_parentGroupIdHasBeenSet; }
58 inline void SetParentGroupId(const Aws::String& value) { m_parentGroupIdHasBeenSet = true; m_parentGroupId = value; }
59 inline void SetParentGroupId(Aws::String&& value) { m_parentGroupIdHasBeenSet = true; m_parentGroupId = std::move(value); }
60 inline void SetParentGroupId(const char* value) { m_parentGroupIdHasBeenSet = true; m_parentGroupId.assign(value); }
62 inline CreateUserHierarchyGroupRequest& WithParentGroupId(Aws::String&& value) { SetParentGroupId(std::move(value)); return *this;}
63 inline CreateUserHierarchyGroupRequest& WithParentGroupId(const char* value) { SetParentGroupId(value); return *this;}
65
67
72 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
73 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
74 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
75 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
76 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
77 inline CreateUserHierarchyGroupRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
78 inline CreateUserHierarchyGroupRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
79 inline CreateUserHierarchyGroupRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
81
83
87 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
90 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
92 inline CreateUserHierarchyGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
93 inline CreateUserHierarchyGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
94 inline CreateUserHierarchyGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
95 inline CreateUserHierarchyGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 inline CreateUserHierarchyGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
97 inline CreateUserHierarchyGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
98 inline CreateUserHierarchyGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
99 inline CreateUserHierarchyGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Aws::String m_parentGroupId;
107 bool m_parentGroupIdHasBeenSet = false;
108
109 Aws::String m_instanceId;
110 bool m_instanceIdHasBeenSet = false;
111
113 bool m_tagsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Connect
118} // namespace Aws
CreateUserHierarchyGroupRequest & AddTags(const char *key, Aws::String &&value)
CreateUserHierarchyGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateUserHierarchyGroupRequest & WithName(const char *value)
CreateUserHierarchyGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateUserHierarchyGroupRequest & WithParentGroupId(Aws::String &&value)
CreateUserHierarchyGroupRequest & WithInstanceId(const Aws::String &value)
CreateUserHierarchyGroupRequest & WithParentGroupId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateUserHierarchyGroupRequest & WithName(Aws::String &&value)
CreateUserHierarchyGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateUserHierarchyGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateUserHierarchyGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateUserHierarchyGroupRequest & AddTags(const char *key, const char *value)
CreateUserHierarchyGroupRequest & WithInstanceId(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateUserHierarchyGroupRequest & WithParentGroupId(const char *value)
CreateUserHierarchyGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateUserHierarchyGroupRequest & AddTags(Aws::String &&key, const char *value)
CreateUserHierarchyGroupRequest & WithInstanceId(const char *value)
CreateUserHierarchyGroupRequest & WithName(const Aws::String &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