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