io.github.microcks.operator.api.base.v1alpha1.SchemaRegistrySpecBuilder Maven / Gradle / Ivy
package io.github.microcks.operator.api.base.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class SchemaRegistrySpecBuilder extends SchemaRegistrySpecFluent implements VisitableBuilder{
public SchemaRegistrySpecBuilder() {
this(new SchemaRegistrySpec());
}
public SchemaRegistrySpecBuilder(SchemaRegistrySpecFluent> fluent) {
this(fluent, new SchemaRegistrySpec());
}
public SchemaRegistrySpecBuilder(SchemaRegistrySpecFluent> fluent,SchemaRegistrySpec instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public SchemaRegistrySpecBuilder(SchemaRegistrySpec instance) {
this.fluent = this;
this.copyInstance(instance);
}
SchemaRegistrySpecFluent> fluent;
public SchemaRegistrySpec build() {
SchemaRegistrySpec buildable = new SchemaRegistrySpec();
buildable.setUrl(fluent.getUrl());
buildable.setConfluentCompatibility(fluent.isConfluentCompatibility());
buildable.setUsername(fluent.getUsername());
buildable.setCredentialsSource(fluent.getCredentialsSource());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy