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