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

io.fabric8.knative.serving.v1.ServiceListBuilder Maven / Gradle / Ivy

package io.fabric8.knative.serving.v1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class ServiceListBuilder extends ServiceListFluent implements VisitableBuilder{
  public ServiceListBuilder() {
    this(false);
  }
  public ServiceListBuilder(Boolean validationEnabled) {
    this(new ServiceList(), validationEnabled);
  }
  public ServiceListBuilder(ServiceListFluent fluent) {
    this(fluent, false);
  }
  public ServiceListBuilder(ServiceListFluent fluent,Boolean validationEnabled) {
    this(fluent, new ServiceList(), validationEnabled);
  }
  public ServiceListBuilder(ServiceListFluent fluent,ServiceList instance) {
    this(fluent, instance, false);
  }
  public ServiceListBuilder(ServiceListFluent fluent,ServiceList instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    instance = (instance != null ? instance : new ServiceList());

    if (instance != null) {
      fluent.withApiVersion(instance.getApiVersion());
      fluent.withItems(instance.getItems());
      fluent.withKind(instance.getKind());
      fluent.withMetadata(instance.getMetadata());
      fluent.withApiVersion(instance.getApiVersion());
      fluent.withItems(instance.getItems());
      fluent.withKind(instance.getKind());
      fluent.withMetadata(instance.getMetadata());
    }
    this.validationEnabled = validationEnabled; 
  }
  public ServiceListBuilder(ServiceList instance) {
    this(instance,false);
  }
  public ServiceListBuilder(ServiceList instance,Boolean validationEnabled) {
    this.fluent = this; 
    instance = (instance != null ? instance : new ServiceList());

    if (instance != null) {
      this.withApiVersion(instance.getApiVersion());
      this.withItems(instance.getItems());
      this.withKind(instance.getKind());
      this.withMetadata(instance.getMetadata());
      this.withApiVersion(instance.getApiVersion());
      this.withItems(instance.getItems());
      this.withKind(instance.getKind());
      this.withMetadata(instance.getMetadata());
    }
    this.validationEnabled = validationEnabled; 
  }
  ServiceListFluent fluent;
  Boolean validationEnabled;
  public ServiceList build() {
    ServiceList buildable = new ServiceList(fluent.getApiVersion(),fluent.buildItems(),fluent.getKind(),fluent.getMetadata());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy