AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutGroupRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qbusiness/model/MembershipType.h>
11#include <aws/qbusiness/model/GroupMembers.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QBusiness
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QBUSINESS_API PutGroupRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutGroup"; }
33
34 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
43 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
44 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
45 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
46 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
47 inline PutGroupRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
48 inline PutGroupRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
49 inline PutGroupRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
51
53
57 inline const Aws::String& GetIndexId() const{ return m_indexId; }
58 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
59 inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
60 inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
61 inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
62 inline PutGroupRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
63 inline PutGroupRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
64 inline PutGroupRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
66
68
73 inline const Aws::String& GetGroupName() const{ return m_groupName; }
74 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
75 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
76 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
77 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
78 inline PutGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
79 inline PutGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
80 inline PutGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
82
84
93 inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
94 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
95 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
96 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
97 inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
98 inline PutGroupRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
99 inline PutGroupRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
100 inline PutGroupRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
102
104
107 inline const MembershipType& GetType() const{ return m_type; }
108 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
109 inline void SetType(const MembershipType& value) { m_typeHasBeenSet = true; m_type = value; }
110 inline void SetType(MembershipType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
111 inline PutGroupRequest& WithType(const MembershipType& value) { SetType(value); return *this;}
112 inline PutGroupRequest& WithType(MembershipType&& value) { SetType(std::move(value)); return *this;}
114
116
117 inline const GroupMembers& GetGroupMembers() const{ return m_groupMembers; }
118 inline bool GroupMembersHasBeenSet() const { return m_groupMembersHasBeenSet; }
119 inline void SetGroupMembers(const GroupMembers& value) { m_groupMembersHasBeenSet = true; m_groupMembers = value; }
120 inline void SetGroupMembers(GroupMembers&& value) { m_groupMembersHasBeenSet = true; m_groupMembers = std::move(value); }
121 inline PutGroupRequest& WithGroupMembers(const GroupMembers& value) { SetGroupMembers(value); return *this;}
122 inline PutGroupRequest& WithGroupMembers(GroupMembers&& value) { SetGroupMembers(std::move(value)); return *this;}
124 private:
125
126 Aws::String m_applicationId;
127 bool m_applicationIdHasBeenSet = false;
128
129 Aws::String m_indexId;
130 bool m_indexIdHasBeenSet = false;
131
132 Aws::String m_groupName;
133 bool m_groupNameHasBeenSet = false;
134
135 Aws::String m_dataSourceId;
136 bool m_dataSourceIdHasBeenSet = false;
137
138 MembershipType m_type;
139 bool m_typeHasBeenSet = false;
140
141 GroupMembers m_groupMembers;
142 bool m_groupMembersHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace QBusiness
147} // namespace Aws
void SetGroupMembers(const GroupMembers &value)
PutGroupRequest & WithType(MembershipType &&value)
void SetIndexId(const Aws::String &value)
void SetGroupName(const Aws::String &value)
PutGroupRequest & WithGroupName(const char *value)
const Aws::String & GetGroupName() const
const GroupMembers & GetGroupMembers() const
void SetDataSourceId(const char *value)
PutGroupRequest & WithGroupMembers(const GroupMembers &value)
void SetType(MembershipType &&value)
PutGroupRequest & WithApplicationId(const Aws::String &value)
PutGroupRequest & WithDataSourceId(const Aws::String &value)
PutGroupRequest & WithIndexId(const Aws::String &value)
void SetApplicationId(const Aws::String &value)
const Aws::String & GetIndexId() const
PutGroupRequest & WithGroupMembers(GroupMembers &&value)
PutGroupRequest & WithDataSourceId(const char *value)
PutGroupRequest & WithDataSourceId(Aws::String &&value)
PutGroupRequest & WithIndexId(Aws::String &&value)
PutGroupRequest & WithIndexId(const char *value)
const Aws::String & GetDataSourceId() const
AWS_QBUSINESS_API Aws::String SerializePayload() const override
PutGroupRequest & WithGroupName(const Aws::String &value)
void SetType(const MembershipType &value)
PutGroupRequest & WithGroupName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetGroupName(Aws::String &&value)
void SetIndexId(Aws::String &&value)
const Aws::String & GetApplicationId() const
void SetApplicationId(const char *value)
void SetApplicationId(Aws::String &&value)
PutGroupRequest & WithApplicationId(Aws::String &&value)
const MembershipType & GetType() const
void SetDataSourceId(const Aws::String &value)
void SetDataSourceId(Aws::String &&value)
PutGroupRequest & WithType(const MembershipType &value)
PutGroupRequest & WithApplicationId(const char *value)
void SetGroupMembers(GroupMembers &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String