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