io.alauda.kubernetes.api.model.extensions.DoneableDeployment Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model.extensions;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableDeployment extends DeploymentFluentImpl implements Doneable{
private final DeploymentBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableDeployment(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new DeploymentBuilder(this);this.function=function;
}
public DoneableDeployment(Deployment item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new DeploymentBuilder(this, item);this.function=function;
}
public DoneableDeployment(Deployment item){
super(item);this.builder=new DeploymentBuilder(this, item);this.function=new Function() {
public Deployment apply(Deployment item) {
return item;
}
}
;
}
public Deployment done(){
return function.apply(builder.build());
}
}