io.fabric8.tekton.triggers.v1alpha1.ResourcesBuilder Maven / Gradle / Ivy
package io.fabric8.tekton.triggers.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class ResourcesBuilder extends ResourcesFluentImpl implements VisitableBuilder{
public ResourcesBuilder() {
this(false);
}
public ResourcesBuilder(Boolean validationEnabled) {
this(new Resources(), validationEnabled);
}
public ResourcesBuilder(ResourcesFluent> fluent) {
this(fluent, false);
}
public ResourcesBuilder(ResourcesFluent> fluent,Boolean validationEnabled) {
this(fluent, new Resources(), validationEnabled);
}
public ResourcesBuilder(ResourcesFluent> fluent,Resources instance) {
this(fluent, instance, false);
}
public ResourcesBuilder(ResourcesFluent> fluent,Resources instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withCustomResource(instance.getCustomResource());
fluent.withKubernetesResource(instance.getKubernetesResource());
this.validationEnabled = validationEnabled;
}
public ResourcesBuilder(Resources instance) {
this(instance,false);
}
public ResourcesBuilder(Resources instance,Boolean validationEnabled) {
this.fluent = this;
this.withCustomResource(instance.getCustomResource());
this.withKubernetesResource(instance.getKubernetesResource());
this.validationEnabled = validationEnabled;
}
ResourcesFluent> fluent;
Boolean validationEnabled;
public Resources build() {
Resources buildable = new Resources(fluent.getCustomResource(),fluent.getKubernetesResource());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy