annotations.me.snowdrop.istio.api.model.v1.routing.MatchConditionFluentImpl Maven / Gradle / Ivy
package me.snowdrop.istio.api.model.v1.routing;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Boolean;
import javax.validation.Valid;
import java.lang.Object;
public class MatchConditionFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements MatchConditionFluent{
private MatchRequestBuilder request;
private IstioServiceBuilder source;
private me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder tcp;
private me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder udp;
public MatchConditionFluentImpl(){
}
public MatchConditionFluentImpl(MatchCondition instance){
this.withRequest(instance.getRequest());
this.withSource(instance.getSource());
this.withTcp(instance.getTcp());
this.withUdp(instance.getUdp());
}
/**
* This method has been deprecated, please use method buildRequest instead.
*/
@Deprecated public MatchRequest getRequest(){
return this.request!=null?this.request.build():null;
}
public MatchRequest buildRequest(){
return this.request!=null?this.request.build():null;
}
public A withRequest(MatchRequest request){
_visitables.remove(this.request);
if (request!=null){ this.request= new MatchRequestBuilder(request); _visitables.add(this.request);} return (A) this;
}
public Boolean hasRequest(){
return this.request != null;
}
public MatchConditionFluent.RequestNested withNewRequest(){
return new RequestNestedImpl();
}
public MatchConditionFluent.RequestNested withNewRequestLike(MatchRequest item){
return new RequestNestedImpl(item);
}
public MatchConditionFluent.RequestNested editRequest(){
return withNewRequestLike(getRequest());
}
public MatchConditionFluent.RequestNested editOrNewRequest(){
return withNewRequestLike(getRequest() != null ? getRequest(): new MatchRequestBuilder().build());
}
public MatchConditionFluent.RequestNested editOrNewRequestLike(MatchRequest item){
return withNewRequestLike(getRequest() != null ? getRequest(): item);
}
/**
* This method has been deprecated, please use method buildSource instead.
*/
@Deprecated public IstioService getSource(){
return this.source!=null?this.source.build():null;
}
public IstioService buildSource(){
return this.source!=null?this.source.build():null;
}
public A withSource(IstioService source){
_visitables.remove(this.source);
if (source!=null){ this.source= new IstioServiceBuilder(source); _visitables.add(this.source);} return (A) this;
}
public Boolean hasSource(){
return this.source != null;
}
public MatchConditionFluent.SourceNested withNewSource(){
return new SourceNestedImpl();
}
public MatchConditionFluent.SourceNested withNewSourceLike(IstioService item){
return new SourceNestedImpl(item);
}
public MatchConditionFluent.SourceNested editSource(){
return withNewSourceLike(getSource());
}
public MatchConditionFluent.SourceNested editOrNewSource(){
return withNewSourceLike(getSource() != null ? getSource(): new IstioServiceBuilder().build());
}
public MatchConditionFluent.SourceNested editOrNewSourceLike(IstioService item){
return withNewSourceLike(getSource() != null ? getSource(): item);
}
/**
* This method has been deprecated, please use method buildTcp instead.
*/
@Deprecated public me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes getTcp(){
return this.tcp!=null?this.tcp.build():null;
}
public me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes buildTcp(){
return this.tcp!=null?this.tcp.build():null;
}
public A withTcp(me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes tcp){
_visitables.remove(this.tcp);
if (tcp!=null){ this.tcp= new me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder(tcp); _visitables.add(this.tcp);} return (A) this;
}
public Boolean hasTcp(){
return this.tcp != null;
}
public MatchConditionFluent.TcpNested withNewTcp(){
return new TcpNestedImpl();
}
public MatchConditionFluent.TcpNested withNewTcpLike(me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes item){
return new TcpNestedImpl(item);
}
public MatchConditionFluent.TcpNested editTcp(){
return withNewTcpLike(getTcp());
}
public MatchConditionFluent.TcpNested editOrNewTcp(){
return withNewTcpLike(getTcp() != null ? getTcp(): new me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder().build());
}
public MatchConditionFluent.TcpNested editOrNewTcpLike(me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes item){
return withNewTcpLike(getTcp() != null ? getTcp(): item);
}
/**
* This method has been deprecated, please use method buildUdp instead.
*/
@Deprecated public me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes getUdp(){
return this.udp!=null?this.udp.build():null;
}
public me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes buildUdp(){
return this.udp!=null?this.udp.build():null;
}
public A withUdp(me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes udp){
_visitables.remove(this.udp);
if (udp!=null){ this.udp= new me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder(udp); _visitables.add(this.udp);} return (A) this;
}
public Boolean hasUdp(){
return this.udp != null;
}
public MatchConditionFluent.UdpNested withNewUdp(){
return new UdpNestedImpl();
}
public MatchConditionFluent.UdpNested withNewUdpLike(me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes item){
return new UdpNestedImpl(item);
}
public MatchConditionFluent.UdpNested editUdp(){
return withNewUdpLike(getUdp());
}
public MatchConditionFluent.UdpNested editOrNewUdp(){
return withNewUdpLike(getUdp() != null ? getUdp(): new me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder().build());
}
public MatchConditionFluent.UdpNested editOrNewUdpLike(me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes item){
return withNewUdpLike(getUdp() != null ? getUdp(): item);
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
MatchConditionFluentImpl that = (MatchConditionFluentImpl) o;
if (request != null ? !request.equals(that.request) :that.request != null) return false;
if (source != null ? !source.equals(that.source) :that.source != null) return false;
if (tcp != null ? !tcp.equals(that.tcp) :that.tcp != null) return false;
if (udp != null ? !udp.equals(that.udp) :that.udp != null) return false;
return true;
}
public class RequestNestedImpl extends MatchRequestFluentImpl> implements MatchConditionFluent.RequestNested,io.fabric8.kubernetes.api.builder.Nested{
private final MatchRequestBuilder builder;
RequestNestedImpl(MatchRequest item){
this.builder = new MatchRequestBuilder(this, item);
}
RequestNestedImpl(){
this.builder = new MatchRequestBuilder(this);
}
public N and(){
return (N) MatchConditionFluentImpl.this.withRequest(builder.build());
}
public N endRequest(){
return and();
}
}
public class SourceNestedImpl extends IstioServiceFluentImpl> implements MatchConditionFluent.SourceNested,io.fabric8.kubernetes.api.builder.Nested{
private final IstioServiceBuilder builder;
SourceNestedImpl(IstioService item){
this.builder = new IstioServiceBuilder(this, item);
}
SourceNestedImpl(){
this.builder = new IstioServiceBuilder(this);
}
public N and(){
return (N) MatchConditionFluentImpl.this.withSource(builder.build());
}
public N endSource(){
return and();
}
}
public class TcpNestedImpl extends me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesFluentImpl> implements MatchConditionFluent.TcpNested,io.fabric8.kubernetes.api.builder.Nested{
private final me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder builder;
TcpNestedImpl(me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes item){
this.builder = new me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder(this, item);
}
TcpNestedImpl(){
this.builder = new me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder(this);
}
public N and(){
return (N) MatchConditionFluentImpl.this.withTcp(builder.build());
}
public N endTcp(){
return and();
}
}
public class UdpNestedImpl extends me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesFluentImpl> implements MatchConditionFluent.UdpNested,io.fabric8.kubernetes.api.builder.Nested{
private final me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder builder;
UdpNestedImpl(me.snowdrop.istio.api.model.v1.routing.L4MatchAttributes item){
this.builder = new me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder(this, item);
}
UdpNestedImpl(){
this.builder = new me.snowdrop.istio.api.model.v1.routing.L4MatchAttributesBuilder(this);
}
public N and(){
return (N) MatchConditionFluentImpl.this.withUdp(builder.build());
}
public N endUdp(){
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy