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

io.kubernetes.client.models.V1beta1CustomResourceDefinitionVersionFluentImpl Maven / Gradle / Ivy

package io.kubernetes.client.models;

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

public class V1beta1CustomResourceDefinitionVersionFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1beta1CustomResourceDefinitionVersionFluent{

    private String name;
    private Boolean served;
    private Boolean storage;

    public V1beta1CustomResourceDefinitionVersionFluentImpl(){
    }
    public V1beta1CustomResourceDefinitionVersionFluentImpl(V1beta1CustomResourceDefinitionVersion instance){
            this.withName(instance.getName());

            this.withServed(instance.isServed());

            this.withStorage(instance.isStorage());

    }

    public String getName(){
            return this.name;
    }

    public A withName(String name){
            this.name=name; return (A) this;
    }

    public Boolean hasName(){
            return this.name != null;
    }

    public Boolean isServed(){
            return this.served;
    }

    public A withServed(Boolean served){
            this.served=served; return (A) this;
    }

    public Boolean hasServed(){
            return this.served != null;
    }

    public A withNewServed(boolean arg1){
            return (A)withServed(new Boolean(arg1));
    }

    public A withNewServed(String arg1){
            return (A)withServed(new Boolean(arg1));
    }

    public Boolean isStorage(){
            return this.storage;
    }

    public A withStorage(Boolean storage){
            this.storage=storage; return (A) this;
    }

    public Boolean hasStorage(){
            return this.storage != null;
    }

    public A withNewStorage(boolean arg1){
            return (A)withStorage(new Boolean(arg1));
    }

    public A withNewStorage(String arg1){
            return (A)withStorage(new Boolean(arg1));
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            V1beta1CustomResourceDefinitionVersionFluentImpl that = (V1beta1CustomResourceDefinitionVersionFluentImpl) o;
            if (name != null ? !name.equals(that.name) :that.name != null) return false;
            if (served != null ? !served.equals(that.served) :that.served != null) return false;
            if (storage != null ? !storage.equals(that.storage) :that.storage != null) return false;
            return true;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy