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

Describes an encryption key for a destination in Amazon S3.

See * Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the encryption key. Must belong to the same * AWS Region as the destination Amazon S3 bucket. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline const Aws::String& GetAWSKMSKeyARN() const{ return m_aWSKMSKeyARN; } /** *

The Amazon Resource Name (ARN) of the encryption key. Must belong to the same * AWS Region as the destination Amazon S3 bucket. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline bool AWSKMSKeyARNHasBeenSet() const { return m_aWSKMSKeyARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the encryption key. Must belong to the same * AWS Region as the destination Amazon S3 bucket. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetAWSKMSKeyARN(const Aws::String& value) { m_aWSKMSKeyARNHasBeenSet = true; m_aWSKMSKeyARN = value; } /** *

The Amazon Resource Name (ARN) of the encryption key. Must belong to the same * AWS Region as the destination Amazon S3 bucket. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetAWSKMSKeyARN(Aws::String&& value) { m_aWSKMSKeyARNHasBeenSet = true; m_aWSKMSKeyARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the encryption key. Must belong to the same * AWS Region as the destination Amazon S3 bucket. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetAWSKMSKeyARN(const char* value) { m_aWSKMSKeyARNHasBeenSet = true; m_aWSKMSKeyARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the encryption key. Must belong to the same * AWS Region as the destination Amazon S3 bucket. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline KMSEncryptionConfig& WithAWSKMSKeyARN(const Aws::String& value) { SetAWSKMSKeyARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the encryption key. Must belong to the same * AWS Region as the destination Amazon S3 bucket. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline KMSEncryptionConfig& WithAWSKMSKeyARN(Aws::String&& value) { SetAWSKMSKeyARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the encryption key. Must belong to the same * AWS Region as the destination Amazon S3 bucket. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline KMSEncryptionConfig& WithAWSKMSKeyARN(const char* value) { SetAWSKMSKeyARN(value); return *this;} private: Aws::String m_aWSKMSKeyARN; bool m_aWSKMSKeyARNHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws