io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRuleBuilder Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.flowcontrol.v1beta1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class NonResourcePolicyRuleBuilder extends io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRuleFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder {
io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRuleFluent> fluent;
java.lang.Boolean validationEnabled;
public NonResourcePolicyRuleBuilder() {
this(true);
}
public NonResourcePolicyRuleBuilder(java.lang.Boolean validationEnabled) {
this(new NonResourcePolicyRule(), validationEnabled);
}
public NonResourcePolicyRuleBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRuleFluent> fluent) {
this(fluent, true);
}
public NonResourcePolicyRuleBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRuleFluent> fluent,java.lang.Boolean validationEnabled) {
this(fluent, new NonResourcePolicyRule(), validationEnabled);
}
public NonResourcePolicyRuleBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRuleFluent> fluent,io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRule instance) {
this(fluent, instance, true);
}
public NonResourcePolicyRuleBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRuleFluent> fluent,io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRule instance,java.lang.Boolean validationEnabled) {
this.fluent = fluent;
fluent.withNonResourceURLs(instance.getNonResourceURLs());
fluent.withVerbs(instance.getVerbs());
this.validationEnabled = validationEnabled;
}
public NonResourcePolicyRuleBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRule instance) {
this(instance,true);
}
public NonResourcePolicyRuleBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRule instance,java.lang.Boolean validationEnabled) {
this.fluent = this;
this.withNonResourceURLs(instance.getNonResourceURLs());
this.withVerbs(instance.getVerbs());
this.validationEnabled = validationEnabled;
}
public io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.NonResourcePolicyRule build() {
NonResourcePolicyRule buildable = new NonResourcePolicyRule(fluent.getNonResourceURLs(),fluent.getVerbs());
return buildable;
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
NonResourcePolicyRuleBuilder that = (NonResourcePolicyRuleBuilder) 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;
}
public int hashCode() {
return java.util.Objects.hash(fluent, validationEnabled, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy