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

The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the shared * S3 objects.

See Also:

AWS * API Reference

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

The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt * S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant * for each subscriber to allow them to access and decrypt their entitled data that * is encrypted using this KMS key specified.

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

The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt * S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant * for each subscriber to allow them to access and decrypt their entitled data that * is encrypted using this KMS key specified.

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

The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt * S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant * for each subscriber to allow them to access and decrypt their entitled data that * is encrypted using this KMS key specified.

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

The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt * S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant * for each subscriber to allow them to access and decrypt their entitled data that * is encrypted using this KMS key specified.

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

The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt * S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant * for each subscriber to allow them to access and decrypt their entitled data that * is encrypted using this KMS key specified.

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

The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt * S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant * for each subscriber to allow them to access and decrypt their entitled data that * is encrypted using this KMS key specified.

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

The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt * S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant * for each subscriber to allow them to access and decrypt their entitled data that * is encrypted using this KMS key specified.

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

The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt * S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant * for each subscriber to allow them to access and decrypt their entitled data that * is encrypted using this KMS key specified.

*/ inline KmsKeyToGrant& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} private: Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws