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

The encryption configuration for the cluster.

See Also:

AWS * API Reference

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

Specifies the resources to be encrypted. The only supported value is * "secrets".

*/ inline const Aws::Vector& GetResources() const{ return m_resources; } /** *

Specifies the resources to be encrypted. The only supported value is * "secrets".

*/ inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *

Specifies the resources to be encrypted. The only supported value is * "secrets".

*/ inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } /** *

Specifies the resources to be encrypted. The only supported value is * "secrets".

*/ inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } /** *

Specifies the resources to be encrypted. The only supported value is * "secrets".

*/ inline EncryptionConfig& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} /** *

Specifies the resources to be encrypted. The only supported value is * "secrets".

*/ inline EncryptionConfig& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} /** *

Specifies the resources to be encrypted. The only supported value is * "secrets".

*/ inline EncryptionConfig& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

Specifies the resources to be encrypted. The only supported value is * "secrets".

*/ inline EncryptionConfig& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } /** *

Specifies the resources to be encrypted. The only supported value is * "secrets".

*/ inline EncryptionConfig& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

Key Management Service (KMS) key. Either the ARN or the alias can be * used.

*/ inline const Provider& GetProvider() const{ return m_provider; } /** *

Key Management Service (KMS) key. Either the ARN or the alias can be * used.

*/ inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; } /** *

Key Management Service (KMS) key. Either the ARN or the alias can be * used.

*/ inline void SetProvider(const Provider& value) { m_providerHasBeenSet = true; m_provider = value; } /** *

Key Management Service (KMS) key. Either the ARN or the alias can be * used.

*/ inline void SetProvider(Provider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); } /** *

Key Management Service (KMS) key. Either the ARN or the alias can be * used.

*/ inline EncryptionConfig& WithProvider(const Provider& value) { SetProvider(value); return *this;} /** *

Key Management Service (KMS) key. Either the ARN or the alias can be * used.

*/ inline EncryptionConfig& WithProvider(Provider&& value) { SetProvider(std::move(value)); return *this;} private: Aws::Vector m_resources; bool m_resourcesHasBeenSet = false; Provider m_provider; bool m_providerHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws