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

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

package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1StatusDetailsBuilder extends V1StatusDetailsFluentImpl implements VisitableBuilder{
  public V1StatusDetailsBuilder() {
    this(false);
  }
  public V1StatusDetailsBuilder(Boolean validationEnabled) {
    this(new V1StatusDetails(), validationEnabled);
  }
  public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent) {
    this(fluent, false);
  }
  public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent,Boolean validationEnabled) {
    this(fluent, new V1StatusDetails(), validationEnabled);
  }
  public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent,V1StatusDetails instance) {
    this(fluent, instance, false);
  }
  public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent,V1StatusDetails instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withCauses(instance.getCauses());
      fluent.withGroup(instance.getGroup());
      fluent.withKind(instance.getKind());
      fluent.withName(instance.getName());
      fluent.withRetryAfterSeconds(instance.getRetryAfterSeconds());
      fluent.withUid(instance.getUid());
    }
    this.validationEnabled = validationEnabled; 
  }
  public V1StatusDetailsBuilder(V1StatusDetails instance) {
    this(instance,false);
  }
  public V1StatusDetailsBuilder(V1StatusDetails instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withCauses(instance.getCauses());
      this.withGroup(instance.getGroup());
      this.withKind(instance.getKind());
      this.withName(instance.getName());
      this.withRetryAfterSeconds(instance.getRetryAfterSeconds());
      this.withUid(instance.getUid());
    }
    this.validationEnabled = validationEnabled; 
  }
  V1StatusDetailsFluent fluent;
  Boolean validationEnabled;
  public V1StatusDetails build() {
    V1StatusDetails buildable = new V1StatusDetails();
    buildable.setCauses(fluent.getCauses());
    buildable.setGroup(fluent.getGroup());
    buildable.setKind(fluent.getKind());
    buildable.setName(fluent.getName());
    buildable.setRetryAfterSeconds(fluent.getRetryAfterSeconds());
    buildable.setUid(fluent.getUid());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy