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

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

package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V2CrossVersionObjectReferenceBuilder extends V2CrossVersionObjectReferenceFluentImpl implements VisitableBuilder{
  public V2CrossVersionObjectReferenceBuilder() {
    this(false);
  }
  public V2CrossVersionObjectReferenceBuilder(Boolean validationEnabled) {
    this(new V2CrossVersionObjectReference(), validationEnabled);
  }
  public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent) {
    this(fluent, false);
  }
  public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent,Boolean validationEnabled) {
    this(fluent, new V2CrossVersionObjectReference(), validationEnabled);
  }
  public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent,V2CrossVersionObjectReference instance) {
    this(fluent, instance, false);
  }
  public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent,V2CrossVersionObjectReference instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withApiVersion(instance.getApiVersion());
      fluent.withKind(instance.getKind());
      fluent.withName(instance.getName());
    }
    this.validationEnabled = validationEnabled; 
  }
  public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReference instance) {
    this(instance,false);
  }
  public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReference instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withApiVersion(instance.getApiVersion());
      this.withKind(instance.getKind());
      this.withName(instance.getName());
    }
    this.validationEnabled = validationEnabled; 
  }
  V2CrossVersionObjectReferenceFluent fluent;
  Boolean validationEnabled;
  public V2CrossVersionObjectReference build() {
    V2CrossVersionObjectReference buildable = new V2CrossVersionObjectReference();
    buildable.setApiVersion(fluent.getApiVersion());
    buildable.setKind(fluent.getKind());
    buildable.setName(fluent.getName());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy