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

Information about account-level configuration.

See Also:

AWS * API Reference

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

The KMS key ARN to use for encryption. This must be provided as a header when * uploading your code resource.

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

The KMS key ARN to use for encryption. This must be provided as a header when * uploading your code resource.

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

The KMS key ARN to use for encryption. This must be provided as a header when * uploading your code resource.

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

The KMS key ARN to use for encryption. This must be provided as a header when * uploading your code resource.

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

The KMS key ARN to use for encryption. This must be provided as a header when * uploading your code resource.

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

The KMS key ARN to use for encryption. This must be provided as a header when * uploading your code resource.

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

The KMS key ARN to use for encryption. This must be provided as a header when * uploading your code resource.

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

The KMS key ARN to use for encryption. This must be provided as a header when * uploading your code resource.

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