/* * 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 UpdateNodegroupConfigRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the Amazon EKS cluster that the managed node group resides in. *
*/ private String clusterName; /** ** The name of the managed node group to update. *
*/ private String nodegroupName; /** ** The Kubernetes labels to be applied to the nodes in the node group after the update. *
*/ private UpdateLabelsPayload labels; /** ** The Kubernetes taints to be applied to the nodes in the node group after the update. For more information, see Node taints on * managed node groups. *
*/ private UpdateTaintsPayload taints; /** ** The scaling configuration details for the Auto Scaling group after the update. *
*/ private NodegroupScalingConfig scalingConfig; /** ** The node group update configuration. *
*/ private NodegroupUpdateConfig updateConfig; /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *
*/ private String clientRequestToken; /** ** The name of the Amazon EKS cluster that the managed node group resides in. *
* * @param clusterName * The name of the Amazon EKS cluster that the managed node group resides in. */ public void setClusterName(String clusterName) { this.clusterName = clusterName; } /** ** The name of the Amazon EKS cluster that the managed node group resides in. *
* * @return The name of the Amazon EKS cluster that the managed node group resides in. */ public String getClusterName() { return this.clusterName; } /** ** The name of the Amazon EKS cluster that the managed node group resides in. *
* * @param clusterName * The name of the Amazon EKS cluster that the managed node group resides in. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateNodegroupConfigRequest withClusterName(String clusterName) { setClusterName(clusterName); return this; } /** ** The name of the managed node group to update. *
* * @param nodegroupName * The name of the managed node group to update. */ public void setNodegroupName(String nodegroupName) { this.nodegroupName = nodegroupName; } /** ** The name of the managed node group to update. *
* * @return The name of the managed node group to update. */ public String getNodegroupName() { return this.nodegroupName; } /** ** The name of the managed node group to update. *
* * @param nodegroupName * The name of the managed node group to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateNodegroupConfigRequest withNodegroupName(String nodegroupName) { setNodegroupName(nodegroupName); return this; } /** ** The Kubernetes labels to be applied to the nodes in the node group after the update. *
* * @param labels * The Kubernetes labels to be applied to the nodes in the node group after the update. */ public void setLabels(UpdateLabelsPayload labels) { this.labels = labels; } /** ** The Kubernetes labels to be applied to the nodes in the node group after the update. *
* * @return The Kubernetes labels to be applied to the nodes in the node group after the update. */ public UpdateLabelsPayload getLabels() { return this.labels; } /** ** The Kubernetes labels to be applied to the nodes in the node group after the update. *
* * @param labels * The Kubernetes labels to be applied to the nodes in the node group after the update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateNodegroupConfigRequest withLabels(UpdateLabelsPayload labels) { setLabels(labels); return this; } /** ** The Kubernetes taints to be applied to the nodes in the node group after the update. For more information, see Node taints on * managed node groups. *
* * @param taints * The Kubernetes taints to be applied to the nodes in the node group after the update. For more information, * see Node * taints on managed node groups. */ public void setTaints(UpdateTaintsPayload taints) { this.taints = taints; } /** ** The Kubernetes taints to be applied to the nodes in the node group after the update. For more information, see Node taints on * managed node groups. *
* * @return The Kubernetes taints to be applied to the nodes in the node group after the update. For more * information, see Node taints * on managed node groups. */ public UpdateTaintsPayload getTaints() { return this.taints; } /** ** The Kubernetes taints to be applied to the nodes in the node group after the update. For more information, see Node taints on * managed node groups. *
* * @param taints * The Kubernetes taints to be applied to the nodes in the node group after the update. For more information, * see Node * taints on managed node groups. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateNodegroupConfigRequest withTaints(UpdateTaintsPayload taints) { setTaints(taints); return this; } /** ** The scaling configuration details for the Auto Scaling group after the update. *
* * @param scalingConfig * The scaling configuration details for the Auto Scaling group after the update. */ public void setScalingConfig(NodegroupScalingConfig scalingConfig) { this.scalingConfig = scalingConfig; } /** ** The scaling configuration details for the Auto Scaling group after the update. *
* * @return The scaling configuration details for the Auto Scaling group after the update. */ public NodegroupScalingConfig getScalingConfig() { return this.scalingConfig; } /** ** The scaling configuration details for the Auto Scaling group after the update. *
* * @param scalingConfig * The scaling configuration details for the Auto Scaling group after the update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateNodegroupConfigRequest withScalingConfig(NodegroupScalingConfig scalingConfig) { setScalingConfig(scalingConfig); return this; } /** ** The node group update configuration. *
* * @param updateConfig * The node group update configuration. */ public void setUpdateConfig(NodegroupUpdateConfig updateConfig) { this.updateConfig = updateConfig; } /** ** The node group update configuration. *
* * @return The node group update configuration. */ public NodegroupUpdateConfig getUpdateConfig() { return this.updateConfig; } /** ** The node group update configuration. *
* * @param updateConfig * The node group update configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateNodegroupConfigRequest withUpdateConfig(NodegroupUpdateConfig updateConfig) { setUpdateConfig(updateConfig); 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 UpdateNodegroupConfigRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getClusterName() != null) sb.append("ClusterName: ").append(getClusterName()).append(","); if (getNodegroupName() != null) sb.append("NodegroupName: ").append(getNodegroupName()).append(","); if (getLabels() != null) sb.append("Labels: ").append(getLabels()).append(","); if (getTaints() != null) sb.append("Taints: ").append(getTaints()).append(","); if (getScalingConfig() != null) sb.append("ScalingConfig: ").append(getScalingConfig()).append(","); if (getUpdateConfig() != null) sb.append("UpdateConfig: ").append(getUpdateConfig()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateNodegroupConfigRequest == false) return false; UpdateNodegroupConfigRequest other = (UpdateNodegroupConfigRequest) obj; if (other.getClusterName() == null ^ this.getClusterName() == null) return false; if (other.getClusterName() != null && other.getClusterName().equals(this.getClusterName()) == false) return false; if (other.getNodegroupName() == null ^ this.getNodegroupName() == null) return false; if (other.getNodegroupName() != null && other.getNodegroupName().equals(this.getNodegroupName()) == false) return false; if (other.getLabels() == null ^ this.getLabels() == null) return false; if (other.getLabels() != null && other.getLabels().equals(this.getLabels()) == false) return false; if (other.getTaints() == null ^ this.getTaints() == null) return false; if (other.getTaints() != null && other.getTaints().equals(this.getTaints()) == false) return false; if (other.getScalingConfig() == null ^ this.getScalingConfig() == null) return false; if (other.getScalingConfig() != null && other.getScalingConfig().equals(this.getScalingConfig()) == false) return false; if (other.getUpdateConfig() == null ^ this.getUpdateConfig() == null) return false; if (other.getUpdateConfig() != null && other.getUpdateConfig().equals(this.getUpdateConfig()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClusterName() == null) ? 0 : getClusterName().hashCode()); hashCode = prime * hashCode + ((getNodegroupName() == null) ? 0 : getNodegroupName().hashCode()); hashCode = prime * hashCode + ((getLabels() == null) ? 0 : getLabels().hashCode()); hashCode = prime * hashCode + ((getTaints() == null) ? 0 : getTaints().hashCode()); hashCode = prime * hashCode + ((getScalingConfig() == null) ? 0 : getScalingConfig().hashCode()); hashCode = prime * hashCode + ((getUpdateConfig() == null) ? 0 : getUpdateConfig().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); return hashCode; } @Override public UpdateNodegroupConfigRequest clone() { return (UpdateNodegroupConfigRequest) super.clone(); } }