
io.kubernetes.client.openapi.models.V1APIGroupBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1APIGroupBuilder extends V1APIGroupFluentImpl implements VisitableBuilder{
public V1APIGroupBuilder() {
this(false);
}
public V1APIGroupBuilder(Boolean validationEnabled) {
this(new V1APIGroup(), validationEnabled);
}
public V1APIGroupBuilder(V1APIGroupFluent> fluent) {
this(fluent, false);
}
public V1APIGroupBuilder(V1APIGroupFluent> fluent,Boolean validationEnabled) {
this(fluent, new V1APIGroup(), validationEnabled);
}
public V1APIGroupBuilder(V1APIGroupFluent> fluent,V1APIGroup instance) {
this(fluent, instance, false);
}
public V1APIGroupBuilder(V1APIGroupFluent> fluent,V1APIGroup instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withApiVersion(instance.getApiVersion());
fluent.withKind(instance.getKind());
fluent.withName(instance.getName());
fluent.withPreferredVersion(instance.getPreferredVersion());
fluent.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs());
fluent.withVersions(instance.getVersions());
this.validationEnabled = validationEnabled;
}
public V1APIGroupBuilder(V1APIGroup instance) {
this(instance,false);
}
public V1APIGroupBuilder(V1APIGroup instance,Boolean validationEnabled) {
this.fluent = this;
this.withApiVersion(instance.getApiVersion());
this.withKind(instance.getKind());
this.withName(instance.getName());
this.withPreferredVersion(instance.getPreferredVersion());
this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs());
this.withVersions(instance.getVersions());
this.validationEnabled = validationEnabled;
}
V1APIGroupFluent> fluent;
Boolean validationEnabled;
public V1APIGroup build() {
V1APIGroup buildable = new V1APIGroup();
buildable.setApiVersion(fluent.getApiVersion());
buildable.setKind(fluent.getKind());
buildable.setName(fluent.getName());
buildable.setPreferredVersion(fluent.getPreferredVersion());
buildable.setServerAddressByClientCIDRs(fluent.getServerAddressByClientCIDRs());
buildable.setVersions(fluent.getVersions());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy