io.alauda.kubernetes.api.model.PipelineSourceSvnBuilder 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 PipelineSourceSvnBuilder extends PipelineSourceSvnFluentImpl implements VisitableBuilder{
PipelineSourceSvnFluent> fluent;
Boolean validationEnabled;
public PipelineSourceSvnBuilder(){
this(true);
}
public PipelineSourceSvnBuilder(Boolean validationEnabled){
this(new PipelineSourceSvn(), validationEnabled);
}
public PipelineSourceSvnBuilder(PipelineSourceSvnFluent> fluent){
this(fluent, true);
}
public PipelineSourceSvnBuilder(PipelineSourceSvnFluent> fluent,Boolean validationEnabled){
this(fluent, new PipelineSourceSvn(), validationEnabled);
}
public PipelineSourceSvnBuilder(PipelineSourceSvnFluent> fluent,PipelineSourceSvn instance){
this(fluent, instance, true);
}
public PipelineSourceSvnBuilder(PipelineSourceSvnFluent> fluent,PipelineSourceSvn instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withUri(instance.getUri());
this.validationEnabled = validationEnabled;
}
public PipelineSourceSvnBuilder(PipelineSourceSvn instance){
this(instance,true);
}
public PipelineSourceSvnBuilder(PipelineSourceSvn instance,Boolean validationEnabled){
this.fluent = this;
this.withUri(instance.getUri());
this.validationEnabled = validationEnabled;
}
public PipelineSourceSvn build(){
PipelineSourceSvn buildable = new PipelineSourceSvn(fluent.getUri());
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;
PipelineSourceSvnBuilder that = (PipelineSourceSvnBuilder) 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;
}
}