/** * 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 QLDB { namespace Model { /** *

The encryption settings that are used by a journal export job to write data * in an Amazon Simple Storage Service (Amazon S3) bucket.

See Also:

* AWS * API Reference

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

The Amazon S3 object encryption type.

To learn more about server-side * encryption options in Amazon S3, see Protecting * Data Using Server-Side Encryption in the Amazon S3 Developer * Guide.

*/ inline const S3ObjectEncryptionType& GetObjectEncryptionType() const{ return m_objectEncryptionType; } /** *

The Amazon S3 object encryption type.

To learn more about server-side * encryption options in Amazon S3, see Protecting * Data Using Server-Side Encryption in the Amazon S3 Developer * Guide.

*/ inline bool ObjectEncryptionTypeHasBeenSet() const { return m_objectEncryptionTypeHasBeenSet; } /** *

The Amazon S3 object encryption type.

To learn more about server-side * encryption options in Amazon S3, see Protecting * Data Using Server-Side Encryption in the Amazon S3 Developer * Guide.

*/ inline void SetObjectEncryptionType(const S3ObjectEncryptionType& value) { m_objectEncryptionTypeHasBeenSet = true; m_objectEncryptionType = value; } /** *

The Amazon S3 object encryption type.

To learn more about server-side * encryption options in Amazon S3, see Protecting * Data Using Server-Side Encryption in the Amazon S3 Developer * Guide.

*/ inline void SetObjectEncryptionType(S3ObjectEncryptionType&& value) { m_objectEncryptionTypeHasBeenSet = true; m_objectEncryptionType = std::move(value); } /** *

The Amazon S3 object encryption type.

To learn more about server-side * encryption options in Amazon S3, see Protecting * Data Using Server-Side Encryption in the Amazon S3 Developer * Guide.

*/ inline S3EncryptionConfiguration& WithObjectEncryptionType(const S3ObjectEncryptionType& value) { SetObjectEncryptionType(value); return *this;} /** *

The Amazon S3 object encryption type.

To learn more about server-side * encryption options in Amazon S3, see Protecting * Data Using Server-Side Encryption in the Amazon S3 Developer * Guide.

*/ inline S3EncryptionConfiguration& WithObjectEncryptionType(S3ObjectEncryptionType&& value) { SetObjectEncryptionType(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of a symmetric encryption key in Key * Management Service (KMS). Amazon S3 does not support asymmetric KMS keys.

*

You must provide a KmsKeyArn if you specify SSE_KMS * as the ObjectEncryptionType.

KmsKeyArn is not * required if you specify SSE_S3 as the * ObjectEncryptionType.

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

The Amazon Resource Name (ARN) of a symmetric encryption key in Key * Management Service (KMS). Amazon S3 does not support asymmetric KMS keys.

*

You must provide a KmsKeyArn if you specify SSE_KMS * as the ObjectEncryptionType.

KmsKeyArn is not * required if you specify SSE_S3 as the * ObjectEncryptionType.

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

The Amazon Resource Name (ARN) of a symmetric encryption key in Key * Management Service (KMS). Amazon S3 does not support asymmetric KMS keys.

*

You must provide a KmsKeyArn if you specify SSE_KMS * as the ObjectEncryptionType.

KmsKeyArn is not * required if you specify SSE_S3 as the * ObjectEncryptionType.

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

The Amazon Resource Name (ARN) of a symmetric encryption key in Key * Management Service (KMS). Amazon S3 does not support asymmetric KMS keys.

*

You must provide a KmsKeyArn if you specify SSE_KMS * as the ObjectEncryptionType.

KmsKeyArn is not * required if you specify SSE_S3 as the * ObjectEncryptionType.

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

The Amazon Resource Name (ARN) of a symmetric encryption key in Key * Management Service (KMS). Amazon S3 does not support asymmetric KMS keys.

*

You must provide a KmsKeyArn if you specify SSE_KMS * as the ObjectEncryptionType.

KmsKeyArn is not * required if you specify SSE_S3 as the * ObjectEncryptionType.

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

The Amazon Resource Name (ARN) of a symmetric encryption key in Key * Management Service (KMS). Amazon S3 does not support asymmetric KMS keys.

*

You must provide a KmsKeyArn if you specify SSE_KMS * as the ObjectEncryptionType.

KmsKeyArn is not * required if you specify SSE_S3 as the * ObjectEncryptionType.

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

The Amazon Resource Name (ARN) of a symmetric encryption key in Key * Management Service (KMS). Amazon S3 does not support asymmetric KMS keys.

*

You must provide a KmsKeyArn if you specify SSE_KMS * as the ObjectEncryptionType.

KmsKeyArn is not * required if you specify SSE_S3 as the * ObjectEncryptionType.

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

The Amazon Resource Name (ARN) of a symmetric encryption key in Key * Management Service (KMS). Amazon S3 does not support asymmetric KMS keys.

*

You must provide a KmsKeyArn if you specify SSE_KMS * as the ObjectEncryptionType.

KmsKeyArn is not * required if you specify SSE_S3 as the * ObjectEncryptionType.

*/ inline S3EncryptionConfiguration& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} private: S3ObjectEncryptionType m_objectEncryptionType; bool m_objectEncryptionTypeHasBeenSet = false; Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; }; } // namespace Model } // namespace QLDB } // namespace Aws