/* * 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.guardduty.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about the EKS cluster that has a coverage status. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CoverageEksClusterDetails implements Serializable, Cloneable, StructuredPojo { /** ** Name of the EKS cluster. *
*/ private String clusterName; /** *
* Represents the nodes within the EKS cluster that have a HEALTHY
coverage status.
*
* Represents all the nodes within the EKS cluster in your account. *
*/ private Long compatibleNodes; /** ** Information about the installed EKS add-on. *
*/ private AddonDetails addonDetails; /** ** Name of the EKS cluster. *
* * @param clusterName * Name of the EKS cluster. */ public void setClusterName(String clusterName) { this.clusterName = clusterName; } /** ** Name of the EKS cluster. *
* * @return Name of the EKS cluster. */ public String getClusterName() { return this.clusterName; } /** ** Name of the EKS cluster. *
* * @param clusterName * Name of the EKS cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public CoverageEksClusterDetails withClusterName(String clusterName) { setClusterName(clusterName); return this; } /** *
* Represents the nodes within the EKS cluster that have a HEALTHY
coverage status.
*
HEALTHY
coverage status.
*/
public void setCoveredNodes(Long coveredNodes) {
this.coveredNodes = coveredNodes;
}
/**
*
* Represents the nodes within the EKS cluster that have a HEALTHY
coverage status.
*
HEALTHY
coverage status.
*/
public Long getCoveredNodes() {
return this.coveredNodes;
}
/**
*
* Represents the nodes within the EKS cluster that have a HEALTHY
coverage status.
*
HEALTHY
coverage status.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CoverageEksClusterDetails withCoveredNodes(Long coveredNodes) {
setCoveredNodes(coveredNodes);
return this;
}
/**
* * Represents all the nodes within the EKS cluster in your account. *
* * @param compatibleNodes * Represents all the nodes within the EKS cluster in your account. */ public void setCompatibleNodes(Long compatibleNodes) { this.compatibleNodes = compatibleNodes; } /** ** Represents all the nodes within the EKS cluster in your account. *
* * @return Represents all the nodes within the EKS cluster in your account. */ public Long getCompatibleNodes() { return this.compatibleNodes; } /** ** Represents all the nodes within the EKS cluster in your account. *
* * @param compatibleNodes * Represents all the nodes within the EKS cluster in your account. * @return Returns a reference to this object so that method calls can be chained together. */ public CoverageEksClusterDetails withCompatibleNodes(Long compatibleNodes) { setCompatibleNodes(compatibleNodes); return this; } /** ** Information about the installed EKS add-on. *
* * @param addonDetails * Information about the installed EKS add-on. */ public void setAddonDetails(AddonDetails addonDetails) { this.addonDetails = addonDetails; } /** ** Information about the installed EKS add-on. *
* * @return Information about the installed EKS add-on. */ public AddonDetails getAddonDetails() { return this.addonDetails; } /** ** Information about the installed EKS add-on. *
* * @param addonDetails * Information about the installed EKS add-on. * @return Returns a reference to this object so that method calls can be chained together. */ public CoverageEksClusterDetails withAddonDetails(AddonDetails addonDetails) { setAddonDetails(addonDetails); 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 (getCoveredNodes() != null) sb.append("CoveredNodes: ").append(getCoveredNodes()).append(","); if (getCompatibleNodes() != null) sb.append("CompatibleNodes: ").append(getCompatibleNodes()).append(","); if (getAddonDetails() != null) sb.append("AddonDetails: ").append(getAddonDetails()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CoverageEksClusterDetails == false) return false; CoverageEksClusterDetails other = (CoverageEksClusterDetails) obj; if (other.getClusterName() == null ^ this.getClusterName() == null) return false; if (other.getClusterName() != null && other.getClusterName().equals(this.getClusterName()) == false) return false; if (other.getCoveredNodes() == null ^ this.getCoveredNodes() == null) return false; if (other.getCoveredNodes() != null && other.getCoveredNodes().equals(this.getCoveredNodes()) == false) return false; if (other.getCompatibleNodes() == null ^ this.getCompatibleNodes() == null) return false; if (other.getCompatibleNodes() != null && other.getCompatibleNodes().equals(this.getCompatibleNodes()) == false) return false; if (other.getAddonDetails() == null ^ this.getAddonDetails() == null) return false; if (other.getAddonDetails() != null && other.getAddonDetails().equals(this.getAddonDetails()) == 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 + ((getCoveredNodes() == null) ? 0 : getCoveredNodes().hashCode()); hashCode = prime * hashCode + ((getCompatibleNodes() == null) ? 0 : getCompatibleNodes().hashCode()); hashCode = prime * hashCode + ((getAddonDetails() == null) ? 0 : getAddonDetails().hashCode()); return hashCode; } @Override public CoverageEksClusterDetails clone() { try { return (CoverageEksClusterDetails) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.guardduty.model.transform.CoverageEksClusterDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }