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