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

io.strimzi.api.kafka.model.connect.build.OtherArtifactBuilder Maven / Gradle / Ivy

There is a newer version: 0.44.0
Show newest version
package io.strimzi.api.kafka.model.connect.build;

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

    if (instance != null) {
      fluent.withFileName(instance.getFileName());
      fluent.withUrl(instance.getUrl());
      fluent.withSha512sum(instance.getSha512sum());
      fluent.withInsecure(instance.getInsecure());
    }
    this.validationEnabled = validationEnabled; 
  }
  public OtherArtifactBuilder(OtherArtifact instance) {
    this(instance,false);
  }
  public OtherArtifactBuilder(OtherArtifact instance,Boolean validationEnabled) {
    this.fluent = this; 
    instance = (instance != null ? instance : new OtherArtifact());

    if (instance != null) {
      this.withFileName(instance.getFileName());
      this.withUrl(instance.getUrl());
      this.withSha512sum(instance.getSha512sum());
      this.withInsecure(instance.getInsecure());
    }
    this.validationEnabled = validationEnabled; 
  }
  OtherArtifactFluent fluent;
  Boolean validationEnabled;
  public OtherArtifact build() {
    OtherArtifact buildable = new OtherArtifact();
    buildable.setFileName(fluent.getFileName());
    buildable.setUrl(fluent.getUrl());
    buildable.setSha512sum(fluent.getSha512sum());
    buildable.setInsecure(fluent.getInsecure());
    return buildable;
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy