io.fabric8.openclustermanagement.api.model.cluster.v1.ClientConfigBuilder Maven / Gradle / Ivy
package io.fabric8.openclustermanagement.api.model.cluster.v1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ClientConfigBuilder extends ClientConfigFluent implements VisitableBuilder{
public ClientConfigBuilder() {
this(new ClientConfig());
}
public ClientConfigBuilder(ClientConfigFluent> fluent) {
this(fluent, new ClientConfig());
}
public ClientConfigBuilder(ClientConfigFluent> fluent,ClientConfig instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public ClientConfigBuilder(ClientConfig instance) {
this.fluent = this;
this.copyInstance(instance);
}
ClientConfigFluent> fluent;
public ClientConfig build() {
ClientConfig buildable = new ClientConfig(fluent.getCaBundle(),fluent.getUrl());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}