me.snowdrop.istio.api.model.v1.networking.OutlierDetectionFluentImpl Maven / Gradle / Ivy
package me.snowdrop.istio.api.model.v1.networking;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.Integer;
import java.lang.Deprecated;
import javax.validation.Valid;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
public class OutlierDetectionFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements OutlierDetectionFluent{
private HTTPSettingsBuilder http;
public OutlierDetectionFluentImpl(){
}
public OutlierDetectionFluentImpl(OutlierDetection instance){
this.withHttp(instance.getHttp());
}
/**
* This method has been deprecated, please use method buildHttp instead.
*/
@Deprecated public HTTPSettings getHttp(){
return this.http!=null?this.http.build():null;
}
public HTTPSettings buildHttp(){
return this.http!=null?this.http.build():null;
}
public A withHttp(HTTPSettings http){
_visitables.remove(this.http);
if (http!=null){ this.http= new HTTPSettingsBuilder(http); _visitables.add(this.http);} return (A) this;
}
public Boolean hasHttp(){
return this.http != null;
}
public A withNewHttp(Integer http1MaxPendingRequests,Integer http2MaxRequests,Integer maxRequestsPerConnection,Integer maxRetries){
return (A)withHttp(new HTTPSettings(http1MaxPendingRequests, http2MaxRequests, maxRequestsPerConnection, maxRetries));
}
public OutlierDetectionFluent.HttpNested withNewHttp(){
return new HttpNestedImpl();
}
public OutlierDetectionFluent.HttpNested withNewHttpLike(HTTPSettings item){
return new HttpNestedImpl(item);
}
public OutlierDetectionFluent.HttpNested editHttp(){
return withNewHttpLike(getHttp());
}
public OutlierDetectionFluent.HttpNested editOrNewHttp(){
return withNewHttpLike(getHttp() != null ? getHttp(): new HTTPSettingsBuilder().build());
}
public OutlierDetectionFluent.HttpNested editOrNewHttpLike(HTTPSettings item){
return withNewHttpLike(getHttp() != null ? getHttp(): 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;
OutlierDetectionFluentImpl that = (OutlierDetectionFluentImpl) o;
if (http != null ? !http.equals(that.http) :that.http != null) return false;
return true;
}
public class HttpNestedImpl extends HTTPSettingsFluentImpl> implements OutlierDetectionFluent.HttpNested,io.fabric8.kubernetes.api.builder.Nested{
private final HTTPSettingsBuilder builder;
HttpNestedImpl(HTTPSettings item){
this.builder = new HTTPSettingsBuilder(this, item);
}
HttpNestedImpl(){
this.builder = new HTTPSettingsBuilder(this);
}
public N and(){
return (N) OutlierDetectionFluentImpl.this.withHttp(builder.build());
}
public N endHttp(){
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy