io.fabric8.tekton.triggers.v1alpha1.SecretRefBuilder Maven / Gradle / Ivy
package io.fabric8.tekton.triggers.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class SecretRefBuilder extends SecretRefFluentImpl implements VisitableBuilder{
public SecretRefBuilder() {
this(false);
}
public SecretRefBuilder(Boolean validationEnabled) {
this(new SecretRef(), validationEnabled);
}
public SecretRefBuilder(SecretRefFluent> fluent) {
this(fluent, false);
}
public SecretRefBuilder(SecretRefFluent> fluent,Boolean validationEnabled) {
this(fluent, new SecretRef(), validationEnabled);
}
public SecretRefBuilder(SecretRefFluent> fluent,SecretRef instance) {
this(fluent, instance, false);
}
public SecretRefBuilder(SecretRefFluent> fluent,SecretRef instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withSecretKey(instance.getSecretKey());
fluent.withSecretName(instance.getSecretName());
this.validationEnabled = validationEnabled;
}
public SecretRefBuilder(SecretRef instance) {
this(instance,false);
}
public SecretRefBuilder(SecretRef instance,Boolean validationEnabled) {
this.fluent = this;
this.withSecretKey(instance.getSecretKey());
this.withSecretName(instance.getSecretName());
this.validationEnabled = validationEnabled;
}
SecretRefFluent> fluent;
Boolean validationEnabled;
public SecretRef build() {
SecretRef buildable = new SecretRef(fluent.getSecretKey(),fluent.getSecretName());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy