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

io.strimzi.api.kafka.model.storage.EphemeralStorageFluentImpl Maven / Gradle / Ivy

There is a newer version: 0.44.0
Show newest version
package io.strimzi.api.kafka.model.storage;

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

  
  /**
   * Representation for ephemeral storage.
   */
  public class EphemeralStorageFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.strimzi.api.kafka.model.storage.EphemeralStorageFluent {

    private java.lang.Integer id;
    private java.lang.String sizeLimit;

    public EphemeralStorageFluentImpl() {
    }

    public EphemeralStorageFluentImpl(io.strimzi.api.kafka.model.storage.EphemeralStorage instance) {
        this.withId(instance.getId());
        
        this.withSizeLimit(instance.getSizeLimit());
    }

    public java.lang.Integer getId() {
        return this.id;
    }

    public A withId(java.lang.Integer id) {
        this.id=id; return (A) this;
    }

    public java.lang.Boolean hasId() {
        return this.id != null;
    }

    public java.lang.String getSizeLimit() {
        return this.sizeLimit;
    }

    public A withSizeLimit(java.lang.String sizeLimit) {
        this.sizeLimit=sizeLimit; return (A) this;
    }

    public java.lang.Boolean hasSizeLimit() {
        return this.sizeLimit != null;
    }

    
    @java.lang.Deprecated
        
    /**
     * Method is deprecated. use withSizeLimit instead.
     */
        public A withNewSizeLimit(java.lang.String original) {
        return (A)withSizeLimit(new String(original));
    }

    public boolean equals(java.lang.Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EphemeralStorageFluentImpl that = (EphemeralStorageFluentImpl) o;
        if (id != null ? !id.equals(that.id) :that.id != null) return false;
        if (sizeLimit != null ? !sizeLimit.equals(that.sizeLimit) :that.sizeLimit != null) return false;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(id,  sizeLimit,  super.hashCode());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy