io.dekorate.servicebinding.model.ResourceFieldRefBuilder Maven / Gradle / Ivy
package io.dekorate.servicebinding.model;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class ResourceFieldRefBuilder extends ResourceFieldRefFluentImpl implements VisitableBuilder{
public ResourceFieldRefBuilder() {
this(false);
}
public ResourceFieldRefBuilder(Boolean validationEnabled) {
this.fluent = this; this.validationEnabled=validationEnabled;
}
public ResourceFieldRefBuilder(ResourceFieldRefFluent> fluent) {
this(fluent, false);
}
public ResourceFieldRefBuilder(ResourceFieldRefFluent> fluent,Boolean validationEnabled) {
this.fluent = fluent; this.validationEnabled=validationEnabled;
}
public ResourceFieldRefBuilder(ResourceFieldRefFluent> fluent,ResourceFieldRef instance) {
this(fluent, instance, false);
}
public ResourceFieldRefBuilder(ResourceFieldRefFluent> fluent,ResourceFieldRef instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withContainerName(instance.getContainerName());
fluent.withDivisor(instance.getDivisor());
fluent.withResource(instance.getResource());
this.validationEnabled = validationEnabled;
}
public ResourceFieldRefBuilder(ResourceFieldRef instance) {
this(instance,false);
}
public ResourceFieldRefBuilder(ResourceFieldRef instance,Boolean validationEnabled) {
this.fluent = this;
this.withContainerName(instance.getContainerName());
this.withDivisor(instance.getDivisor());
this.withResource(instance.getResource());
this.validationEnabled = validationEnabled;
}
ResourceFieldRefFluent> fluent;
Boolean validationEnabled;
public ResourceFieldRef build() {
ResourceFieldRef buildable = new ResourceFieldRef(fluent.getContainerName(),fluent.getDivisor(),fluent.getResource());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy