annotations.io.alauda.devops.api.model.DoneableDeploymentTriggerPolicy Maven / Gradle / Ivy
package io.alauda.devops.api.model;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableDeploymentTriggerPolicy extends DeploymentTriggerPolicyFluentImpl implements Doneable{
private final DeploymentTriggerPolicyBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableDeploymentTriggerPolicy(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new DeploymentTriggerPolicyBuilder(this);this.function=function;
}
public DoneableDeploymentTriggerPolicy(DeploymentTriggerPolicy item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new DeploymentTriggerPolicyBuilder(this, item);this.function=function;
}
public DoneableDeploymentTriggerPolicy(DeploymentTriggerPolicy item){
super(item);this.builder=new DeploymentTriggerPolicyBuilder(this, item);this.function=new Function() {
public DeploymentTriggerPolicy apply(DeploymentTriggerPolicy item) {
return item;
}
}
;
}
public DeploymentTriggerPolicy done(){
return function.apply(builder.build());
}
}