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

io.kubernetes.client.openapi.models.V1LifecycleBuilder 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;
public class V1LifecycleBuilder extends V1LifecycleFluent implements VisitableBuilder{
  public V1LifecycleBuilder() {
    this(new V1Lifecycle());
  }
  
  public V1LifecycleBuilder(V1LifecycleFluent fluent) {
    this(fluent, new V1Lifecycle());
  }
  
  public V1LifecycleBuilder(V1LifecycleFluent fluent,V1Lifecycle instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public V1LifecycleBuilder(V1Lifecycle instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  V1LifecycleFluent fluent;
  
  public V1Lifecycle build() {
    V1Lifecycle buildable = new V1Lifecycle();
    buildable.setPostStart(fluent.buildPostStart());
    buildable.setPreStop(fluent.buildPreStop());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy