
annotations.io.fabric8.kubernetes.api.model.extensions.IngressRuleFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.extensions;
import java.util.HashMap;
import java.io.Serializable;
import java.util.Map;
import java.util.Map;
import java.util.AbstractMap;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.Builder;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import io.fabric8.kubernetes.api.builder.Fluent;
import io.fabric8.kubernetes.api.builder.Nested;
public class IngressRuleFluentImpl> extends BaseFluent implements IngressRuleFluent{
String host; VisitableBuilder http;
public IngressRuleFluentImpl(){
}
public IngressRuleFluentImpl( IngressRule instance ){
this.withHost(instance.getHost()); this.withHttp(instance.getHttp());
}
public String getHost(){
return this.host;
}
public A withHost( String host){
this.host=host; return (A) this;
}
public HTTPIngressRuleValue getHttp(){
return this.http!=null?this.http.build():null;
}
public A withHttp( HTTPIngressRuleValue http){
if (http!=null){ this.http= new HTTPIngressRuleValueBuilder(http); _visitables.add(this.http);} return (A) this;
}
public HttpNested withNewHttp(){
return new HttpNestedImpl();
}
public HttpNested withNewHttpLike( HTTPIngressRuleValue item){
return new HttpNestedImpl(item);
}
public HttpNested editHttp(){
return withNewHttpLike(getHttp());
}
public boolean equals( Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
IngressRuleFluentImpl that = (IngressRuleFluentImpl) o;
if (host != null ? !host.equals(that.host) :that.host != null) return false;
if (http != null ? !http.equals(that.http) :that.http != null) return false;
return true;
}
public class HttpNestedImpl extends HTTPIngressRuleValueFluentImpl> implements HttpNested{
private final HTTPIngressRuleValueBuilder builder;
HttpNestedImpl (){
this.builder = new HTTPIngressRuleValueBuilder(this);
}
HttpNestedImpl ( HTTPIngressRuleValue item){
this.builder = new HTTPIngressRuleValueBuilder(this, item);
}
public N and(){
return (N) IngressRuleFluentImpl.this.withHttp(builder.build());
}
public N endHttp(){
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy