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

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

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

import io.kubernetes.client.fluent.VisitableBuilder;
public class V1LeaseSpecBuilder extends V1LeaseSpecFluent implements VisitableBuilder{
  public V1LeaseSpecBuilder() {
    this(new V1LeaseSpec());
  }
  
  public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent) {
    this(fluent, new V1LeaseSpec());
  }
  
  public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent,V1LeaseSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public V1LeaseSpecBuilder(V1LeaseSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  V1LeaseSpecFluent fluent;
  
  public V1LeaseSpec build() {
    V1LeaseSpec buildable = new V1LeaseSpec();
    buildable.setAcquireTime(fluent.getAcquireTime());
    buildable.setHolderIdentity(fluent.getHolderIdentity());
    buildable.setLeaseDurationSeconds(fluent.getLeaseDurationSeconds());
    buildable.setLeaseTransitions(fluent.getLeaseTransitions());
    buildable.setPreferredHolder(fluent.getPreferredHolder());
    buildable.setRenewTime(fluent.getRenewTime());
    buildable.setStrategy(fluent.getStrategy());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy