io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReferenceBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class AdmissionregistrationV1ServiceReferenceBuilder extends AdmissionregistrationV1ServiceReferenceFluentImpl implements VisitableBuilder{
public AdmissionregistrationV1ServiceReferenceBuilder() {
this(false);
}
public AdmissionregistrationV1ServiceReferenceBuilder(Boolean validationEnabled) {
this(new AdmissionregistrationV1ServiceReference(), validationEnabled);
}
public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent> fluent) {
this(fluent, false);
}
public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent> fluent,Boolean validationEnabled) {
this(fluent, new AdmissionregistrationV1ServiceReference(), validationEnabled);
}
public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent> fluent,AdmissionregistrationV1ServiceReference instance) {
this(fluent, instance, false);
}
public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent> fluent,AdmissionregistrationV1ServiceReference instance,Boolean validationEnabled) {
this.fluent = fluent;
if (instance != null) {
fluent.withName(instance.getName());
fluent.withNamespace(instance.getNamespace());
fluent.withPath(instance.getPath());
fluent.withPort(instance.getPort());
}
this.validationEnabled = validationEnabled;
}
public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReference instance) {
this(instance,false);
}
public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReference instance,Boolean validationEnabled) {
this.fluent = this;
if (instance != null) {
this.withName(instance.getName());
this.withNamespace(instance.getNamespace());
this.withPath(instance.getPath());
this.withPort(instance.getPort());
}
this.validationEnabled = validationEnabled;
}
AdmissionregistrationV1ServiceReferenceFluent> fluent;
Boolean validationEnabled;
public AdmissionregistrationV1ServiceReference build() {
AdmissionregistrationV1ServiceReference buildable = new AdmissionregistrationV1ServiceReference();
buildable.setName(fluent.getName());
buildable.setNamespace(fluent.getNamespace());
buildable.setPath(fluent.getPath());
buildable.setPort(fluent.getPort());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy