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

io.sundr.model.StringStatementFluent Maven / Gradle / Ivy

There is a newer version: 0.200.3
Show newest version
package io.sundr.model;

import java.lang.SuppressWarnings;
import io.sundr.builder.BaseFluent;
import java.lang.Object;
import java.util.function.Supplier;
import java.lang.String;

/**
 * Generated
 */
@SuppressWarnings("unchecked")
public class StringStatementFluent> extends BaseFluent{
  public StringStatementFluent() {
  }
  
  public StringStatementFluent(StringStatement instance) {
    this.copyInstance(instance);
  }
  private Supplier supplier;
  
  protected void copyInstance(StringStatement instance) {
    if (instance != null) {
          this.withSupplier(instance.getSupplier());
        }
  }
  
  public Supplier getSupplier() {
    return this.supplier;
  }
  
  public A withSupplier(Supplier supplier) {
    this.supplier=supplier; return (A) this;
  }
  
  public boolean hasSupplier() {
    return this.supplier != 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;
    StringStatementFluent that = (StringStatementFluent) o;
    if (!java.util.Objects.equals(supplier, that.supplier)) return false;
    return true;
  }
  
  public int hashCode() {
    return java.util.Objects.hash(supplier,  super.hashCode());
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (supplier != null) { sb.append("supplier:"); sb.append(supplier); }
    sb.append("}");
    return sb.toString();
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy