io.github.microcks.operator.api.artifact.v1alpha1.ArtifactSpecBuilder Maven / Gradle / Ivy
package io.github.microcks.operator.api.artifact.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ArtifactSpecBuilder extends ArtifactSpecFluent implements VisitableBuilder{
public ArtifactSpecBuilder() {
this(new ArtifactSpec());
}
public ArtifactSpecBuilder(ArtifactSpecFluent> fluent) {
this(fluent, new ArtifactSpec());
}
public ArtifactSpecBuilder(ArtifactSpecFluent> fluent,ArtifactSpec instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public ArtifactSpecBuilder(ArtifactSpec instance) {
this.fluent = this;
this.copyInstance(instance);
}
ArtifactSpecFluent> fluent;
public ArtifactSpec build() {
ArtifactSpec buildable = new ArtifactSpec();
buildable.setUrl(fluent.getUrl());
buildable.setMainArtifact(fluent.isMainArtifact());
buildable.setSecretRef(fluent.getSecretRef());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy