AWS SDK for C++  1.9.160
AWS SDK for C++
UpdateUserHierarchyRequest.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 "UpdateUserHierarchy"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetHierarchyGroupId() const{ return m_hierarchyGroupId; }
39 
43  inline bool HierarchyGroupIdHasBeenSet() const { return m_hierarchyGroupIdHasBeenSet; }
44 
48  inline void SetHierarchyGroupId(const Aws::String& value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId = value; }
49 
53  inline void SetHierarchyGroupId(Aws::String&& value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId = std::move(value); }
54 
58  inline void SetHierarchyGroupId(const char* value) { m_hierarchyGroupIdHasBeenSet = true; m_hierarchyGroupId.assign(value); }
59 
63  inline UpdateUserHierarchyRequest& WithHierarchyGroupId(const Aws::String& value) { SetHierarchyGroupId(value); return *this;}
64 
68  inline UpdateUserHierarchyRequest& WithHierarchyGroupId(Aws::String&& value) { SetHierarchyGroupId(std::move(value)); return *this;}
69 
73  inline UpdateUserHierarchyRequest& WithHierarchyGroupId(const char* value) { SetHierarchyGroupId(value); return *this;}
74 
75 
79  inline const Aws::String& GetUserId() const{ return m_userId; }
80 
84  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
85 
89  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
90 
94  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
95 
99  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
100 
104  inline UpdateUserHierarchyRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
105 
109  inline UpdateUserHierarchyRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
110 
114  inline UpdateUserHierarchyRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
115 
116 
121  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
122 
127  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
128 
133  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
134 
139  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
140 
145  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
146 
151  inline UpdateUserHierarchyRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
152 
157  inline UpdateUserHierarchyRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
158 
163  inline UpdateUserHierarchyRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
164 
165  private:
166 
167  Aws::String m_hierarchyGroupId;
168  bool m_hierarchyGroupIdHasBeenSet;
169 
170  Aws::String m_userId;
171  bool m_userIdHasBeenSet;
172 
173  Aws::String m_instanceId;
174  bool m_instanceIdHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace Connect
179 } // namespace Aws
Aws::Connect::Model::UpdateUserHierarchyRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: UpdateUserHierarchyRequest.h:145
Aws::Connect::Model::UpdateUserHierarchyRequest::WithHierarchyGroupId
UpdateUserHierarchyRequest & WithHierarchyGroupId(Aws::String &&value)
Definition: UpdateUserHierarchyRequest.h:68
Aws::Connect::Model::UpdateUserHierarchyRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: UpdateUserHierarchyRequest.h:139
Aws::Connect::Model::UpdateUserHierarchyRequest::SetHierarchyGroupId
void SetHierarchyGroupId(Aws::String &&value)
Definition: UpdateUserHierarchyRequest.h:53
Aws::Connect::Model::UpdateUserHierarchyRequest::UpdateUserHierarchyRequest
UpdateUserHierarchyRequest()
Aws::Connect::Model::UpdateUserHierarchyRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: UpdateUserHierarchyRequest.h:133
Aws::Connect::Model::UpdateUserHierarchyRequest::WithUserId
UpdateUserHierarchyRequest & WithUserId(Aws::String &&value)
Definition: UpdateUserHierarchyRequest.h:109
Aws::Connect::Model::UpdateUserHierarchyRequest::WithInstanceId
UpdateUserHierarchyRequest & WithInstanceId(const char *value)
Definition: UpdateUserHierarchyRequest.h:163
Aws::Connect::Model::UpdateUserHierarchyRequest::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: UpdateUserHierarchyRequest.h:84
Aws::Connect::Model::UpdateUserHierarchyRequest::WithHierarchyGroupId
UpdateUserHierarchyRequest & WithHierarchyGroupId(const Aws::String &value)
Definition: UpdateUserHierarchyRequest.h:63
Aws::Connect::Model::UpdateUserHierarchyRequest::GetHierarchyGroupId
const Aws::String & GetHierarchyGroupId() const
Definition: UpdateUserHierarchyRequest.h:38
Aws::Connect::Model::UpdateUserHierarchyRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: UpdateUserHierarchyRequest.h:127
Aws::Connect::Model::UpdateUserHierarchyRequest::SetUserId
void SetUserId(const Aws::String &value)
Definition: UpdateUserHierarchyRequest.h:89
Aws::Connect::Model::UpdateUserHierarchyRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: UpdateUserHierarchyRequest.h:121
Aws::Connect::Model::UpdateUserHierarchyRequest::SetHierarchyGroupId
void SetHierarchyGroupId(const char *value)
Definition: UpdateUserHierarchyRequest.h:58
Aws::Connect::Model::UpdateUserHierarchyRequest::HierarchyGroupIdHasBeenSet
bool HierarchyGroupIdHasBeenSet() const
Definition: UpdateUserHierarchyRequest.h:43
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::UpdateUserHierarchyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateUserHierarchyRequest.h:30
Aws::Connect::Model::UpdateUserHierarchyRequest::SetHierarchyGroupId
void SetHierarchyGroupId(const Aws::String &value)
Definition: UpdateUserHierarchyRequest.h:48
AWSString.h
Aws::Connect::Model::UpdateUserHierarchyRequest::SetUserId
void SetUserId(Aws::String &&value)
Definition: UpdateUserHierarchyRequest.h:94
Aws::Connect::Model::UpdateUserHierarchyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::UpdateUserHierarchyRequest::WithInstanceId
UpdateUserHierarchyRequest & WithInstanceId(Aws::String &&value)
Definition: UpdateUserHierarchyRequest.h:157
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::UpdateUserHierarchyRequest::WithHierarchyGroupId
UpdateUserHierarchyRequest & WithHierarchyGroupId(const char *value)
Definition: UpdateUserHierarchyRequest.h:73
Aws::Connect::Model::UpdateUserHierarchyRequest
Definition: UpdateUserHierarchyRequest.h:22
Aws::Connect::Model::UpdateUserHierarchyRequest::SetUserId
void SetUserId(const char *value)
Definition: UpdateUserHierarchyRequest.h:99
Aws::Connect::Model::UpdateUserHierarchyRequest::WithInstanceId
UpdateUserHierarchyRequest & WithInstanceId(const Aws::String &value)
Definition: UpdateUserHierarchyRequest.h:151
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::UpdateUserHierarchyRequest::WithUserId
UpdateUserHierarchyRequest & WithUserId(const char *value)
Definition: UpdateUserHierarchyRequest.h:114
Aws::Connect::Model::UpdateUserHierarchyRequest::GetUserId
const Aws::String & GetUserId() const
Definition: UpdateUserHierarchyRequest.h:79
Connect_EXPORTS.h
Aws::Connect::Model::UpdateUserHierarchyRequest::WithUserId
UpdateUserHierarchyRequest & WithUserId(const Aws::String &value)
Definition: UpdateUserHierarchyRequest.h:104
ConnectRequest.h