io.alauda.devops.api.model.DoneableDeploymentCause Maven / Gradle / Ivy
package io.alauda.devops.api.model;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableDeploymentCause extends DeploymentCauseFluentImpl implements Doneable{
private final DeploymentCauseBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableDeploymentCause(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new DeploymentCauseBuilder(this);this.function=function;
}
public DoneableDeploymentCause(DeploymentCause item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new DeploymentCauseBuilder(this, item);this.function=function;
}
public DoneableDeploymentCause(DeploymentCause item){
super(item);this.builder=new DeploymentCauseBuilder(this, item);this.function=new Function() {
public DeploymentCause apply(DeploymentCause item) {
return item;
}
}
;
}
public DeploymentCause done(){
return function.apply(builder.build());
}
}