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