AWS SDK for C++  1.9.104
AWS SDK for C++
PutMailboxPermissionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WorkMail
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "PutMailboxPermissions"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
44 
49  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
50 
55  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
56 
61  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
62 
67  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
68 
73  inline PutMailboxPermissionsRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
74 
79  inline PutMailboxPermissionsRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
80 
85  inline PutMailboxPermissionsRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
86 
87 
92  inline const Aws::String& GetEntityId() const{ return m_entityId; }
93 
98  inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
99 
104  inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; }
105 
110  inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); }
111 
116  inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); }
117 
122  inline PutMailboxPermissionsRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
123 
128  inline PutMailboxPermissionsRequest& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
129 
134  inline PutMailboxPermissionsRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;}
135 
136 
141  inline const Aws::String& GetGranteeId() const{ return m_granteeId; }
142 
147  inline bool GranteeIdHasBeenSet() const { return m_granteeIdHasBeenSet; }
148 
153  inline void SetGranteeId(const Aws::String& value) { m_granteeIdHasBeenSet = true; m_granteeId = value; }
154 
159  inline void SetGranteeId(Aws::String&& value) { m_granteeIdHasBeenSet = true; m_granteeId = std::move(value); }
160 
165  inline void SetGranteeId(const char* value) { m_granteeIdHasBeenSet = true; m_granteeId.assign(value); }
166 
171  inline PutMailboxPermissionsRequest& WithGranteeId(const Aws::String& value) { SetGranteeId(value); return *this;}
172 
177  inline PutMailboxPermissionsRequest& WithGranteeId(Aws::String&& value) { SetGranteeId(std::move(value)); return *this;}
178 
183  inline PutMailboxPermissionsRequest& WithGranteeId(const char* value) { SetGranteeId(value); return *this;}
184 
185 
194  inline const Aws::Vector<PermissionType>& GetPermissionValues() const{ return m_permissionValues; }
195 
204  inline bool PermissionValuesHasBeenSet() const { return m_permissionValuesHasBeenSet; }
205 
214  inline void SetPermissionValues(const Aws::Vector<PermissionType>& value) { m_permissionValuesHasBeenSet = true; m_permissionValues = value; }
215 
224  inline void SetPermissionValues(Aws::Vector<PermissionType>&& value) { m_permissionValuesHasBeenSet = true; m_permissionValues = std::move(value); }
225 
234  inline PutMailboxPermissionsRequest& WithPermissionValues(const Aws::Vector<PermissionType>& value) { SetPermissionValues(value); return *this;}
235 
244  inline PutMailboxPermissionsRequest& WithPermissionValues(Aws::Vector<PermissionType>&& value) { SetPermissionValues(std::move(value)); return *this;}
245 
254  inline PutMailboxPermissionsRequest& AddPermissionValues(const PermissionType& value) { m_permissionValuesHasBeenSet = true; m_permissionValues.push_back(value); return *this; }
255 
264  inline PutMailboxPermissionsRequest& AddPermissionValues(PermissionType&& value) { m_permissionValuesHasBeenSet = true; m_permissionValues.push_back(std::move(value)); return *this; }
265 
266  private:
267 
268  Aws::String m_organizationId;
269  bool m_organizationIdHasBeenSet;
270 
271  Aws::String m_entityId;
272  bool m_entityIdHasBeenSet;
273 
274  Aws::String m_granteeId;
275  bool m_granteeIdHasBeenSet;
276 
277  Aws::Vector<PermissionType> m_permissionValues;
278  bool m_permissionValuesHasBeenSet;
279  };
280 
281 } // namespace Model
282 } // namespace WorkMail
283 } // namespace Aws
Aws::WorkMail::Model::PutMailboxPermissionsRequest
Definition: PutMailboxPermissionsRequest.h:24
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SetPermissionValues
void SetPermissionValues(const Aws::Vector< PermissionType > &value)
Definition: PutMailboxPermissionsRequest.h:214
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SetEntityId
void SetEntityId(const Aws::String &value)
Definition: PutMailboxPermissionsRequest.h:104
Aws::WorkMail::Model::PutMailboxPermissionsRequest::WithGranteeId
PutMailboxPermissionsRequest & WithGranteeId(const Aws::String &value)
Definition: PutMailboxPermissionsRequest.h:171
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::PutMailboxPermissionsRequest::AddPermissionValues
PutMailboxPermissionsRequest & AddPermissionValues(PermissionType &&value)
Definition: PutMailboxPermissionsRequest.h:264
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SetEntityId
void SetEntityId(Aws::String &&value)
Definition: PutMailboxPermissionsRequest.h:110
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SetEntityId
void SetEntityId(const char *value)
Definition: PutMailboxPermissionsRequest.h:116
Aws::WorkMail::Model::PutMailboxPermissionsRequest::WithOrganizationId
PutMailboxPermissionsRequest & WithOrganizationId(Aws::String &&value)
Definition: PutMailboxPermissionsRequest.h:79
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::PutMailboxPermissionsRequest::WithGranteeId
PutMailboxPermissionsRequest & WithGranteeId(const char *value)
Definition: PutMailboxPermissionsRequest.h:183
Aws::WorkMail::Model::PutMailboxPermissionsRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: PutMailboxPermissionsRequest.h:49
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
WorkMail_EXPORTS.h
AWSVector.h
WorkMailRequest.h
Aws::WorkMail::Model::PutMailboxPermissionsRequest::WithEntityId
PutMailboxPermissionsRequest & WithEntityId(const Aws::String &value)
Definition: PutMailboxPermissionsRequest.h:122
PermissionType.h
Aws::WorkMail::Model::PutMailboxPermissionsRequest::PutMailboxPermissionsRequest
PutMailboxPermissionsRequest()
Aws::WorkMail::Model::PutMailboxPermissionsRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: PutMailboxPermissionsRequest.h:43
Aws::WorkMail::Model::PutMailboxPermissionsRequest::WithEntityId
PutMailboxPermissionsRequest & WithEntityId(const char *value)
Definition: PutMailboxPermissionsRequest.h:134
Aws::WorkMail::Model::PutMailboxPermissionsRequest::AddPermissionValues
PutMailboxPermissionsRequest & AddPermissionValues(const PermissionType &value)
Definition: PutMailboxPermissionsRequest.h:254
Aws::WorkMail::Model::PutMailboxPermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutMailboxPermissionsRequest.h:32
Aws::WorkMail::Model::PutMailboxPermissionsRequest::GetGranteeId
const Aws::String & GetGranteeId() const
Definition: PutMailboxPermissionsRequest.h:141
Aws::WorkMail::Model::PutMailboxPermissionsRequest::WithPermissionValues
PutMailboxPermissionsRequest & WithPermissionValues(const Aws::Vector< PermissionType > &value)
Definition: PutMailboxPermissionsRequest.h:234
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SetGranteeId
void SetGranteeId(const char *value)
Definition: PutMailboxPermissionsRequest.h:165
Aws::WorkMail::Model::PutMailboxPermissionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: PutMailboxPermissionsRequest.h:55
Aws::WorkMail::Model::PutMailboxPermissionsRequest::WithGranteeId
PutMailboxPermissionsRequest & WithGranteeId(Aws::String &&value)
Definition: PutMailboxPermissionsRequest.h:177
AWSString.h
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::PutMailboxPermissionsRequest::WithEntityId
PutMailboxPermissionsRequest & WithEntityId(Aws::String &&value)
Definition: PutMailboxPermissionsRequest.h:128
Aws::WorkMail::Model::PutMailboxPermissionsRequest::WithOrganizationId
PutMailboxPermissionsRequest & WithOrganizationId(const Aws::String &value)
Definition: PutMailboxPermissionsRequest.h:73
Aws::WorkMail::Model::PutMailboxPermissionsRequest::EntityIdHasBeenSet
bool EntityIdHasBeenSet() const
Definition: PutMailboxPermissionsRequest.h:98
Aws::WorkMail::Model::PutMailboxPermissionsRequest::GetEntityId
const Aws::String & GetEntityId() const
Definition: PutMailboxPermissionsRequest.h:92
Aws::WorkMail::Model::PutMailboxPermissionsRequest::GetPermissionValues
const Aws::Vector< PermissionType > & GetPermissionValues() const
Definition: PutMailboxPermissionsRequest.h:194
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SetPermissionValues
void SetPermissionValues(Aws::Vector< PermissionType > &&value)
Definition: PutMailboxPermissionsRequest.h:224
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: PutMailboxPermissionsRequest.h:61
Aws::WorkMail::Model::PutMailboxPermissionsRequest::WithOrganizationId
PutMailboxPermissionsRequest & WithOrganizationId(const char *value)
Definition: PutMailboxPermissionsRequest.h:85
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SetGranteeId
void SetGranteeId(const Aws::String &value)
Definition: PutMailboxPermissionsRequest.h:153
Aws::WorkMail::Model::PermissionType
PermissionType
Definition: PermissionType.h:17
Aws
Definition: AccessManagementClient.h:15
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::PutMailboxPermissionsRequest::PermissionValuesHasBeenSet
bool PermissionValuesHasBeenSet() const
Definition: PutMailboxPermissionsRequest.h:204
Aws::WorkMail::Model::PutMailboxPermissionsRequest::WithPermissionValues
PutMailboxPermissionsRequest & WithPermissionValues(Aws::Vector< PermissionType > &&value)
Definition: PutMailboxPermissionsRequest.h:244
Aws::WorkMail::Model::PutMailboxPermissionsRequest::GranteeIdHasBeenSet
bool GranteeIdHasBeenSet() const
Definition: PutMailboxPermissionsRequest.h:147
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: PutMailboxPermissionsRequest.h:67
Aws::WorkMail::Model::PutMailboxPermissionsRequest::SetGranteeId
void SetGranteeId(Aws::String &&value)
Definition: PutMailboxPermissionsRequest.h:159