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

io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategyBuilder 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 V1RollingUpdateStatefulSetStrategyBuilder extends V1RollingUpdateStatefulSetStrategyFluentImpl implements VisitableBuilder{
  public V1RollingUpdateStatefulSetStrategyBuilder() {
    this(false);
  }
  public V1RollingUpdateStatefulSetStrategyBuilder(Boolean validationEnabled) {
    this(new V1RollingUpdateStatefulSetStrategy(), validationEnabled);
  }
  public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent) {
    this(fluent, false);
  }
  public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent,Boolean validationEnabled) {
    this(fluent, new V1RollingUpdateStatefulSetStrategy(), validationEnabled);
  }
  public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent,V1RollingUpdateStatefulSetStrategy instance) {
    this(fluent, instance, false);
  }
  public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent,V1RollingUpdateStatefulSetStrategy instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withMaxUnavailable(instance.getMaxUnavailable());
      fluent.withPartition(instance.getPartition());
    }
    this.validationEnabled = validationEnabled; 
  }
  public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategy instance) {
    this(instance,false);
  }
  public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategy instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withMaxUnavailable(instance.getMaxUnavailable());
      this.withPartition(instance.getPartition());
    }
    this.validationEnabled = validationEnabled; 
  }
  V1RollingUpdateStatefulSetStrategyFluent fluent;
  Boolean validationEnabled;
  public V1RollingUpdateStatefulSetStrategy build() {
    V1RollingUpdateStatefulSetStrategy buildable = new V1RollingUpdateStatefulSetStrategy();
    buildable.setMaxUnavailable(fluent.getMaxUnavailable());
    buildable.setPartition(fluent.getPartition());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy