All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.eks.model.DescribeUpdateRequest Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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;

/**
 * 

* Describes an update request. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeUpdateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the Amazon EKS cluster associated with the update. *

*/ private String name; /** *

* The ID of the update to describe. *

*/ private String updateId; /** *

* The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a * node group update. *

*/ private String nodegroupName; /** *

* The name of the add-on. The name must match one of the names returned by ListAddons . * This parameter is required if the update is an add-on update. *

*/ private String addonName; /** *

* The name of the Amazon EKS cluster associated with the update. *

* * @param name * The name of the Amazon EKS cluster associated with the update. */ public void setName(String name) { this.name = name; } /** *

* The name of the Amazon EKS cluster associated with the update. *

* * @return The name of the Amazon EKS cluster associated with the update. */ public String getName() { return this.name; } /** *

* The name of the Amazon EKS cluster associated with the update. *

* * @param name * The name of the Amazon EKS cluster associated with the update. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeUpdateRequest withName(String name) { setName(name); return this; } /** *

* The ID of the update to describe. *

* * @param updateId * The ID of the update to describe. */ public void setUpdateId(String updateId) { this.updateId = updateId; } /** *

* The ID of the update to describe. *

* * @return The ID of the update to describe. */ public String getUpdateId() { return this.updateId; } /** *

* The ID of the update to describe. *

* * @param updateId * The ID of the update to describe. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeUpdateRequest withUpdateId(String updateId) { setUpdateId(updateId); return this; } /** *

* The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a * node group update. *

* * @param nodegroupName * The name of the Amazon EKS node group associated with the update. This parameter is required if the update * is a node group update. */ public void setNodegroupName(String nodegroupName) { this.nodegroupName = nodegroupName; } /** *

* The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a * node group update. *

* * @return The name of the Amazon EKS node group associated with the update. This parameter is required if the * update is a node group update. */ public String getNodegroupName() { return this.nodegroupName; } /** *

* The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a * node group update. *

* * @param nodegroupName * The name of the Amazon EKS node group associated with the update. This parameter is required if the update * is a node group update. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeUpdateRequest withNodegroupName(String nodegroupName) { setNodegroupName(nodegroupName); return this; } /** *

* The name of the add-on. The name must match one of the names returned by ListAddons . * This parameter is required if the update is an add-on update. *

* * @param addonName * The name of the add-on. The name must match one of the names returned by ListAddons * . This parameter is required if the update is an add-on update. */ public void setAddonName(String addonName) { this.addonName = addonName; } /** *

* The name of the add-on. The name must match one of the names returned by ListAddons . * This parameter is required if the update is an add-on update. *

* * @return The name of the add-on. The name must match one of the names returned by ListAddons * . This parameter is required if the update is an add-on update. */ public String getAddonName() { return this.addonName; } /** *

* The name of the add-on. The name must match one of the names returned by ListAddons . * This parameter is required if the update is an add-on update. *

* * @param addonName * The name of the add-on. The name must match one of the names returned by ListAddons * . This parameter is required if the update is an add-on update. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeUpdateRequest withAddonName(String addonName) { setAddonName(addonName); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getUpdateId() != null) sb.append("UpdateId: ").append(getUpdateId()).append(","); if (getNodegroupName() != null) sb.append("NodegroupName: ").append(getNodegroupName()).append(","); if (getAddonName() != null) sb.append("AddonName: ").append(getAddonName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeUpdateRequest == false) return false; DescribeUpdateRequest other = (DescribeUpdateRequest) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getUpdateId() == null ^ this.getUpdateId() == null) return false; if (other.getUpdateId() != null && other.getUpdateId().equals(this.getUpdateId()) == 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.getAddonName() == null ^ this.getAddonName() == null) return false; if (other.getAddonName() != null && other.getAddonName().equals(this.getAddonName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getUpdateId() == null) ? 0 : getUpdateId().hashCode()); hashCode = prime * hashCode + ((getNodegroupName() == null) ? 0 : getNodegroupName().hashCode()); hashCode = prime * hashCode + ((getAddonName() == null) ? 0 : getAddonName().hashCode()); return hashCode; } @Override public DescribeUpdateRequest clone() { return (DescribeUpdateRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy