/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies encryption-related information for an Amazon S3 bucket that is a
* destination for replicated objects. This is not supported by
* Amazon S3 on Outposts buckets.See Also:
AWS
* API Reference
Specifies the ID of the customer managed KMS key that's stored in Key * Management Service (KMS) for the destination bucket. This ID is either the * Amazon Resource Name (ARN) for the KMS key or the alias ARN for the KMS key. * Amazon S3 uses this KMS key to encrypt replica objects. Amazon S3 supports only * symmetric encryption KMS keys. For more information, see Symmetric * encryption KMS keys in the Amazon Web Services Key Management Service * Developer Guide.
*/ inline const Aws::String& GetReplicaKmsKeyID() const{ return m_replicaKmsKeyID; } /** *Specifies the ID of the customer managed KMS key that's stored in Key * Management Service (KMS) for the destination bucket. This ID is either the * Amazon Resource Name (ARN) for the KMS key or the alias ARN for the KMS key. * Amazon S3 uses this KMS key to encrypt replica objects. Amazon S3 supports only * symmetric encryption KMS keys. For more information, see Symmetric * encryption KMS keys in the Amazon Web Services Key Management Service * Developer Guide.
*/ inline bool ReplicaKmsKeyIDHasBeenSet() const { return m_replicaKmsKeyIDHasBeenSet; } /** *Specifies the ID of the customer managed KMS key that's stored in Key * Management Service (KMS) for the destination bucket. This ID is either the * Amazon Resource Name (ARN) for the KMS key or the alias ARN for the KMS key. * Amazon S3 uses this KMS key to encrypt replica objects. Amazon S3 supports only * symmetric encryption KMS keys. For more information, see Symmetric * encryption KMS keys in the Amazon Web Services Key Management Service * Developer Guide.
*/ inline void SetReplicaKmsKeyID(const Aws::String& value) { m_replicaKmsKeyIDHasBeenSet = true; m_replicaKmsKeyID = value; } /** *Specifies the ID of the customer managed KMS key that's stored in Key * Management Service (KMS) for the destination bucket. This ID is either the * Amazon Resource Name (ARN) for the KMS key or the alias ARN for the KMS key. * Amazon S3 uses this KMS key to encrypt replica objects. Amazon S3 supports only * symmetric encryption KMS keys. For more information, see Symmetric * encryption KMS keys in the Amazon Web Services Key Management Service * Developer Guide.
*/ inline void SetReplicaKmsKeyID(Aws::String&& value) { m_replicaKmsKeyIDHasBeenSet = true; m_replicaKmsKeyID = std::move(value); } /** *Specifies the ID of the customer managed KMS key that's stored in Key * Management Service (KMS) for the destination bucket. This ID is either the * Amazon Resource Name (ARN) for the KMS key or the alias ARN for the KMS key. * Amazon S3 uses this KMS key to encrypt replica objects. Amazon S3 supports only * symmetric encryption KMS keys. For more information, see Symmetric * encryption KMS keys in the Amazon Web Services Key Management Service * Developer Guide.
*/ inline void SetReplicaKmsKeyID(const char* value) { m_replicaKmsKeyIDHasBeenSet = true; m_replicaKmsKeyID.assign(value); } /** *Specifies the ID of the customer managed KMS key that's stored in Key * Management Service (KMS) for the destination bucket. This ID is either the * Amazon Resource Name (ARN) for the KMS key or the alias ARN for the KMS key. * Amazon S3 uses this KMS key to encrypt replica objects. Amazon S3 supports only * symmetric encryption KMS keys. For more information, see Symmetric * encryption KMS keys in the Amazon Web Services Key Management Service * Developer Guide.
*/ inline EncryptionConfiguration& WithReplicaKmsKeyID(const Aws::String& value) { SetReplicaKmsKeyID(value); return *this;} /** *Specifies the ID of the customer managed KMS key that's stored in Key * Management Service (KMS) for the destination bucket. This ID is either the * Amazon Resource Name (ARN) for the KMS key or the alias ARN for the KMS key. * Amazon S3 uses this KMS key to encrypt replica objects. Amazon S3 supports only * symmetric encryption KMS keys. For more information, see Symmetric * encryption KMS keys in the Amazon Web Services Key Management Service * Developer Guide.
*/ inline EncryptionConfiguration& WithReplicaKmsKeyID(Aws::String&& value) { SetReplicaKmsKeyID(std::move(value)); return *this;} /** *Specifies the ID of the customer managed KMS key that's stored in Key * Management Service (KMS) for the destination bucket. This ID is either the * Amazon Resource Name (ARN) for the KMS key or the alias ARN for the KMS key. * Amazon S3 uses this KMS key to encrypt replica objects. Amazon S3 supports only * symmetric encryption KMS keys. For more information, see Symmetric * encryption KMS keys in the Amazon Web Services Key Management Service * Developer Guide.
*/ inline EncryptionConfiguration& WithReplicaKmsKeyID(const char* value) { SetReplicaKmsKeyID(value); return *this;} private: Aws::String m_replicaKmsKeyID; bool m_replicaKmsKeyIDHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws