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

io.github.microcks.operator.api.model.ImageSpecBuilder Maven / Gradle / Ivy

package io.github.microcks.operator.api.model;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ImageSpecBuilder extends ImageSpecFluent implements VisitableBuilder{
  public ImageSpecBuilder() {
    this(new ImageSpec());
  }
  
  public ImageSpecBuilder(ImageSpecFluent fluent) {
    this(fluent, new ImageSpec());
  }
  
  public ImageSpecBuilder(ImageSpecFluent fluent,ImageSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public ImageSpecBuilder(ImageSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  ImageSpecFluent fluent;
  
  public ImageSpec build() {
    ImageSpec buildable = new ImageSpec();
    buildable.setRegistry(fluent.getRegistry());
    buildable.setRepository(fluent.getRepository());
    buildable.setTag(fluent.getTag());
    buildable.setDigest(fluent.getDigest());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy