
io.fabric8.kubernetes.api.model.QuantityFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.lang.StringBuffer;
import java.lang.StringBuilder;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
public class QuantityFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements QuantityFluent{
private String amount;
private String format;
public QuantityFluentImpl(){
}
public QuantityFluentImpl(Quantity instance){
this.withAmount(instance.getAmount());
this.withFormat(instance.getFormat());
}
public String getAmount(){
return this.amount;
}
public A withAmount(String amount){
this.amount=amount; return (A) this;
}
public Boolean hasAmount(){
return this.amount != null;
}
public A withNewAmount(String arg1){
return (A)withAmount(new String(arg1));
}
public A withNewAmount(StringBuilder arg1){
return (A)withAmount(new String(arg1));
}
public A withNewAmount(StringBuffer arg1){
return (A)withAmount(new String(arg1));
}
public String getFormat(){
return this.format;
}
public A withFormat(String format){
this.format=format; return (A) this;
}
public Boolean hasFormat(){
return this.format != null;
}
public A withNewFormat(String arg1){
return (A)withFormat(new String(arg1));
}
public A withNewFormat(StringBuilder arg1){
return (A)withFormat(new String(arg1));
}
public A withNewFormat(StringBuffer arg1){
return (A)withFormat(new String(arg1));
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
QuantityFluentImpl that = (QuantityFluentImpl) o;
if (amount != null ? !amount.equals(that.amount) :that.amount != null) return false;
if (format != null ? !format.equals(that.format) :that.format != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy