
annotations.io.fabric8.kubernetes.api.model.extensions.IngressRuleFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.extensions;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.String;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import javax.validation.Valid;
import java.lang.Object;
import io.fabric8.kubernetes.api.builder.Nested;
public class IngressRuleFluentImpl> extends BaseFluent implements IngressRuleFluent{
private String host;
private VisitableBuilder extends HTTPIngressRuleValue,?> 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 IngressRuleFluent.HttpNested withNewHttp(){
return new HttpNestedImpl();
}
public IngressRuleFluent.HttpNested withNewHttpLike(HTTPIngressRuleValue item){
return new HttpNestedImpl(item);
}
public IngressRuleFluent.HttpNested editHttp(){
return withNewHttpLike(getHttp());
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) 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 IngressRuleFluent.HttpNested,Nested{
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