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