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