package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1NetworkPolicyListBuilder extends V1NetworkPolicyListFluentImpl<V1NetworkPolicyListBuilder> implements VisitableBuilder<V1NetworkPolicyList,V1NetworkPolicyListBuilder>{
  public V1NetworkPolicyListBuilder() {
    this(false);
  }
  public V1NetworkPolicyListBuilder(Boolean validationEnabled) {
    this(new V1NetworkPolicyList(), validationEnabled);
  }
  public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent<?> fluent) {
    this(fluent, false);
  }
  public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent<?> fluent,Boolean validationEnabled) {
    this(fluent, new V1NetworkPolicyList(), validationEnabled);
  }
  public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent<?> fluent,V1NetworkPolicyList instance) {
    this(fluent, instance, false);
  }
  public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent<?> fluent,V1NetworkPolicyList instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withApiVersion(instance.getApiVersion());
      fluent.withItems(instance.getItems());
      fluent.withKind(instance.getKind());
      fluent.withMetadata(instance.getMetadata());
    }
    this.validationEnabled = validationEnabled; 
  }
  public V1NetworkPolicyListBuilder(V1NetworkPolicyList instance) {
    this(instance,false);
  }
  public V1NetworkPolicyListBuilder(V1NetworkPolicyList instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withApiVersion(instance.getApiVersion());
      this.withItems(instance.getItems());
      this.withKind(instance.getKind());
      this.withMetadata(instance.getMetadata());
    }
    this.validationEnabled = validationEnabled; 
  }
  V1NetworkPolicyListFluent<?> fluent;
  Boolean validationEnabled;
  public V1NetworkPolicyList build() {
    V1NetworkPolicyList buildable = new V1NetworkPolicyList();
    buildable.setApiVersion(fluent.getApiVersion());
    buildable.setItems(fluent.getItems());
    buildable.setKind(fluent.getKind());
    buildable.setMetadata(fluent.getMetadata());
    return buildable;
  }
  
}