annotations.me.snowdrop.istio.api.model.v1.routing.HTTPRewriteBuilder Maven / Gradle / Ivy
package me.snowdrop.istio.api.model.v1.routing;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class HTTPRewriteBuilder extends me.snowdrop.istio.api.model.v1.routing.HTTPRewriteFluentImpl implements VisitableBuilder{
me.snowdrop.istio.api.model.v1.routing.HTTPRewriteFluent> fluent;
Boolean validationEnabled;
public HTTPRewriteBuilder(){
this(true);
}
public HTTPRewriteBuilder(Boolean validationEnabled){
this(new HTTPRewrite(), validationEnabled);
}
public HTTPRewriteBuilder(me.snowdrop.istio.api.model.v1.routing.HTTPRewriteFluent> fluent){
this(fluent, true);
}
public HTTPRewriteBuilder(me.snowdrop.istio.api.model.v1.routing.HTTPRewriteFluent> fluent,Boolean validationEnabled){
this(fluent, new HTTPRewrite(), validationEnabled);
}
public HTTPRewriteBuilder(me.snowdrop.istio.api.model.v1.routing.HTTPRewriteFluent> fluent,me.snowdrop.istio.api.model.v1.routing.HTTPRewrite instance){
this(fluent, instance, true);
}
public HTTPRewriteBuilder(me.snowdrop.istio.api.model.v1.routing.HTTPRewriteFluent> fluent,me.snowdrop.istio.api.model.v1.routing.HTTPRewrite instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withAuthority(instance.getAuthority());
fluent.withUri(instance.getUri());
this.validationEnabled = validationEnabled;
}
public HTTPRewriteBuilder(me.snowdrop.istio.api.model.v1.routing.HTTPRewrite instance){
this(instance,true);
}
public HTTPRewriteBuilder(me.snowdrop.istio.api.model.v1.routing.HTTPRewrite instance,Boolean validationEnabled){
this.fluent = this;
this.withAuthority(instance.getAuthority());
this.withUri(instance.getUri());
this.validationEnabled = validationEnabled;
}
public me.snowdrop.istio.api.model.v1.routing.HTTPRewrite build(){
HTTPRewrite buildable = new HTTPRewrite(fluent.getAuthority(),fluent.getUri());
io.fabric8.kubernetes.api.builder.ValidationUtils.validate(buildable);
return buildable;
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
HTTPRewriteBuilder that = (HTTPRewriteBuilder) o;
if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;
if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy