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

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

There is a newer version: 22.0.0
Show newest version
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class StorageV1TokenRequestBuilder extends StorageV1TokenRequestFluentImpl implements VisitableBuilder{
  public StorageV1TokenRequestBuilder() {
    this(false);
  }
  public StorageV1TokenRequestBuilder(Boolean validationEnabled) {
    this(new StorageV1TokenRequest(), validationEnabled);
  }
  public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent) {
    this(fluent, false);
  }
  public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent,Boolean validationEnabled) {
    this(fluent, new StorageV1TokenRequest(), validationEnabled);
  }
  public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent,StorageV1TokenRequest instance) {
    this(fluent, instance, false);
  }
  public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent,StorageV1TokenRequest instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withAudience(instance.getAudience());
      fluent.withExpirationSeconds(instance.getExpirationSeconds());
    }
    this.validationEnabled = validationEnabled; 
  }
  public StorageV1TokenRequestBuilder(StorageV1TokenRequest instance) {
    this(instance,false);
  }
  public StorageV1TokenRequestBuilder(StorageV1TokenRequest instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withAudience(instance.getAudience());
      this.withExpirationSeconds(instance.getExpirationSeconds());
    }
    this.validationEnabled = validationEnabled; 
  }
  StorageV1TokenRequestFluent fluent;
  Boolean validationEnabled;
  public StorageV1TokenRequest build() {
    StorageV1TokenRequest buildable = new StorageV1TokenRequest();
    buildable.setAudience(fluent.getAudience());
    buildable.setExpirationSeconds(fluent.getExpirationSeconds());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy