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