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

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

/*
 * 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about an add-on version. *

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

* The version of the add-on. *

*/ private String addonVersion; /** *

* The architectures that the version supports. *

*/ private java.util.List architecture; /** *

* An object representing the compatibilities of a version. *

*/ private java.util.List compatibilities; /** *

* Whether the add-on requires configuration. *

*/ private Boolean requiresConfiguration; /** *

* The version of the add-on. *

* * @param addonVersion * The version of the add-on. */ public void setAddonVersion(String addonVersion) { this.addonVersion = addonVersion; } /** *

* The version of the add-on. *

* * @return The version of the add-on. */ public String getAddonVersion() { return this.addonVersion; } /** *

* The version of the add-on. *

* * @param addonVersion * The version of the add-on. * @return Returns a reference to this object so that method calls can be chained together. */ public AddonVersionInfo withAddonVersion(String addonVersion) { setAddonVersion(addonVersion); return this; } /** *

* The architectures that the version supports. *

* * @return The architectures that the version supports. */ public java.util.List getArchitecture() { return architecture; } /** *

* The architectures that the version supports. *

* * @param architecture * The architectures that the version supports. */ public void setArchitecture(java.util.Collection architecture) { if (architecture == null) { this.architecture = null; return; } this.architecture = new java.util.ArrayList(architecture); } /** *

* The architectures that the version supports. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setArchitecture(java.util.Collection)} or {@link #withArchitecture(java.util.Collection)} if you want to * override the existing values. *

* * @param architecture * The architectures that the version supports. * @return Returns a reference to this object so that method calls can be chained together. */ public AddonVersionInfo withArchitecture(String... architecture) { if (this.architecture == null) { setArchitecture(new java.util.ArrayList(architecture.length)); } for (String ele : architecture) { this.architecture.add(ele); } return this; } /** *

* The architectures that the version supports. *

* * @param architecture * The architectures that the version supports. * @return Returns a reference to this object so that method calls can be chained together. */ public AddonVersionInfo withArchitecture(java.util.Collection architecture) { setArchitecture(architecture); return this; } /** *

* An object representing the compatibilities of a version. *

* * @return An object representing the compatibilities of a version. */ public java.util.List getCompatibilities() { return compatibilities; } /** *

* An object representing the compatibilities of a version. *

* * @param compatibilities * An object representing the compatibilities of a version. */ public void setCompatibilities(java.util.Collection compatibilities) { if (compatibilities == null) { this.compatibilities = null; return; } this.compatibilities = new java.util.ArrayList(compatibilities); } /** *

* An object representing the compatibilities of a version. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCompatibilities(java.util.Collection)} or {@link #withCompatibilities(java.util.Collection)} if you * want to override the existing values. *

* * @param compatibilities * An object representing the compatibilities of a version. * @return Returns a reference to this object so that method calls can be chained together. */ public AddonVersionInfo withCompatibilities(Compatibility... compatibilities) { if (this.compatibilities == null) { setCompatibilities(new java.util.ArrayList(compatibilities.length)); } for (Compatibility ele : compatibilities) { this.compatibilities.add(ele); } return this; } /** *

* An object representing the compatibilities of a version. *

* * @param compatibilities * An object representing the compatibilities of a version. * @return Returns a reference to this object so that method calls can be chained together. */ public AddonVersionInfo withCompatibilities(java.util.Collection compatibilities) { setCompatibilities(compatibilities); return this; } /** *

* Whether the add-on requires configuration. *

* * @param requiresConfiguration * Whether the add-on requires configuration. */ public void setRequiresConfiguration(Boolean requiresConfiguration) { this.requiresConfiguration = requiresConfiguration; } /** *

* Whether the add-on requires configuration. *

* * @return Whether the add-on requires configuration. */ public Boolean getRequiresConfiguration() { return this.requiresConfiguration; } /** *

* Whether the add-on requires configuration. *

* * @param requiresConfiguration * Whether the add-on requires configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public AddonVersionInfo withRequiresConfiguration(Boolean requiresConfiguration) { setRequiresConfiguration(requiresConfiguration); return this; } /** *

* Whether the add-on requires configuration. *

* * @return Whether the add-on requires configuration. */ public Boolean isRequiresConfiguration() { return this.requiresConfiguration; } /** * 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 (getAddonVersion() != null) sb.append("AddonVersion: ").append(getAddonVersion()).append(","); if (getArchitecture() != null) sb.append("Architecture: ").append(getArchitecture()).append(","); if (getCompatibilities() != null) sb.append("Compatibilities: ").append(getCompatibilities()).append(","); if (getRequiresConfiguration() != null) sb.append("RequiresConfiguration: ").append(getRequiresConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AddonVersionInfo == false) return false; AddonVersionInfo other = (AddonVersionInfo) obj; if (other.getAddonVersion() == null ^ this.getAddonVersion() == null) return false; if (other.getAddonVersion() != null && other.getAddonVersion().equals(this.getAddonVersion()) == false) return false; if (other.getArchitecture() == null ^ this.getArchitecture() == null) return false; if (other.getArchitecture() != null && other.getArchitecture().equals(this.getArchitecture()) == false) return false; if (other.getCompatibilities() == null ^ this.getCompatibilities() == null) return false; if (other.getCompatibilities() != null && other.getCompatibilities().equals(this.getCompatibilities()) == false) return false; if (other.getRequiresConfiguration() == null ^ this.getRequiresConfiguration() == null) return false; if (other.getRequiresConfiguration() != null && other.getRequiresConfiguration().equals(this.getRequiresConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAddonVersion() == null) ? 0 : getAddonVersion().hashCode()); hashCode = prime * hashCode + ((getArchitecture() == null) ? 0 : getArchitecture().hashCode()); hashCode = prime * hashCode + ((getCompatibilities() == null) ? 0 : getCompatibilities().hashCode()); hashCode = prime * hashCode + ((getRequiresConfiguration() == null) ? 0 : getRequiresConfiguration().hashCode()); return hashCode; } @Override public AddonVersionInfo clone() { try { return (AddonVersionInfo) 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.eks.model.transform.AddonVersionInfoMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy