/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DataExchange { namespace Model { /** *

Encryption configuration of the export job. Includes the encryption type in * addition to the AWS KMS key. The KMS key is only necessary if you chose the KMS * encryption type.

See Also:

AWS * API Reference

*/ class ExportServerSideEncryption { public: AWS_DATAEXCHANGE_API ExportServerSideEncryption(); AWS_DATAEXCHANGE_API ExportServerSideEncryption(Aws::Utils::Json::JsonView jsonValue); AWS_DATAEXCHANGE_API ExportServerSideEncryption& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the AWS KMS key you want to use to encrypt * the Amazon S3 objects. This parameter is required if you choose aws:kms as an * encryption type.

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

The Amazon Resource Name (ARN) of the AWS KMS key you want to use to encrypt * the Amazon S3 objects. This parameter is required if you choose aws:kms as an * encryption type.

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

The Amazon Resource Name (ARN) of the AWS KMS key you want to use to encrypt * the Amazon S3 objects. This parameter is required if you choose aws:kms as an * encryption type.

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

The Amazon Resource Name (ARN) of the AWS KMS key you want to use to encrypt * the Amazon S3 objects. This parameter is required if you choose aws:kms as an * encryption type.

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

The Amazon Resource Name (ARN) of the AWS KMS key you want to use to encrypt * the Amazon S3 objects. This parameter is required if you choose aws:kms as an * encryption type.

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

The Amazon Resource Name (ARN) of the AWS KMS key you want to use to encrypt * the Amazon S3 objects. This parameter is required if you choose aws:kms as an * encryption type.

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

The Amazon Resource Name (ARN) of the AWS KMS key you want to use to encrypt * the Amazon S3 objects. This parameter is required if you choose aws:kms as an * encryption type.

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

The Amazon Resource Name (ARN) of the AWS KMS key you want to use to encrypt * the Amazon S3 objects. This parameter is required if you choose aws:kms as an * encryption type.

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

The type of server side encryption used for encrypting the objects in Amazon * S3.

*/ inline const ServerSideEncryptionTypes& GetType() const{ return m_type; } /** *

The type of server side encryption used for encrypting the objects in Amazon * S3.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of server side encryption used for encrypting the objects in Amazon * S3.

*/ inline void SetType(const ServerSideEncryptionTypes& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of server side encryption used for encrypting the objects in Amazon * S3.

*/ inline void SetType(ServerSideEncryptionTypes&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of server side encryption used for encrypting the objects in Amazon * S3.

*/ inline ExportServerSideEncryption& WithType(const ServerSideEncryptionTypes& value) { SetType(value); return *this;} /** *

The type of server side encryption used for encrypting the objects in Amazon * S3.

*/ inline ExportServerSideEncryption& WithType(ServerSideEncryptionTypes&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; ServerSideEncryptionTypes m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws