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