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