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

io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluentImpl Maven / Gradle / Ivy

There is a newer version: 22.0.0
Show newest version
package io.kubernetes.client.openapi.models;

import java.lang.StringBuffer;
import java.lang.StringBuilder;
import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.BaseFluent;
import io.kubernetes.client.custom.Quantity;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

public class V1EmptyDirVolumeSourceFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1EmptyDirVolumeSourceFluent {

    private String medium;
    private Quantity sizeLimit;

    public V1EmptyDirVolumeSourceFluentImpl() { 
    }


    public V1EmptyDirVolumeSourceFluentImpl(V1EmptyDirVolumeSource instance) { 
        this.withMedium(instance.getMedium());

        this.withSizeLimit(instance.getSizeLimit());

    }


    public String getMedium() {
        return this.medium;
    }

    public A withMedium(String medium) {
        this.medium=medium; return (A) this;
    }

    public Boolean hasMedium() {
        return this.medium != null;
    }

    public A withNewMedium(String arg1) {
        return (A)withMedium(new String(arg1));
    }

    public A withNewMedium(StringBuilder arg1) {
        return (A)withMedium(new String(arg1));
    }

    public A withNewMedium(StringBuffer arg1) {
        return (A)withMedium(new String(arg1));
    }

    public Quantity getSizeLimit() {
        return this.sizeLimit;
    }

    public A withSizeLimit(Quantity sizeLimit) {
        this.sizeLimit=sizeLimit; return (A) this;
    }

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

    public A withNewSizeLimit(final String value) {
        return (A)withSizeLimit(new Quantity(value));
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        V1EmptyDirVolumeSourceFluentImpl that = (V1EmptyDirVolumeSourceFluentImpl) o;
        if (medium != null ? !medium.equals(that.medium) :that.medium != 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(medium,  sizeLimit,  super.hashCode());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy