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

io.fabric8.knative.internal.caching.v1alpha1.ImageListBuilder Maven / Gradle / Ivy

package io.fabric8.knative.internal.caching.v1alpha1;

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

    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 ImageListBuilder(ImageList instance) {
    this(instance,false);
  }
  public ImageListBuilder(ImageList instance,Boolean validationEnabled) {
    this.fluent = this; 
    instance = (instance != null ? instance : new ImageList());

    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; 
  }
  ImageListFluent fluent;
  Boolean validationEnabled;
  public ImageList build() {
    ImageList buildable = new ImageList(fluent.getApiVersion(),fluent.buildItems(),fluent.getKind(),fluent.getMetadata());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy