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