io.alauda.kubernetes.api.model.PipelineTaskArgumentDisplayBuilder 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 PipelineTaskArgumentDisplayBuilder extends PipelineTaskArgumentDisplayFluentImpl implements VisitableBuilder{
PipelineTaskArgumentDisplayFluent> fluent;
Boolean validationEnabled;
public PipelineTaskArgumentDisplayBuilder(){
this(true);
}
public PipelineTaskArgumentDisplayBuilder(Boolean validationEnabled){
this(new PipelineTaskArgumentDisplay(), validationEnabled);
}
public PipelineTaskArgumentDisplayBuilder(PipelineTaskArgumentDisplayFluent> fluent){
this(fluent, true);
}
public PipelineTaskArgumentDisplayBuilder(PipelineTaskArgumentDisplayFluent> fluent,Boolean validationEnabled){
this(fluent, new PipelineTaskArgumentDisplay(), validationEnabled);
}
public PipelineTaskArgumentDisplayBuilder(PipelineTaskArgumentDisplayFluent> fluent,PipelineTaskArgumentDisplay instance){
this(fluent, instance, true);
}
public PipelineTaskArgumentDisplayBuilder(PipelineTaskArgumentDisplayFluent> fluent,PipelineTaskArgumentDisplay instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withAdvanced(instance.getAdvanced());
fluent.withDescription(instance.getDescription());
fluent.withName(instance.getName());
fluent.withRelated(instance.getRelated());
fluent.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
public PipelineTaskArgumentDisplayBuilder(PipelineTaskArgumentDisplay instance){
this(instance,true);
}
public PipelineTaskArgumentDisplayBuilder(PipelineTaskArgumentDisplay instance,Boolean validationEnabled){
this.fluent = this;
this.withAdvanced(instance.getAdvanced());
this.withDescription(instance.getDescription());
this.withName(instance.getName());
this.withRelated(instance.getRelated());
this.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
public PipelineTaskArgumentDisplay build(){
PipelineTaskArgumentDisplay buildable = new PipelineTaskArgumentDisplay(fluent.isAdvanced(),fluent.getDescription(),fluent.getName(),fluent.getRelated(),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;
PipelineTaskArgumentDisplayBuilder that = (PipelineTaskArgumentDisplayBuilder) 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;
}
}