/** * 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 RegisterClusterRequest : public EKSRequest { public: AWS_EKS_API RegisterClusterRequest(); // 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 "RegisterCluster"; } AWS_EKS_API Aws::String SerializePayload() const override; /** *

Define a unique name for this cluster for your Region.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Define a unique name for this cluster for your Region.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Define a unique name for this cluster for your Region.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Define a unique name for this cluster for your Region.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Define a unique name for this cluster for your Region.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Define a unique name for this cluster for your Region.

*/ inline RegisterClusterRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Define a unique name for this cluster for your Region.

*/ inline RegisterClusterRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Define a unique name for this cluster for your Region.

*/ inline RegisterClusterRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The configuration settings required to connect the Kubernetes cluster to the * Amazon EKS control plane.

*/ inline const ConnectorConfigRequest& GetConnectorConfig() const{ return m_connectorConfig; } /** *

The configuration settings required to connect the Kubernetes cluster to the * Amazon EKS control plane.

*/ inline bool ConnectorConfigHasBeenSet() const { return m_connectorConfigHasBeenSet; } /** *

The configuration settings required to connect the Kubernetes cluster to the * Amazon EKS control plane.

*/ inline void SetConnectorConfig(const ConnectorConfigRequest& value) { m_connectorConfigHasBeenSet = true; m_connectorConfig = value; } /** *

The configuration settings required to connect the Kubernetes cluster to the * Amazon EKS control plane.

*/ inline void SetConnectorConfig(ConnectorConfigRequest&& value) { m_connectorConfigHasBeenSet = true; m_connectorConfig = std::move(value); } /** *

The configuration settings required to connect the Kubernetes cluster to the * Amazon EKS control plane.

*/ inline RegisterClusterRequest& WithConnectorConfig(const ConnectorConfigRequest& value) { SetConnectorConfig(value); return *this;} /** *

The configuration settings required to connect the Kubernetes cluster to the * Amazon EKS control plane.

*/ inline RegisterClusterRequest& WithConnectorConfig(ConnectorConfigRequest&& value) { SetConnectorConfig(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline RegisterClusterRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline RegisterClusterRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline RegisterClusterRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline RegisterClusterRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline RegisterClusterRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline RegisterClusterRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline RegisterClusterRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline RegisterClusterRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline RegisterClusterRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The metadata that you apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value, both of which * you define. Cluster tags do not propagate to any other resources associated with * the cluster.

*/ inline RegisterClusterRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; ConnectorConfigRequest m_connectorConfig; bool m_connectorConfigHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws