io.alauda.kubernetes.api.model.PipelineTaskArgumentSchemaBuilder 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 PipelineTaskArgumentSchemaBuilder extends PipelineTaskArgumentSchemaFluentImpl implements VisitableBuilder{
PipelineTaskArgumentSchemaFluent> fluent;
Boolean validationEnabled;
public PipelineTaskArgumentSchemaBuilder(){
this(true);
}
public PipelineTaskArgumentSchemaBuilder(Boolean validationEnabled){
this(new PipelineTaskArgumentSchema(), validationEnabled);
}
public PipelineTaskArgumentSchemaBuilder(PipelineTaskArgumentSchemaFluent> fluent){
this(fluent, true);
}
public PipelineTaskArgumentSchemaBuilder(PipelineTaskArgumentSchemaFluent> fluent,Boolean validationEnabled){
this(fluent, new PipelineTaskArgumentSchema(), validationEnabled);
}
public PipelineTaskArgumentSchemaBuilder(PipelineTaskArgumentSchemaFluent> fluent,PipelineTaskArgumentSchema instance){
this(fluent, instance, true);
}
public PipelineTaskArgumentSchemaBuilder(PipelineTaskArgumentSchemaFluent> fluent,PipelineTaskArgumentSchema instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
public PipelineTaskArgumentSchemaBuilder(PipelineTaskArgumentSchema instance){
this(instance,true);
}
public PipelineTaskArgumentSchemaBuilder(PipelineTaskArgumentSchema instance,Boolean validationEnabled){
this.fluent = this;
this.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
public PipelineTaskArgumentSchema build(){
PipelineTaskArgumentSchema buildable = new PipelineTaskArgumentSchema(fluent.getType());
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;
PipelineTaskArgumentSchemaBuilder that = (PipelineTaskArgumentSchemaBuilder) 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;
}
}