io.alauda.kubernetes.api.model.ProjectStatusBuilder Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import io.alauda.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class ProjectStatusBuilder extends ProjectStatusFluentImpl implements VisitableBuilder{
ProjectStatusFluent> fluent;
Boolean validationEnabled;
public ProjectStatusBuilder(){
this(true);
}
public ProjectStatusBuilder(Boolean validationEnabled){
this(new ProjectStatus(), validationEnabled);
}
public ProjectStatusBuilder(ProjectStatusFluent> fluent){
this(fluent, true);
}
public ProjectStatusBuilder(ProjectStatusFluent> fluent,Boolean validationEnabled){
this(fluent, new ProjectStatus(), validationEnabled);
}
public ProjectStatusBuilder(ProjectStatusFluent> fluent,ProjectStatus instance){
this(fluent, instance, true);
}
public ProjectStatusBuilder(ProjectStatusFluent> fluent,ProjectStatus instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withNamespaces(instance.getNamespaces());
this.validationEnabled = validationEnabled;
}
public ProjectStatusBuilder(ProjectStatus instance){
this(instance,true);
}
public ProjectStatusBuilder(ProjectStatus instance,Boolean validationEnabled){
this.fluent = this;
this.withNamespaces(instance.getNamespaces());
this.validationEnabled = validationEnabled;
}
public ProjectStatus build(){
ProjectStatus buildable = new ProjectStatus(fluent.getNamespaces());
io.alauda.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;
ProjectStatusBuilder that = (ProjectStatusBuilder) 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;
}
}