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