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

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

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

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

/**
 * Generated
 */
@SuppressWarnings("unchecked")
public class V1beta3LimitResponseFluent> extends BaseFluent{
  public V1beta3LimitResponseFluent() {
  }
  
  public V1beta3LimitResponseFluent(V1beta3LimitResponse instance) {
    this.copyInstance(instance);
  }
  private V1beta3QueuingConfigurationBuilder queuing;
  private String type;
  
  protected void copyInstance(V1beta3LimitResponse instance) {
    instance = (instance != null ? instance : new V1beta3LimitResponse());
    if (instance != null) {
          this.withQueuing(instance.getQueuing());
          this.withType(instance.getType());
        }
  }
  
  public V1beta3QueuingConfiguration buildQueuing() {
    return this.queuing != null ? this.queuing.build() : null;
  }
  
  public A withQueuing(V1beta3QueuingConfiguration queuing) {
    this._visitables.remove("queuing");
    if (queuing != null) {
        this.queuing = new V1beta3QueuingConfigurationBuilder(queuing);
        this._visitables.get("queuing").add(this.queuing);
    } else {
        this.queuing = null;
        this._visitables.get("queuing").remove(this.queuing);
    }
    return (A) this;
  }
  
  public boolean hasQueuing() {
    return this.queuing != null;
  }
  
  public QueuingNested withNewQueuing() {
    return new QueuingNested(null);
  }
  
  public QueuingNested withNewQueuingLike(V1beta3QueuingConfiguration item) {
    return new QueuingNested(item);
  }
  
  public QueuingNested editQueuing() {
    return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(null));
  }
  
  public QueuingNested editOrNewQueuing() {
    return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(new V1beta3QueuingConfigurationBuilder().build()));
  }
  
  public QueuingNested editOrNewQueuingLike(V1beta3QueuingConfiguration item) {
    return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(item));
  }
  
  public String getType() {
    return this.type;
  }
  
  public A withType(String type) {
    this.type = type;
    return (A) this;
  }
  
  public boolean hasType() {
    return this.type != 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;
    V1beta3LimitResponseFluent that = (V1beta3LimitResponseFluent) o;
    if (!java.util.Objects.equals(queuing, that.queuing)) return false;
    if (!java.util.Objects.equals(type, that.type)) return false;
    return true;
  }
  
  public int hashCode() {
    return java.util.Objects.hash(queuing,  type,  super.hashCode());
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (queuing != null) { sb.append("queuing:"); sb.append(queuing + ","); }
    if (type != null) { sb.append("type:"); sb.append(type); }
    sb.append("}");
    return sb.toString();
  }
  public class QueuingNested extends V1beta3QueuingConfigurationFluent> implements Nested{
    QueuingNested(V1beta3QueuingConfiguration item) {
      this.builder = new V1beta3QueuingConfigurationBuilder(this, item);
    }
    V1beta3QueuingConfigurationBuilder builder;
    
    public N and() {
      return (N) V1beta3LimitResponseFluent.this.withQueuing(builder.build());
    }
    
    public N endQueuing() {
      return and();
    }
    
  
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy