annotations.io.alauda.devops.api.model.DoneableDeploymentCauseImageTrigger 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 DoneableDeploymentCauseImageTrigger extends DeploymentCauseImageTriggerFluentImpl implements Doneable{
private final DeploymentCauseImageTriggerBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableDeploymentCauseImageTrigger(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new DeploymentCauseImageTriggerBuilder(this);this.function=function;
}
public DoneableDeploymentCauseImageTrigger(DeploymentCauseImageTrigger item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new DeploymentCauseImageTriggerBuilder(this, item);this.function=function;
}
public DoneableDeploymentCauseImageTrigger(DeploymentCauseImageTrigger item){
super(item);this.builder=new DeploymentCauseImageTriggerBuilder(this, item);this.function=new Function() {
public DeploymentCauseImageTrigger apply(DeploymentCauseImageTrigger item) {
return item;
}
}
;
}
public DeploymentCauseImageTrigger done(){
return function.apply(builder.build());
}
}