
io.fabric8.kubernetes.api.model.extensions.DoneableDeploymentStrategy Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.extensions;
import io.fabric8.kubernetes.api.model.Doneable;
import io.fabric8.kubernetes.api.builder.Function;
public class DoneableDeploymentStrategy extends DeploymentStrategyFluentImpl implements Doneable{
private final DeploymentStrategyBuilder builder;
private final Function function;
public DoneableDeploymentStrategy(Function function){
super();this.builder=new DeploymentStrategyBuilder(this);this.function=function;
}
public DoneableDeploymentStrategy(DeploymentStrategy item,Function function){
super(item);this.builder=new DeploymentStrategyBuilder(this, item);this.function=function;
}
public DoneableDeploymentStrategy(DeploymentStrategy item){
super(item);this.builder=new DeploymentStrategyBuilder(this, item);this.function=new Function() {
public DeploymentStrategy apply(DeploymentStrategy item) {
return item;
}
}
;
}
public DeploymentStrategy done(){
return function.apply(builder.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy