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

io.kubernetes.client.openapi.models.V1SeccompProfileFluentImpl Maven / Gradle / Ivy

package io.kubernetes.client.openapi.models;

import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

 /**
  * Generated
  */
  @SuppressWarnings(value = "unchecked")
  public class V1SeccompProfileFluentImpl> extends BaseFluent implements V1SeccompProfileFluent{
  public V1SeccompProfileFluentImpl() {
  }
  public V1SeccompProfileFluentImpl(V1SeccompProfile instance) {
    if (instance != null) {
      this.withLocalhostProfile(instance.getLocalhostProfile());
      this.withType(instance.getType());
    }
  }
  private String localhostProfile;
  private String type;
  public String getLocalhostProfile() {
    return this.localhostProfile;
  }
  public A withLocalhostProfile(String localhostProfile) {
    this.localhostProfile=localhostProfile; return (A) this;
  }
  public Boolean hasLocalhostProfile() {
    return this.localhostProfile != null;
  }
  public String getType() {
    return this.type;
  }
  public A withType(String type) {
    this.type=type; return (A) this;
  }
  public Boolean hasType() {
    return this.type != null;
  }
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    V1SeccompProfileFluentImpl that = (V1SeccompProfileFluentImpl) o;
    if (!java.util.Objects.equals(localhostProfile, that.localhostProfile)) return false;

    if (!java.util.Objects.equals(type, that.type)) return false;

    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(localhostProfile,  type,  super.hashCode());
  }
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (localhostProfile != null) { sb.append("localhostProfile:"); sb.append(localhostProfile + ","); }
    if (type != null) { sb.append("type:"); sb.append(type); }
    sb.append("}");
    return sb.toString();
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy