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