io.alauda.kubernetes.api.model.extensions.DoneableDeploymentStatus 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 DoneableDeploymentStatus extends DeploymentStatusFluentImpl implements Doneable{
private final DeploymentStatusBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableDeploymentStatus(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new DeploymentStatusBuilder(this);this.function=function;
}
public DoneableDeploymentStatus(DeploymentStatus item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new DeploymentStatusBuilder(this, item);this.function=function;
}
public DoneableDeploymentStatus(DeploymentStatus item){
super(item);this.builder=new DeploymentStatusBuilder(this, item);this.function=new Function() {
public DeploymentStatus apply(DeploymentStatus item) {
return item;
}
}
;
}
public DeploymentStatus done(){
return function.apply(builder.build());
}
}