/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace WorkMail { namespace Model { /** */ class StartMailboxExportJobRequest : public WorkMailRequest { public: AWS_WORKMAIL_API StartMailboxExportJobRequest(); // 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 "StartMailboxExportJob"; } AWS_WORKMAIL_API Aws::String SerializePayload() const override; AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The idempotency token for the client request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The idempotency token for the client request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The idempotency token for the client request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The idempotency token for the client request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The idempotency token for the client request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The idempotency token for the client request.

*/ inline StartMailboxExportJobRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The idempotency token for the client request.

*/ inline StartMailboxExportJobRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The idempotency token for the client request.

*/ inline StartMailboxExportJobRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The identifier associated with the organization.

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

The identifier associated with the organization.

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

The identifier associated with the organization.

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

The identifier associated with the organization.

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

The identifier associated with the organization.

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

The identifier associated with the organization.

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

The identifier associated with the organization.

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

The identifier associated with the organization.

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

The identifier of the user or resource associated with the mailbox.

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

The identifier of the user or resource associated with the mailbox.

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

The identifier of the user or resource associated with the mailbox.

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

The identifier of the user or resource associated with the mailbox.

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

The identifier of the user or resource associated with the mailbox.

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

The identifier of the user or resource associated with the mailbox.

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

The identifier of the user or resource associated with the mailbox.

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

The identifier of the user or resource associated with the mailbox.

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

The mailbox export job description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The mailbox export job description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The mailbox export job description.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The mailbox export job description.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The mailbox export job description.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The mailbox export job description.

*/ inline StartMailboxExportJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The mailbox export job description.

*/ inline StartMailboxExportJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The mailbox export job description.

*/ inline StartMailboxExportJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ARN of the AWS Identity and Access Management (IAM) role that grants * write permission to the S3 bucket.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of the AWS Identity and Access Management (IAM) role that grants * write permission to the S3 bucket.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of the AWS Identity and Access Management (IAM) role that grants * write permission to the S3 bucket.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of the AWS Identity and Access Management (IAM) role that grants * write permission to the S3 bucket.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of the AWS Identity and Access Management (IAM) role that grants * write permission to the S3 bucket.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of the AWS Identity and Access Management (IAM) role that grants * write permission to the S3 bucket.

*/ inline StartMailboxExportJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the AWS Identity and Access Management (IAM) role that grants * write permission to the S3 bucket.

*/ inline StartMailboxExportJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the AWS Identity and Access Management (IAM) role that grants * write permission to the S3 bucket.

*/ inline StartMailboxExportJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service * (AWS KMS) key that encrypts the exported mailbox content.

*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *

The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service * (AWS KMS) key that encrypts the exported mailbox content.

*/ inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service * (AWS KMS) key that encrypts the exported mailbox content.

*/ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } /** *

The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service * (AWS KMS) key that encrypts the exported mailbox content.

*/ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service * (AWS KMS) key that encrypts the exported mailbox content.

*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service * (AWS KMS) key that encrypts the exported mailbox content.

*/ inline StartMailboxExportJobRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service * (AWS KMS) key that encrypts the exported mailbox content.

*/ inline StartMailboxExportJobRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service * (AWS KMS) key that encrypts the exported mailbox content.

*/ inline StartMailboxExportJobRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} /** *

The name of the S3 bucket.

*/ inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; } /** *

The name of the S3 bucket.

*/ inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; } /** *

The name of the S3 bucket.

*/ inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; } /** *

The name of the S3 bucket.

*/ inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); } /** *

The name of the S3 bucket.

*/ inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); } /** *

The name of the S3 bucket.

*/ inline StartMailboxExportJobRequest& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;} /** *

The name of the S3 bucket.

*/ inline StartMailboxExportJobRequest& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;} /** *

The name of the S3 bucket.

*/ inline StartMailboxExportJobRequest& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;} /** *

The S3 bucket prefix.

*/ inline const Aws::String& GetS3Prefix() const{ return m_s3Prefix; } /** *

The S3 bucket prefix.

*/ inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; } /** *

The S3 bucket prefix.

*/ inline void SetS3Prefix(const Aws::String& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = value; } /** *

The S3 bucket prefix.

*/ inline void SetS3Prefix(Aws::String&& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = std::move(value); } /** *

The S3 bucket prefix.

*/ inline void SetS3Prefix(const char* value) { m_s3PrefixHasBeenSet = true; m_s3Prefix.assign(value); } /** *

The S3 bucket prefix.

*/ inline StartMailboxExportJobRequest& WithS3Prefix(const Aws::String& value) { SetS3Prefix(value); return *this;} /** *

The S3 bucket prefix.

*/ inline StartMailboxExportJobRequest& WithS3Prefix(Aws::String&& value) { SetS3Prefix(std::move(value)); return *this;} /** *

The S3 bucket prefix.

*/ inline StartMailboxExportJobRequest& WithS3Prefix(const char* value) { SetS3Prefix(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_entityId; bool m_entityIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; Aws::String m_s3BucketName; bool m_s3BucketNameHasBeenSet = false; Aws::String m_s3Prefix; bool m_s3PrefixHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws