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

io.fabric8.openshift.api.model.miscellaneous.cloudcredential.v1.CredentialsRequestSpecBuilder Maven / Gradle / Ivy

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class CredentialsRequestSpecBuilder extends CredentialsRequestSpecFluentImpl implements VisitableBuilder{
  public CredentialsRequestSpecBuilder() {
    this(false);
  }
  public CredentialsRequestSpecBuilder(Boolean validationEnabled) {
    this(new CredentialsRequestSpec(), validationEnabled);
  }
  public CredentialsRequestSpecBuilder(CredentialsRequestSpecFluent fluent) {
    this(fluent, false);
  }
  public CredentialsRequestSpecBuilder(CredentialsRequestSpecFluent fluent,Boolean validationEnabled) {
    this(fluent, new CredentialsRequestSpec(), validationEnabled);
  }
  public CredentialsRequestSpecBuilder(CredentialsRequestSpecFluent fluent,CredentialsRequestSpec instance) {
    this(fluent, instance, false);
  }
  public CredentialsRequestSpecBuilder(CredentialsRequestSpecFluent fluent,CredentialsRequestSpec instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withProviderSpec(instance.getProviderSpec());
      fluent.withSecretRef(instance.getSecretRef());
      fluent.withServiceAccountNames(instance.getServiceAccountNames());
      fluent.withAdditionalProperties(instance.getAdditionalProperties());
    }
    this.validationEnabled = validationEnabled; 
  }
  public CredentialsRequestSpecBuilder(CredentialsRequestSpec instance) {
    this(instance,false);
  }
  public CredentialsRequestSpecBuilder(CredentialsRequestSpec instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withProviderSpec(instance.getProviderSpec());
      this.withSecretRef(instance.getSecretRef());
      this.withServiceAccountNames(instance.getServiceAccountNames());
      this.withAdditionalProperties(instance.getAdditionalProperties());
    }
    this.validationEnabled = validationEnabled; 
  }
  CredentialsRequestSpecFluent fluent;
  Boolean validationEnabled;
  public CredentialsRequestSpec build() {
    CredentialsRequestSpec buildable = new CredentialsRequestSpec(fluent.getProviderSpec(),fluent.getSecretRef(),fluent.getServiceAccountNames());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy