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: 22.0.0
Show newest version
/*
Copyright 2022 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.BaseFluent;

/** Generated */
@SuppressWarnings(value = "unchecked")
public class V1beta2QueuingConfigurationFluentImpl>
    extends BaseFluent implements V1beta2QueuingConfigurationFluent {
  public V1beta2QueuingConfigurationFluentImpl() {}

  public V1beta2QueuingConfigurationFluentImpl(
      io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration instance) {
    this.withHandSize(instance.getHandSize());

    this.withQueueLengthLimit(instance.getQueueLengthLimit());

    this.withQueues(instance.getQueues());
  }

  private Integer handSize;
  private java.lang.Integer queueLengthLimit;
  private java.lang.Integer queues;

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

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

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

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

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

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

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

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

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

  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    V1beta2QueuingConfigurationFluentImpl that = (V1beta2QueuingConfigurationFluentImpl) 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());
  }

  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