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

io.alauda.kubernetes.api.model.QuantityFluentImpl Maven / Gradle / Ivy

There is a newer version: 0.2.12
Show newest version
package io.alauda.kubernetes.api.model;

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

public class QuantityFluentImpl> extends io.alauda.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 String getFormat(){
            return this.format;
    }

    public A withFormat(String format){
            this.format=format; return (A) this;
    }

    public Boolean hasFormat(){
            return this.format!=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;
            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 - 2024 Weber Informatics LLC | Privacy Policy