annotations.io.alauda.kubernetes.api.model.policy.DoneablePodDisruptionBudget Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model.policy;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneablePodDisruptionBudget extends PodDisruptionBudgetFluentImpl implements Doneable{
private final PodDisruptionBudgetBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneablePodDisruptionBudget(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new PodDisruptionBudgetBuilder(this);this.function=function;
}
public DoneablePodDisruptionBudget(PodDisruptionBudget item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new PodDisruptionBudgetBuilder(this, item);this.function=function;
}
public DoneablePodDisruptionBudget(PodDisruptionBudget item){
super(item);this.builder=new PodDisruptionBudgetBuilder(this, item);this.function=new Function() {
public PodDisruptionBudget apply(PodDisruptionBudget item) {
return item;
}
}
;
}
public PodDisruptionBudget done(){
return function.apply(builder.build());
}
}