AWS SDK for C++  1.9.158
AWS SDK for C++
UpdateUserHierarchyStructureRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Connect
16 {
17 namespace 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 "UpdateUserHierarchyStructure"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const HierarchyStructureUpdate& GetHierarchyStructure() const{ return m_hierarchyStructure; }
40 
44  inline bool HierarchyStructureHasBeenSet() const { return m_hierarchyStructureHasBeenSet; }
45 
49  inline void SetHierarchyStructure(const HierarchyStructureUpdate& value) { m_hierarchyStructureHasBeenSet = true; m_hierarchyStructure = value; }
50 
54  inline void SetHierarchyStructure(HierarchyStructureUpdate&& value) { m_hierarchyStructureHasBeenSet = true; m_hierarchyStructure = std::move(value); }
55 
59  inline UpdateUserHierarchyStructureRequest& WithHierarchyStructure(const HierarchyStructureUpdate& value) { SetHierarchyStructure(value); return *this;}
60 
64  inline UpdateUserHierarchyStructureRequest& WithHierarchyStructure(HierarchyStructureUpdate&& value) { SetHierarchyStructure(std::move(value)); return *this;}
65 
66 
71  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
72 
77  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
78 
83  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
84 
89  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
90 
95  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
96 
101  inline UpdateUserHierarchyStructureRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
102 
107  inline UpdateUserHierarchyStructureRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
108 
113  inline UpdateUserHierarchyStructureRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
114 
115  private:
116 
117  HierarchyStructureUpdate m_hierarchyStructure;
118  bool m_hierarchyStructureHasBeenSet;
119 
120  Aws::String m_instanceId;
121  bool m_instanceIdHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace Connect
126 } // namespace Aws
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::WithHierarchyStructure
UpdateUserHierarchyStructureRequest & WithHierarchyStructure(const HierarchyStructureUpdate &value)
Definition: UpdateUserHierarchyStructureRequest.h:59
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: UpdateUserHierarchyStructureRequest.h:71
Aws::Connect::Model::UpdateUserHierarchyStructureRequest
Definition: UpdateUserHierarchyStructureRequest.h:23
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::SetHierarchyStructure
void SetHierarchyStructure(const HierarchyStructureUpdate &value)
Definition: UpdateUserHierarchyStructureRequest.h:49
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::WithInstanceId
UpdateUserHierarchyStructureRequest & WithInstanceId(Aws::String &&value)
Definition: UpdateUserHierarchyStructureRequest.h:107
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
HierarchyStructureUpdate.h
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::GetHierarchyStructure
const HierarchyStructureUpdate & GetHierarchyStructure() const
Definition: UpdateUserHierarchyStructureRequest.h:39
AWSString.h
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: UpdateUserHierarchyStructureRequest.h:95
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: UpdateUserHierarchyStructureRequest.h:83
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateUserHierarchyStructureRequest.h:31
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: UpdateUserHierarchyStructureRequest.h:77
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::WithInstanceId
UpdateUserHierarchyStructureRequest & WithInstanceId(const char *value)
Definition: UpdateUserHierarchyStructureRequest.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::WithInstanceId
UpdateUserHierarchyStructureRequest & WithInstanceId(const Aws::String &value)
Definition: UpdateUserHierarchyStructureRequest.h:101
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::UpdateUserHierarchyStructureRequest
UpdateUserHierarchyStructureRequest()
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::WithHierarchyStructure
UpdateUserHierarchyStructureRequest & WithHierarchyStructure(HierarchyStructureUpdate &&value)
Definition: UpdateUserHierarchyStructureRequest.h:64
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::HierarchyStructureHasBeenSet
bool HierarchyStructureHasBeenSet() const
Definition: UpdateUserHierarchyStructureRequest.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: UpdateUserHierarchyStructureRequest.h:89
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
ConnectRequest.h
Aws::Connect::Model::UpdateUserHierarchyStructureRequest::SetHierarchyStructure
void SetHierarchyStructure(HierarchyStructureUpdate &&value)
Definition: UpdateUserHierarchyStructureRequest.h:54
Aws::Connect::Model::HierarchyStructureUpdate
Definition: HierarchyStructureUpdate.h:33