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

io.fabric8.openshift.api.model.miscellaneous.apiserver.v1.APIRequestCountSpecBuilder Maven / Gradle / Ivy

package io.fabric8.openshift.api.model.miscellaneous.apiserver.v1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class APIRequestCountSpecBuilder extends APIRequestCountSpecFluentImpl implements VisitableBuilder{
  public APIRequestCountSpecBuilder() {
    this(false);
  }
  public APIRequestCountSpecBuilder(Boolean validationEnabled) {
    this(new APIRequestCountSpec(), validationEnabled);
  }
  public APIRequestCountSpecBuilder(APIRequestCountSpecFluent fluent) {
    this(fluent, false);
  }
  public APIRequestCountSpecBuilder(APIRequestCountSpecFluent fluent,Boolean validationEnabled) {
    this(fluent, new APIRequestCountSpec(), validationEnabled);
  }
  public APIRequestCountSpecBuilder(APIRequestCountSpecFluent fluent,APIRequestCountSpec instance) {
    this(fluent, instance, false);
  }
  public APIRequestCountSpecBuilder(APIRequestCountSpecFluent fluent,APIRequestCountSpec instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withNumberOfUsersToReport(instance.getNumberOfUsersToReport());
      fluent.withAdditionalProperties(instance.getAdditionalProperties());
    }
    this.validationEnabled = validationEnabled; 
  }
  public APIRequestCountSpecBuilder(APIRequestCountSpec instance) {
    this(instance,false);
  }
  public APIRequestCountSpecBuilder(APIRequestCountSpec instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withNumberOfUsersToReport(instance.getNumberOfUsersToReport());
      this.withAdditionalProperties(instance.getAdditionalProperties());
    }
    this.validationEnabled = validationEnabled; 
  }
  APIRequestCountSpecFluent fluent;
  Boolean validationEnabled;
  public APIRequestCountSpec build() {
    APIRequestCountSpec buildable = new APIRequestCountSpec(fluent.getNumberOfUsersToReport());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy