AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
PutGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/GroupMembers.h>
11#include <aws/qbusiness/model/MembershipType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QBusiness {
17namespace Model {
18
22 public:
23 AWS_QBUSINESS_API PutGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutGroup"; }
30
31 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
39 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
40 template <typename ApplicationIdT = Aws::String>
42 m_applicationIdHasBeenSet = true;
43 m_applicationId = std::forward<ApplicationIdT>(value);
44 }
45 template <typename ApplicationIdT = Aws::String>
47 SetApplicationId(std::forward<ApplicationIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetIndexId() const { return m_indexId; }
58 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
59 template <typename IndexIdT = Aws::String>
60 void SetIndexId(IndexIdT&& value) {
61 m_indexIdHasBeenSet = true;
62 m_indexId = std::forward<IndexIdT>(value);
63 }
64 template <typename IndexIdT = Aws::String>
66 SetIndexId(std::forward<IndexIdT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetGroupName() const { return m_groupName; }
78 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
79 template <typename GroupNameT = Aws::String>
80 void SetGroupName(GroupNameT&& value) {
81 m_groupNameHasBeenSet = true;
82 m_groupName = std::forward<GroupNameT>(value);
83 }
84 template <typename GroupNameT = Aws::String>
86 SetGroupName(std::forward<GroupNameT>(value));
87 return *this;
88 }
90
92
101 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
102 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
103 template <typename DataSourceIdT = Aws::String>
105 m_dataSourceIdHasBeenSet = true;
106 m_dataSourceId = std::forward<DataSourceIdT>(value);
107 }
108 template <typename DataSourceIdT = Aws::String>
110 SetDataSourceId(std::forward<DataSourceIdT>(value));
111 return *this;
112 }
114
116
119 inline MembershipType GetType() const { return m_type; }
120 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
121 inline void SetType(MembershipType value) {
122 m_typeHasBeenSet = true;
123 m_type = value;
124 }
126 SetType(value);
127 return *this;
128 }
130
132
133 inline const GroupMembers& GetGroupMembers() const { return m_groupMembers; }
134 inline bool GroupMembersHasBeenSet() const { return m_groupMembersHasBeenSet; }
135 template <typename GroupMembersT = GroupMembers>
137 m_groupMembersHasBeenSet = true;
138 m_groupMembers = std::forward<GroupMembersT>(value);
139 }
140 template <typename GroupMembersT = GroupMembers>
142 SetGroupMembers(std::forward<GroupMembersT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
153 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
154 template <typename RoleArnT = Aws::String>
155 void SetRoleArn(RoleArnT&& value) {
156 m_roleArnHasBeenSet = true;
157 m_roleArn = std::forward<RoleArnT>(value);
158 }
159 template <typename RoleArnT = Aws::String>
161 SetRoleArn(std::forward<RoleArnT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_applicationId;
167
168 Aws::String m_indexId;
169
170 Aws::String m_groupName;
171
172 Aws::String m_dataSourceId;
173
175
176 GroupMembers m_groupMembers;
177
178 Aws::String m_roleArn;
179 bool m_applicationIdHasBeenSet = false;
180 bool m_indexIdHasBeenSet = false;
181 bool m_groupNameHasBeenSet = false;
182 bool m_dataSourceIdHasBeenSet = false;
183 bool m_typeHasBeenSet = false;
184 bool m_groupMembersHasBeenSet = false;
185 bool m_roleArnHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace QBusiness
190} // namespace Aws
PutGroupRequest & WithDataSourceId(DataSourceIdT &&value)
void SetDataSourceId(DataSourceIdT &&value)
void SetGroupName(GroupNameT &&value)
void SetGroupMembers(GroupMembersT &&value)
PutGroupRequest & WithIndexId(IndexIdT &&value)
const Aws::String & GetRoleArn() const
PutGroupRequest & WithGroupMembers(GroupMembersT &&value)
const Aws::String & GetGroupName() const
PutGroupRequest & WithRoleArn(RoleArnT &&value)
const GroupMembers & GetGroupMembers() const
PutGroupRequest & WithType(MembershipType value)
AWS_QBUSINESS_API PutGroupRequest()=default
PutGroupRequest & WithGroupName(GroupNameT &&value)
const Aws::String & GetIndexId() const
const Aws::String & GetDataSourceId() const
void SetApplicationId(ApplicationIdT &&value)
PutGroupRequest & WithApplicationId(ApplicationIdT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::String & GetApplicationId() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String