AWS SDK for C++  1.9.129
AWS SDK for C++
CreateUserHierarchyGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Connect
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateUserHierarchyGroup"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
39  inline const Aws::String& GetName() const{ return m_name; }
40 
45  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 
51  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
57  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
69  inline CreateUserHierarchyGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
75  inline CreateUserHierarchyGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
81  inline CreateUserHierarchyGroupRequest& WithName(const char* value) { SetName(value); return *this;}
82 
83 
88  inline const Aws::String& GetParentGroupId() const{ return m_parentGroupId; }
89 
94  inline bool ParentGroupIdHasBeenSet() const { return m_parentGroupIdHasBeenSet; }
95 
100  inline void SetParentGroupId(const Aws::String& value) { m_parentGroupIdHasBeenSet = true; m_parentGroupId = value; }
101 
106  inline void SetParentGroupId(Aws::String&& value) { m_parentGroupIdHasBeenSet = true; m_parentGroupId = std::move(value); }
107 
112  inline void SetParentGroupId(const char* value) { m_parentGroupIdHasBeenSet = true; m_parentGroupId.assign(value); }
113 
118  inline CreateUserHierarchyGroupRequest& WithParentGroupId(const Aws::String& value) { SetParentGroupId(value); return *this;}
119 
124  inline CreateUserHierarchyGroupRequest& WithParentGroupId(Aws::String&& value) { SetParentGroupId(std::move(value)); return *this;}
125 
130  inline CreateUserHierarchyGroupRequest& WithParentGroupId(const char* value) { SetParentGroupId(value); return *this;}
131 
132 
137  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
138 
143  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
144 
149  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
150 
155  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
156 
161  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
162 
167  inline CreateUserHierarchyGroupRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
168 
173  inline CreateUserHierarchyGroupRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
174 
179  inline CreateUserHierarchyGroupRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
180 
181  private:
182 
183  Aws::String m_name;
184  bool m_nameHasBeenSet;
185 
186  Aws::String m_parentGroupId;
187  bool m_parentGroupIdHasBeenSet;
188 
189  Aws::String m_instanceId;
190  bool m_instanceIdHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace Connect
195 } // namespace Aws
Aws::Connect::Model::CreateUserHierarchyGroupRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: CreateUserHierarchyGroupRequest.h:161
Aws::Connect::Model::CreateUserHierarchyGroupRequest::WithName
CreateUserHierarchyGroupRequest & WithName(const char *value)
Definition: CreateUserHierarchyGroupRequest.h:81
Aws::Connect::Model::CreateUserHierarchyGroupRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: CreateUserHierarchyGroupRequest.h:143
Aws::Connect::Model::CreateUserHierarchyGroupRequest::CreateUserHierarchyGroupRequest
CreateUserHierarchyGroupRequest()
Aws::Connect::Model::CreateUserHierarchyGroupRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: CreateUserHierarchyGroupRequest.h:149
Aws::Connect::Model::CreateUserHierarchyGroupRequest::SetParentGroupId
void SetParentGroupId(const Aws::String &value)
Definition: CreateUserHierarchyGroupRequest.h:100
Aws::Connect::Model::CreateUserHierarchyGroupRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateUserHierarchyGroupRequest.h:57
Aws::Connect::Model::CreateUserHierarchyGroupRequest::WithParentGroupId
CreateUserHierarchyGroupRequest & WithParentGroupId(const char *value)
Definition: CreateUserHierarchyGroupRequest.h:130
Aws::Connect::Model::CreateUserHierarchyGroupRequest::WithInstanceId
CreateUserHierarchyGroupRequest & WithInstanceId(const Aws::String &value)
Definition: CreateUserHierarchyGroupRequest.h:167
Aws::Connect::Model::CreateUserHierarchyGroupRequest::ParentGroupIdHasBeenSet
bool ParentGroupIdHasBeenSet() const
Definition: CreateUserHierarchyGroupRequest.h:94
Aws::Connect::Model::CreateUserHierarchyGroupRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: CreateUserHierarchyGroupRequest.h:155
Aws::Connect::Model::CreateUserHierarchyGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateUserHierarchyGroupRequest.h:30
Aws::Connect::Model::CreateUserHierarchyGroupRequest::WithName
CreateUserHierarchyGroupRequest & WithName(Aws::String &&value)
Definition: CreateUserHierarchyGroupRequest.h:75
Aws::Connect::Model::CreateUserHierarchyGroupRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateUserHierarchyGroupRequest.h:51
Aws::Connect::Model::CreateUserHierarchyGroupRequest::SetParentGroupId
void SetParentGroupId(Aws::String &&value)
Definition: CreateUserHierarchyGroupRequest.h:106
Aws::Connect::Model::CreateUserHierarchyGroupRequest::WithInstanceId
CreateUserHierarchyGroupRequest & WithInstanceId(Aws::String &&value)
Definition: CreateUserHierarchyGroupRequest.h:173
Aws::Connect::Model::CreateUserHierarchyGroupRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: CreateUserHierarchyGroupRequest.h:137
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::CreateUserHierarchyGroupRequest::WithParentGroupId
CreateUserHierarchyGroupRequest & WithParentGroupId(const Aws::String &value)
Definition: CreateUserHierarchyGroupRequest.h:118
Aws::Connect::Model::CreateUserHierarchyGroupRequest::GetName
const Aws::String & GetName() const
Definition: CreateUserHierarchyGroupRequest.h:39
Aws::Connect::Model::CreateUserHierarchyGroupRequest::GetParentGroupId
const Aws::String & GetParentGroupId() const
Definition: CreateUserHierarchyGroupRequest.h:88
AWSString.h
Aws::Connect::Model::CreateUserHierarchyGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::CreateUserHierarchyGroupRequest::WithInstanceId
CreateUserHierarchyGroupRequest & WithInstanceId(const char *value)
Definition: CreateUserHierarchyGroupRequest.h:179
Aws::Connect::Model::CreateUserHierarchyGroupRequest::SetParentGroupId
void SetParentGroupId(const char *value)
Definition: CreateUserHierarchyGroupRequest.h:112
Aws::Connect::Model::CreateUserHierarchyGroupRequest::SetName
void SetName(const char *value)
Definition: CreateUserHierarchyGroupRequest.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::CreateUserHierarchyGroupRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateUserHierarchyGroupRequest.h:45
Aws::Connect::Model::CreateUserHierarchyGroupRequest::WithName
CreateUserHierarchyGroupRequest & WithName(const Aws::String &value)
Definition: CreateUserHierarchyGroupRequest.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
Aws::Connect::Model::CreateUserHierarchyGroupRequest::WithParentGroupId
CreateUserHierarchyGroupRequest & WithParentGroupId(Aws::String &&value)
Definition: CreateUserHierarchyGroupRequest.h:124
ConnectRequest.h
Aws::Connect::Model::CreateUserHierarchyGroupRequest
Definition: CreateUserHierarchyGroupRequest.h:22