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

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

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

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

public class V1beta1QueuingConfigurationFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1beta1QueuingConfigurationFluent {

    private Integer handSize;
    private Integer queueLengthLimit;
    private Integer queues;

    public V1beta1QueuingConfigurationFluentImpl() { 
    }


    public V1beta1QueuingConfigurationFluentImpl(V1beta1QueuingConfiguration instance) { 
        this.withHandSize(instance.getHandSize());

        this.withQueueLengthLimit(instance.getQueueLengthLimit());

        this.withQueues(instance.getQueues());

    }


    public Integer getHandSize() {
        return this.handSize;
    }

    public A withHandSize(Integer handSize) {
        this.handSize=handSize; return (A) this;
    }

    public Boolean hasHandSize() {
        return this.handSize != null;
    }

    public Integer getQueueLengthLimit() {
        return this.queueLengthLimit;
    }

    public A withQueueLengthLimit(Integer queueLengthLimit) {
        this.queueLengthLimit=queueLengthLimit; return (A) this;
    }

    public Boolean hasQueueLengthLimit() {
        return this.queueLengthLimit != null;
    }

    public Integer getQueues() {
        return this.queues;
    }

    public A withQueues(Integer queues) {
        this.queues=queues; return (A) this;
    }

    public Boolean hasQueues() {
        return this.queues != null;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        V1beta1QueuingConfigurationFluentImpl that = (V1beta1QueuingConfigurationFluentImpl) o;
        if (handSize != null ? !handSize.equals(that.handSize) :that.handSize != null) return false;
        if (queueLengthLimit != null ? !queueLengthLimit.equals(that.queueLengthLimit) :that.queueLengthLimit != null) return false;
        if (queues != null ? !queues.equals(that.queues) :that.queues != null) return false;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(handSize,  queueLengthLimit,  queues,  super.hashCode());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy