/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace EKS { namespace Model { /** */ class AssociateEncryptionConfigRequest : public EKSRequest { public: AWS_EKS_API AssociateEncryptionConfigRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "AssociateEncryptionConfig"; } AWS_EKS_API Aws::String SerializePayload() const override; /** *

The name of the cluster that you are associating with encryption * configuration.

*/ inline const Aws::String& GetClusterName() const{ return m_clusterName; } /** *

The name of the cluster that you are associating with encryption * configuration.

*/ inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } /** *

The name of the cluster that you are associating with encryption * configuration.

*/ inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } /** *

The name of the cluster that you are associating with encryption * configuration.

*/ inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } /** *

The name of the cluster that you are associating with encryption * configuration.

*/ inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } /** *

The name of the cluster that you are associating with encryption * configuration.

*/ inline AssociateEncryptionConfigRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} /** *

The name of the cluster that you are associating with encryption * configuration.

*/ inline AssociateEncryptionConfigRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} /** *

The name of the cluster that you are associating with encryption * configuration.

*/ inline AssociateEncryptionConfigRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} /** *

The configuration you are using for encryption.

*/ inline const Aws::Vector& GetEncryptionConfig() const{ return m_encryptionConfig; } /** *

The configuration you are using for encryption.

*/ inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; } /** *

The configuration you are using for encryption.

*/ inline void SetEncryptionConfig(const Aws::Vector& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = value; } /** *

The configuration you are using for encryption.

*/ inline void SetEncryptionConfig(Aws::Vector&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::move(value); } /** *

The configuration you are using for encryption.

*/ inline AssociateEncryptionConfigRequest& WithEncryptionConfig(const Aws::Vector& value) { SetEncryptionConfig(value); return *this;} /** *

The configuration you are using for encryption.

*/ inline AssociateEncryptionConfigRequest& WithEncryptionConfig(Aws::Vector&& value) { SetEncryptionConfig(std::move(value)); return *this;} /** *

The configuration you are using for encryption.

*/ inline AssociateEncryptionConfigRequest& AddEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig.push_back(value); return *this; } /** *

The configuration you are using for encryption.

*/ inline AssociateEncryptionConfigRequest& AddEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig.push_back(std::move(value)); return *this; } /** *

The client request token you are using with the encryption configuration.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

The client request token you are using with the encryption configuration.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

The client request token you are using with the encryption configuration.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

The client request token you are using with the encryption configuration.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

The client request token you are using with the encryption configuration.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

The client request token you are using with the encryption configuration.

*/ inline AssociateEncryptionConfigRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

The client request token you are using with the encryption configuration.

*/ inline AssociateEncryptionConfigRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

The client request token you are using with the encryption configuration.

*/ inline AssociateEncryptionConfigRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::String m_clusterName; bool m_clusterNameHasBeenSet = false; Aws::Vector m_encryptionConfig; bool m_encryptionConfigHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws