io.kubernetes.client.openapi.models.V1alpha1AggregationRuleBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class V1alpha1AggregationRuleBuilder extends V1alpha1AggregationRuleFluentImpl implements VisitableBuilder {
V1alpha1AggregationRuleFluent> fluent;
Boolean validationEnabled;
public V1alpha1AggregationRuleBuilder() {
this(true);
}
public V1alpha1AggregationRuleBuilder(Boolean validationEnabled) {
this(new V1alpha1AggregationRule(), validationEnabled);
}
public V1alpha1AggregationRuleBuilder(V1alpha1AggregationRuleFluent> fluent) {
this(fluent, true);
}
public V1alpha1AggregationRuleBuilder(V1alpha1AggregationRuleFluent> fluent,Boolean validationEnabled) {
this(fluent, new V1alpha1AggregationRule(), validationEnabled);
}
public V1alpha1AggregationRuleBuilder(V1alpha1AggregationRuleFluent> fluent,V1alpha1AggregationRule instance) {
this(fluent, instance, true);
}
public V1alpha1AggregationRuleBuilder(V1alpha1AggregationRuleFluent> fluent,V1alpha1AggregationRule instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withClusterRoleSelectors(instance.getClusterRoleSelectors());
this.validationEnabled = validationEnabled;
}
public V1alpha1AggregationRuleBuilder(V1alpha1AggregationRule instance) {
this(instance,true);
}
public V1alpha1AggregationRuleBuilder(V1alpha1AggregationRule instance,Boolean validationEnabled) {
this.fluent = this;
this.withClusterRoleSelectors(instance.getClusterRoleSelectors());
this.validationEnabled = validationEnabled;
}
public V1alpha1AggregationRule build() {
V1alpha1AggregationRule buildable = new V1alpha1AggregationRule();
buildable.setClusterRoleSelectors(fluent.getClusterRoleSelectors());
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;
V1alpha1AggregationRuleBuilder that = (V1alpha1AggregationRuleBuilder) 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());
}
}