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

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

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

import java.lang.Integer;
import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

 /**
  * Generated
  */
  @SuppressWarnings(value = "unchecked")
  public class V1beta2QueuingConfigurationFluentImpl> extends BaseFluent implements V1beta2QueuingConfigurationFluent{
  public V1beta2QueuingConfigurationFluentImpl() {
  }
  public V1beta2QueuingConfigurationFluentImpl(V1beta2QueuingConfiguration instance) {
    if (instance != null) {
      this.withHandSize(instance.getHandSize());
      this.withQueueLengthLimit(instance.getQueueLengthLimit());
      this.withQueues(instance.getQueues());
    }
  }
  private Integer handSize;
  private Integer queueLengthLimit;
  private Integer queues;
  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;
    if (!super.equals(o)) return false;
    V1beta2QueuingConfigurationFluentImpl that = (V1beta2QueuingConfigurationFluentImpl) o;
    if (!java.util.Objects.equals(handSize, that.handSize)) return false;

    if (!java.util.Objects.equals(queueLengthLimit, that.queueLengthLimit)) return false;

    if (!java.util.Objects.equals(queues, that.queues)) return false;

    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(handSize,  queueLengthLimit,  queues,  super.hashCode());
  }
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (handSize != null) { sb.append("handSize:"); sb.append(handSize + ","); }
    if (queueLengthLimit != null) { sb.append("queueLengthLimit:"); sb.append(queueLengthLimit + ","); }
    if (queues != null) { sb.append("queues:"); sb.append(queues); }
    sb.append("}");
    return sb.toString();
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy