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

io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1.ImageBuilder Maven / Gradle / Ivy

package io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class ImageBuilder extends ImageFluentImpl implements VisitableBuilder{
  public ImageBuilder() {
    this(false);
  }
  public ImageBuilder(Boolean validationEnabled) {
    this(new Image(), validationEnabled);
  }
  public ImageBuilder(ImageFluent fluent) {
    this(fluent, false);
  }
  public ImageBuilder(ImageFluent fluent,Boolean validationEnabled) {
    this(fluent, new Image(), validationEnabled);
  }
  public ImageBuilder(ImageFluent fluent,Image instance) {
    this(fluent, instance, false);
  }
  public ImageBuilder(ImageFluent fluent,Image instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withChecksum(instance.getChecksum());
      fluent.withChecksumType(instance.getChecksumType());
      fluent.withFormat(instance.getFormat());
      fluent.withUrl(instance.getUrl());
      fluent.withAdditionalProperties(instance.getAdditionalProperties());
    }
    this.validationEnabled = validationEnabled; 
  }
  public ImageBuilder(Image instance) {
    this(instance,false);
  }
  public ImageBuilder(Image instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withChecksum(instance.getChecksum());
      this.withChecksumType(instance.getChecksumType());
      this.withFormat(instance.getFormat());
      this.withUrl(instance.getUrl());
      this.withAdditionalProperties(instance.getAdditionalProperties());
    }
    this.validationEnabled = validationEnabled; 
  }
  ImageFluent fluent;
  Boolean validationEnabled;
  public Image build() {
    Image buildable = new Image(fluent.getChecksum(),fluent.getChecksumType(),fluent.getFormat(),fluent.getUrl());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy