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