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

io.github.microcks.operator.api.model.OpenShiftRouteSpecFluent Maven / Gradle / Ivy

There is a newer version: 0.0.2
Show newest version
package io.github.microcks.operator.api.model;

import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;

/**
 * Generated
 */
@SuppressWarnings("unchecked")
public class OpenShiftRouteSpecFluent> extends BaseFluent{
  public OpenShiftRouteSpecFluent() {
  }
  
  public OpenShiftRouteSpecFluent(OpenShiftRouteSpec instance) {
    this.copyInstance(instance);
  }
  private boolean enabled;
  private String tlsTermination;
  private String tlsKey;
  private String tlsCertificate;
  private String tlsCaCertificate;
  private String tlsDestinationCaCertificate;
  private String tlsInsecureEdgeTerminationPolicy;
  
  protected void copyInstance(OpenShiftRouteSpec instance) {
    instance = (instance != null ? instance : new OpenShiftRouteSpec());
    if (instance != null) {
          this.withEnabled(instance.isEnabled());
          this.withTlsTermination(instance.getTlsTermination());
          this.withTlsKey(instance.getTlsKey());
          this.withTlsCertificate(instance.getTlsCertificate());
          this.withTlsCaCertificate(instance.getTlsCaCertificate());
          this.withTlsDestinationCaCertificate(instance.getTlsDestinationCaCertificate());
          this.withTlsInsecureEdgeTerminationPolicy(instance.getTlsInsecureEdgeTerminationPolicy());
        }
  }
  
  public boolean isEnabled() {
    return this.enabled;
  }
  
  public A withEnabled(boolean enabled) {
    this.enabled = enabled;
    return (A) this;
  }
  
  public boolean hasEnabled() {
    return true;
  }
  
  public String getTlsTermination() {
    return this.tlsTermination;
  }
  
  public A withTlsTermination(String tlsTermination) {
    this.tlsTermination = tlsTermination;
    return (A) this;
  }
  
  public boolean hasTlsTermination() {
    return this.tlsTermination != null;
  }
  
  public String getTlsKey() {
    return this.tlsKey;
  }
  
  public A withTlsKey(String tlsKey) {
    this.tlsKey = tlsKey;
    return (A) this;
  }
  
  public boolean hasTlsKey() {
    return this.tlsKey != null;
  }
  
  public String getTlsCertificate() {
    return this.tlsCertificate;
  }
  
  public A withTlsCertificate(String tlsCertificate) {
    this.tlsCertificate = tlsCertificate;
    return (A) this;
  }
  
  public boolean hasTlsCertificate() {
    return this.tlsCertificate != null;
  }
  
  public String getTlsCaCertificate() {
    return this.tlsCaCertificate;
  }
  
  public A withTlsCaCertificate(String tlsCaCertificate) {
    this.tlsCaCertificate = tlsCaCertificate;
    return (A) this;
  }
  
  public boolean hasTlsCaCertificate() {
    return this.tlsCaCertificate != null;
  }
  
  public String getTlsDestinationCaCertificate() {
    return this.tlsDestinationCaCertificate;
  }
  
  public A withTlsDestinationCaCertificate(String tlsDestinationCaCertificate) {
    this.tlsDestinationCaCertificate = tlsDestinationCaCertificate;
    return (A) this;
  }
  
  public boolean hasTlsDestinationCaCertificate() {
    return this.tlsDestinationCaCertificate != null;
  }
  
  public String getTlsInsecureEdgeTerminationPolicy() {
    return this.tlsInsecureEdgeTerminationPolicy;
  }
  
  public A withTlsInsecureEdgeTerminationPolicy(String tlsInsecureEdgeTerminationPolicy) {
    this.tlsInsecureEdgeTerminationPolicy = tlsInsecureEdgeTerminationPolicy;
    return (A) this;
  }
  
  public boolean hasTlsInsecureEdgeTerminationPolicy() {
    return this.tlsInsecureEdgeTerminationPolicy != 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;
    OpenShiftRouteSpecFluent that = (OpenShiftRouteSpecFluent) o;
    if (enabled != that.enabled) return false;
    if (!java.util.Objects.equals(tlsTermination, that.tlsTermination)) return false;
    if (!java.util.Objects.equals(tlsKey, that.tlsKey)) return false;
    if (!java.util.Objects.equals(tlsCertificate, that.tlsCertificate)) return false;
    if (!java.util.Objects.equals(tlsCaCertificate, that.tlsCaCertificate)) return false;
    if (!java.util.Objects.equals(tlsDestinationCaCertificate, that.tlsDestinationCaCertificate)) return false;
    if (!java.util.Objects.equals(tlsInsecureEdgeTerminationPolicy, that.tlsInsecureEdgeTerminationPolicy)) return false;
    return true;
  }
  
  public int hashCode() {
    return java.util.Objects.hash(enabled,  tlsTermination,  tlsKey,  tlsCertificate,  tlsCaCertificate,  tlsDestinationCaCertificate,  tlsInsecureEdgeTerminationPolicy,  super.hashCode());
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    sb.append("enabled:"); sb.append(enabled + ",");
    if (tlsTermination != null) { sb.append("tlsTermination:"); sb.append(tlsTermination + ","); }
    if (tlsKey != null) { sb.append("tlsKey:"); sb.append(tlsKey + ","); }
    if (tlsCertificate != null) { sb.append("tlsCertificate:"); sb.append(tlsCertificate + ","); }
    if (tlsCaCertificate != null) { sb.append("tlsCaCertificate:"); sb.append(tlsCaCertificate + ","); }
    if (tlsDestinationCaCertificate != null) { sb.append("tlsDestinationCaCertificate:"); sb.append(tlsDestinationCaCertificate + ","); }
    if (tlsInsecureEdgeTerminationPolicy != null) { sb.append("tlsInsecureEdgeTerminationPolicy:"); sb.append(tlsInsecureEdgeTerminationPolicy); }
    sb.append("}");
    return sb.toString();
  }
  
  public A withEnabled() {
    return withEnabled(true);
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy