/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.eks.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RegisterClusterRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Define a unique name for this cluster for your Region. *
*/ private String name; /** ** The configuration settings required to connect the Kubernetes cluster to the Amazon EKS control plane. *
*/ private ConnectorConfigRequest connectorConfig; /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *
*/ private String clientRequestToken; /** ** 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. *
*/ private java.util.Map* Define a unique name for this cluster for your Region. *
* * @param name * Define a unique name for this cluster for your Region. */ public void setName(String name) { this.name = name; } /** ** Define a unique name for this cluster for your Region. *
* * @return Define a unique name for this cluster for your Region. */ public String getName() { return this.name; } /** ** Define a unique name for this cluster for your Region. *
* * @param name * Define a unique name for this cluster for your Region. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterClusterRequest withName(String name) { setName(name); return this; } /** ** The configuration settings required to connect the Kubernetes cluster to the Amazon EKS control plane. *
* * @param connectorConfig * The configuration settings required to connect the Kubernetes cluster to the Amazon EKS control plane. */ public void setConnectorConfig(ConnectorConfigRequest connectorConfig) { this.connectorConfig = connectorConfig; } /** ** The configuration settings required to connect the Kubernetes cluster to the Amazon EKS control plane. *
* * @return The configuration settings required to connect the Kubernetes cluster to the Amazon EKS control plane. */ public ConnectorConfigRequest getConnectorConfig() { return this.connectorConfig; } /** ** The configuration settings required to connect the Kubernetes cluster to the Amazon EKS control plane. *
* * @param connectorConfig * The configuration settings required to connect the Kubernetes cluster to the Amazon EKS control plane. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterClusterRequest withConnectorConfig(ConnectorConfigRequest connectorConfig) { setConnectorConfig(connectorConfig); return this; } /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *
* * @param clientRequestToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *
* * @return Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. */ public String getClientRequestToken() { return this.clientRequestToken; } /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *
* * @param clientRequestToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterClusterRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); 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. *
* * @return 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. */ public java.util.Map* 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. *
* * @param 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. */ public void setTags(java.util.Map* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterClusterRequest withTags(java.util.Map