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

io.dekorate.helm.config.AddIfStatementFluentImpl Maven / Gradle / Ivy

There is a newer version: 4.1.4
Show newest version
package io.dekorate.helm.config;

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

 /**
  * Generated
  */
  @SuppressWarnings(value = "unchecked")
  public class AddIfStatementFluentImpl> extends BaseFluent implements AddIfStatementFluent{
  public AddIfStatementFluentImpl() {
  }
  public AddIfStatementFluentImpl(AddIfStatement instance) {
    this.withProperty(instance.getProperty()); 
    this.withOnResourceKind(instance.getOnResourceKind()); 
    this.withOnResourceName(instance.getOnResourceName()); 
    this.withWithDefaultValue(instance.getWithDefaultValue()); 
  }
  private String property;
  private String onResourceKind;
  private String onResourceName;
  private Boolean withDefaultValue;
  public String getProperty() {
    return this.property;
  }
  public A withProperty(String property) {
    this.property=property; return (A) this;
  }
  public Boolean hasProperty() {
    return this.property != null;
  }
  public String getOnResourceKind() {
    return this.onResourceKind;
  }
  public A withOnResourceKind(String onResourceKind) {
    this.onResourceKind=onResourceKind; return (A) this;
  }
  public Boolean hasOnResourceKind() {
    return this.onResourceKind != null;
  }
  public String getOnResourceName() {
    return this.onResourceName;
  }
  public A withOnResourceName(String onResourceName) {
    this.onResourceName=onResourceName; return (A) this;
  }
  public Boolean hasOnResourceName() {
    return this.onResourceName != null;
  }
  public Boolean getWithDefaultValue() {
    return this.withDefaultValue;
  }
  public A withWithDefaultValue(Boolean withDefaultValue) {
    this.withDefaultValue=withDefaultValue; return (A) this;
  }
  public Boolean hasWithDefaultValue() {
    return this.withDefaultValue != null;
  }
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    AddIfStatementFluentImpl that = (AddIfStatementFluentImpl) o;
    if (property != null ? !property.equals(that.property) :that.property != null) return false;
    if (onResourceKind != null ? !onResourceKind.equals(that.onResourceKind) :that.onResourceKind != null) return false;
    if (onResourceName != null ? !onResourceName.equals(that.onResourceName) :that.onResourceName != null) return false;
    if (withDefaultValue != null ? !withDefaultValue.equals(that.withDefaultValue) :that.withDefaultValue != null) return false;
    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(property,  onResourceKind,  onResourceName,  withDefaultValue,  super.hashCode());
  }
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (property != null) { sb.append("property:"); sb.append(property + ","); }
    if (onResourceKind != null) { sb.append("onResourceKind:"); sb.append(onResourceKind + ","); }
    if (onResourceName != null) { sb.append("onResourceName:"); sb.append(onResourceName + ","); }
    if (withDefaultValue != null) { sb.append("withDefaultValue:"); sb.append(withDefaultValue); }
    sb.append("}");
    return sb.toString();
  }
  public A withWithDefaultValue() {
    return withWithDefaultValue(true);
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy