All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReferenceBuilder Maven / Gradle / Ivy

package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class ApiextensionsV1ServiceReferenceBuilder extends ApiextensionsV1ServiceReferenceFluentImpl implements VisitableBuilder{
  public ApiextensionsV1ServiceReferenceBuilder() {
    this(false);
  }
  public ApiextensionsV1ServiceReferenceBuilder(Boolean validationEnabled) {
    this(new ApiextensionsV1ServiceReference(), validationEnabled);
  }
  public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent) {
    this(fluent, false);
  }
  public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent,Boolean validationEnabled) {
    this(fluent, new ApiextensionsV1ServiceReference(), validationEnabled);
  }
  public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent,ApiextensionsV1ServiceReference instance) {
    this(fluent, instance, false);
  }
  public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent,ApiextensionsV1ServiceReference 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 ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReference instance) {
    this(instance,false);
  }
  public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReference 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; 
  }
  ApiextensionsV1ServiceReferenceFluent fluent;
  Boolean validationEnabled;
  public ApiextensionsV1ServiceReference build() {
    ApiextensionsV1ServiceReference buildable = new ApiextensionsV1ServiceReference();
    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