io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaConditionBuilder 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 FlowSchemaConditionBuilder extends io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaConditionFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder {
io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaConditionFluent> fluent;
java.lang.Boolean validationEnabled;
public FlowSchemaConditionBuilder() {
this(true);
}
public FlowSchemaConditionBuilder(java.lang.Boolean validationEnabled) {
this(new FlowSchemaCondition(), validationEnabled);
}
public FlowSchemaConditionBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaConditionFluent> fluent) {
this(fluent, true);
}
public FlowSchemaConditionBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaConditionFluent> fluent,java.lang.Boolean validationEnabled) {
this(fluent, new FlowSchemaCondition(), validationEnabled);
}
public FlowSchemaConditionBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaConditionFluent> fluent,io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaCondition instance) {
this(fluent, instance, true);
}
public FlowSchemaConditionBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaConditionFluent> fluent,io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaCondition instance,java.lang.Boolean validationEnabled) {
this.fluent = fluent;
fluent.withLastTransitionTime(instance.getLastTransitionTime());
fluent.withMessage(instance.getMessage());
fluent.withReason(instance.getReason());
fluent.withStatus(instance.getStatus());
fluent.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
public FlowSchemaConditionBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaCondition instance) {
this(instance,true);
}
public FlowSchemaConditionBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaCondition instance,java.lang.Boolean validationEnabled) {
this.fluent = this;
this.withLastTransitionTime(instance.getLastTransitionTime());
this.withMessage(instance.getMessage());
this.withReason(instance.getReason());
this.withStatus(instance.getStatus());
this.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
public io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaCondition build() {
FlowSchemaCondition buildable = new FlowSchemaCondition(fluent.getLastTransitionTime(),fluent.getMessage(),fluent.getReason(),fluent.getStatus(),fluent.getType());
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;
FlowSchemaConditionBuilder that = (FlowSchemaConditionBuilder) 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