io.alauda.devops.api.model.DoneableDeploymentConfig 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 DoneableDeploymentConfig extends DeploymentConfigFluentImpl implements Doneable{
private final DeploymentConfigBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableDeploymentConfig(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new DeploymentConfigBuilder(this);this.function=function;
}
public DoneableDeploymentConfig(DeploymentConfig item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new DeploymentConfigBuilder(this, item);this.function=function;
}
public DoneableDeploymentConfig(DeploymentConfig item){
super(item);this.builder=new DeploymentConfigBuilder(this, item);this.function=new Function() {
public DeploymentConfig apply(DeploymentConfig item) {
return item;
}
}
;
}
public DeploymentConfig done(){
return function.apply(builder.build());
}
}