io.alauda.kubernetes.api.model.JenkinsBindingStatusBuilder 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 JenkinsBindingStatusBuilder extends JenkinsBindingStatusFluentImpl implements VisitableBuilder{
JenkinsBindingStatusFluent> fluent;
Boolean validationEnabled;
public JenkinsBindingStatusBuilder(){
this(true);
}
public JenkinsBindingStatusBuilder(Boolean validationEnabled){
this(new JenkinsBindingStatus(), validationEnabled);
}
public JenkinsBindingStatusBuilder(JenkinsBindingStatusFluent> fluent){
this(fluent, true);
}
public JenkinsBindingStatusBuilder(JenkinsBindingStatusFluent> fluent,Boolean validationEnabled){
this(fluent, new JenkinsBindingStatus(), validationEnabled);
}
public JenkinsBindingStatusBuilder(JenkinsBindingStatusFluent> fluent,JenkinsBindingStatus instance){
this(fluent, instance, true);
}
public JenkinsBindingStatusBuilder(JenkinsBindingStatusFluent> fluent,JenkinsBindingStatus instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withServiceStatus(instance.getServiceStatus());
this.validationEnabled = validationEnabled;
}
public JenkinsBindingStatusBuilder(JenkinsBindingStatus instance){
this(instance,true);
}
public JenkinsBindingStatusBuilder(JenkinsBindingStatus instance,Boolean validationEnabled){
this.fluent = this;
this.withServiceStatus(instance.getServiceStatus());
this.validationEnabled = validationEnabled;
}
public JenkinsBindingStatus build(){
JenkinsBindingStatus buildable = new JenkinsBindingStatus(fluent.getServiceStatus());
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;
JenkinsBindingStatusBuilder that = (JenkinsBindingStatusBuilder) 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;
}
}