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

Describes a custom encryption key that App Runner uses to encrypt copies of * the source repository and service logs.

See Also:

AWS * API Reference

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

The ARN of the KMS key that's used for encryption.

*/ inline const Aws::String& GetKmsKey() const{ return m_kmsKey; } /** *

The ARN of the KMS key that's used for encryption.

*/ inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; } /** *

The ARN of the KMS key that's used for encryption.

*/ inline void SetKmsKey(const Aws::String& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = value; } /** *

The ARN of the KMS key that's used for encryption.

*/ inline void SetKmsKey(Aws::String&& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = std::move(value); } /** *

The ARN of the KMS key that's used for encryption.

*/ inline void SetKmsKey(const char* value) { m_kmsKeyHasBeenSet = true; m_kmsKey.assign(value); } /** *

The ARN of the KMS key that's used for encryption.

*/ inline EncryptionConfiguration& WithKmsKey(const Aws::String& value) { SetKmsKey(value); return *this;} /** *

The ARN of the KMS key that's used for encryption.

*/ inline EncryptionConfiguration& WithKmsKey(Aws::String&& value) { SetKmsKey(std::move(value)); return *this;} /** *

The ARN of the KMS key that's used for encryption.

*/ inline EncryptionConfiguration& WithKmsKey(const char* value) { SetKmsKey(value); return *this;} private: Aws::String m_kmsKey; bool m_kmsKeyHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws