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

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

package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1PodFailurePolicyBuilder extends V1PodFailurePolicyFluentImpl implements VisitableBuilder{
  public V1PodFailurePolicyBuilder() {
    this(false);
  }
  public V1PodFailurePolicyBuilder(Boolean validationEnabled) {
    this(new V1PodFailurePolicy(), validationEnabled);
  }
  public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent) {
    this(fluent, false);
  }
  public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent,Boolean validationEnabled) {
    this(fluent, new V1PodFailurePolicy(), validationEnabled);
  }
  public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent,V1PodFailurePolicy instance) {
    this(fluent, instance, false);
  }
  public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent,V1PodFailurePolicy instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withRules(instance.getRules());
    }
    this.validationEnabled = validationEnabled; 
  }
  public V1PodFailurePolicyBuilder(V1PodFailurePolicy instance) {
    this(instance,false);
  }
  public V1PodFailurePolicyBuilder(V1PodFailurePolicy instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withRules(instance.getRules());
    }
    this.validationEnabled = validationEnabled; 
  }
  V1PodFailurePolicyFluent fluent;
  Boolean validationEnabled;
  public V1PodFailurePolicy build() {
    V1PodFailurePolicy buildable = new V1PodFailurePolicy();
    buildable.setRules(fluent.getRules());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy