/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace WorkMail { namespace Model { /** */ class PutMailboxPermissionsRequest : public WorkMailRequest { public: AWS_WORKMAIL_API PutMailboxPermissionsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutMailboxPermissions"; } AWS_WORKMAIL_API Aws::String SerializePayload() const override; AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the organization under which the user, group, or resource * exists.

*/ inline const Aws::String& GetOrganizationId() const{ return m_organizationId; } /** *

The identifier of the organization under which the user, group, or resource * exists.

*/ inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; } /** *

The identifier of the organization under which the user, group, or resource * exists.

*/ inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; } /** *

The identifier of the organization under which the user, group, or resource * exists.

*/ inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); } /** *

The identifier of the organization under which the user, group, or resource * exists.

*/ inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); } /** *

The identifier of the organization under which the user, group, or resource * exists.

*/ inline PutMailboxPermissionsRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;} /** *

The identifier of the organization under which the user, group, or resource * exists.

*/ inline PutMailboxPermissionsRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;} /** *

The identifier of the organization under which the user, group, or resource * exists.

*/ inline PutMailboxPermissionsRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;} /** *

The identifier of the user, group, or resource for which to update mailbox * permissions.

*/ inline const Aws::String& GetEntityId() const{ return m_entityId; } /** *

The identifier of the user, group, or resource for which to update mailbox * permissions.

*/ inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; } /** *

The identifier of the user, group, or resource for which to update mailbox * permissions.

*/ inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; } /** *

The identifier of the user, group, or resource for which to update mailbox * permissions.

*/ inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); } /** *

The identifier of the user, group, or resource for which to update mailbox * permissions.

*/ inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); } /** *

The identifier of the user, group, or resource for which to update mailbox * permissions.

*/ inline PutMailboxPermissionsRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;} /** *

The identifier of the user, group, or resource for which to update mailbox * permissions.

*/ inline PutMailboxPermissionsRequest& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;} /** *

The identifier of the user, group, or resource for which to update mailbox * permissions.

*/ inline PutMailboxPermissionsRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;} /** *

The identifier of the user, group, or resource to which to grant the * permissions.

*/ inline const Aws::String& GetGranteeId() const{ return m_granteeId; } /** *

The identifier of the user, group, or resource to which to grant the * permissions.

*/ inline bool GranteeIdHasBeenSet() const { return m_granteeIdHasBeenSet; } /** *

The identifier of the user, group, or resource to which to grant the * permissions.

*/ inline void SetGranteeId(const Aws::String& value) { m_granteeIdHasBeenSet = true; m_granteeId = value; } /** *

The identifier of the user, group, or resource to which to grant the * permissions.

*/ inline void SetGranteeId(Aws::String&& value) { m_granteeIdHasBeenSet = true; m_granteeId = std::move(value); } /** *

The identifier of the user, group, or resource to which to grant the * permissions.

*/ inline void SetGranteeId(const char* value) { m_granteeIdHasBeenSet = true; m_granteeId.assign(value); } /** *

The identifier of the user, group, or resource to which to grant the * permissions.

*/ inline PutMailboxPermissionsRequest& WithGranteeId(const Aws::String& value) { SetGranteeId(value); return *this;} /** *

The identifier of the user, group, or resource to which to grant the * permissions.

*/ inline PutMailboxPermissionsRequest& WithGranteeId(Aws::String&& value) { SetGranteeId(std::move(value)); return *this;} /** *

The identifier of the user, group, or resource to which to grant the * permissions.

*/ inline PutMailboxPermissionsRequest& WithGranteeId(const char* value) { SetGranteeId(value); return *this;} /** *

The permissions granted to the grantee. SEND_AS allows the grantee to send * email as the owner of the mailbox (the grantee is not mentioned on these * emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner * of the mailbox (the grantee is not mentioned as the physical sender of these * emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective * of other folder-level permissions set on the mailbox.

*/ inline const Aws::Vector& GetPermissionValues() const{ return m_permissionValues; } /** *

The permissions granted to the grantee. SEND_AS allows the grantee to send * email as the owner of the mailbox (the grantee is not mentioned on these * emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner * of the mailbox (the grantee is not mentioned as the physical sender of these * emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective * of other folder-level permissions set on the mailbox.

*/ inline bool PermissionValuesHasBeenSet() const { return m_permissionValuesHasBeenSet; } /** *

The permissions granted to the grantee. SEND_AS allows the grantee to send * email as the owner of the mailbox (the grantee is not mentioned on these * emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner * of the mailbox (the grantee is not mentioned as the physical sender of these * emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective * of other folder-level permissions set on the mailbox.

*/ inline void SetPermissionValues(const Aws::Vector& value) { m_permissionValuesHasBeenSet = true; m_permissionValues = value; } /** *

The permissions granted to the grantee. SEND_AS allows the grantee to send * email as the owner of the mailbox (the grantee is not mentioned on these * emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner * of the mailbox (the grantee is not mentioned as the physical sender of these * emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective * of other folder-level permissions set on the mailbox.

*/ inline void SetPermissionValues(Aws::Vector&& value) { m_permissionValuesHasBeenSet = true; m_permissionValues = std::move(value); } /** *

The permissions granted to the grantee. SEND_AS allows the grantee to send * email as the owner of the mailbox (the grantee is not mentioned on these * emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner * of the mailbox (the grantee is not mentioned as the physical sender of these * emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective * of other folder-level permissions set on the mailbox.

*/ inline PutMailboxPermissionsRequest& WithPermissionValues(const Aws::Vector& value) { SetPermissionValues(value); return *this;} /** *

The permissions granted to the grantee. SEND_AS allows the grantee to send * email as the owner of the mailbox (the grantee is not mentioned on these * emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner * of the mailbox (the grantee is not mentioned as the physical sender of these * emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective * of other folder-level permissions set on the mailbox.

*/ inline PutMailboxPermissionsRequest& WithPermissionValues(Aws::Vector&& value) { SetPermissionValues(std::move(value)); return *this;} /** *

The permissions granted to the grantee. SEND_AS allows the grantee to send * email as the owner of the mailbox (the grantee is not mentioned on these * emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner * of the mailbox (the grantee is not mentioned as the physical sender of these * emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective * of other folder-level permissions set on the mailbox.

*/ inline PutMailboxPermissionsRequest& AddPermissionValues(const PermissionType& value) { m_permissionValuesHasBeenSet = true; m_permissionValues.push_back(value); return *this; } /** *

The permissions granted to the grantee. SEND_AS allows the grantee to send * email as the owner of the mailbox (the grantee is not mentioned on these * emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner * of the mailbox (the grantee is not mentioned as the physical sender of these * emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective * of other folder-level permissions set on the mailbox.

*/ inline PutMailboxPermissionsRequest& AddPermissionValues(PermissionType&& value) { m_permissionValuesHasBeenSet = true; m_permissionValues.push_back(std::move(value)); return *this; } private: Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_entityId; bool m_entityIdHasBeenSet = false; Aws::String m_granteeId; bool m_granteeIdHasBeenSet = false; Aws::Vector m_permissionValues; bool m_permissionValuesHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws