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

Describes the encryption for a destination in Amazon S3.

See * Also:

AWS * API Reference

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

Specifically override existing encryption information to ensure that no * encryption is used.

*/ inline const NoEncryptionConfig& GetNoEncryptionConfig() const{ return m_noEncryptionConfig; } /** *

Specifically override existing encryption information to ensure that no * encryption is used.

*/ inline bool NoEncryptionConfigHasBeenSet() const { return m_noEncryptionConfigHasBeenSet; } /** *

Specifically override existing encryption information to ensure that no * encryption is used.

*/ inline void SetNoEncryptionConfig(const NoEncryptionConfig& value) { m_noEncryptionConfigHasBeenSet = true; m_noEncryptionConfig = value; } /** *

Specifically override existing encryption information to ensure that no * encryption is used.

*/ inline void SetNoEncryptionConfig(NoEncryptionConfig&& value) { m_noEncryptionConfigHasBeenSet = true; m_noEncryptionConfig = std::move(value); } /** *

Specifically override existing encryption information to ensure that no * encryption is used.

*/ inline EncryptionConfiguration& WithNoEncryptionConfig(const NoEncryptionConfig& value) { SetNoEncryptionConfig(value); return *this;} /** *

Specifically override existing encryption information to ensure that no * encryption is used.

*/ inline EncryptionConfiguration& WithNoEncryptionConfig(NoEncryptionConfig&& value) { SetNoEncryptionConfig(std::move(value)); return *this;} /** *

The encryption key.

*/ inline const KMSEncryptionConfig& GetKMSEncryptionConfig() const{ return m_kMSEncryptionConfig; } /** *

The encryption key.

*/ inline bool KMSEncryptionConfigHasBeenSet() const { return m_kMSEncryptionConfigHasBeenSet; } /** *

The encryption key.

*/ inline void SetKMSEncryptionConfig(const KMSEncryptionConfig& value) { m_kMSEncryptionConfigHasBeenSet = true; m_kMSEncryptionConfig = value; } /** *

The encryption key.

*/ inline void SetKMSEncryptionConfig(KMSEncryptionConfig&& value) { m_kMSEncryptionConfigHasBeenSet = true; m_kMSEncryptionConfig = std::move(value); } /** *

The encryption key.

*/ inline EncryptionConfiguration& WithKMSEncryptionConfig(const KMSEncryptionConfig& value) { SetKMSEncryptionConfig(value); return *this;} /** *

The encryption key.

*/ inline EncryptionConfiguration& WithKMSEncryptionConfig(KMSEncryptionConfig&& value) { SetKMSEncryptionConfig(std::move(value)); return *this;} private: NoEncryptionConfig m_noEncryptionConfig; bool m_noEncryptionConfigHasBeenSet; KMSEncryptionConfig m_kMSEncryptionConfig; bool m_kMSEncryptionConfigHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws