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