annotations.me.snowdrop.servicecatalog.api.model.ClusterServiceBrokerAuthInfoBuilder Maven / Gradle / Ivy
The newest version!
package me.snowdrop.servicecatalog.api.model;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
import javax.validation.Validator;
public class ClusterServiceBrokerAuthInfoBuilder extends ClusterServiceBrokerAuthInfoFluentImpl implements VisitableBuilder{
ClusterServiceBrokerAuthInfoFluent> fluent;
Boolean validationEnabled;
Validator validator;
public ClusterServiceBrokerAuthInfoBuilder(){
this(true);
}
public ClusterServiceBrokerAuthInfoBuilder(Boolean validationEnabled){
this(new ClusterServiceBrokerAuthInfo(), validationEnabled);
}
public ClusterServiceBrokerAuthInfoBuilder(ClusterServiceBrokerAuthInfoFluent> fluent){
this(fluent, true);
}
public ClusterServiceBrokerAuthInfoBuilder(ClusterServiceBrokerAuthInfoFluent> fluent,Boolean validationEnabled){
this(fluent, new ClusterServiceBrokerAuthInfo(), validationEnabled);
}
public ClusterServiceBrokerAuthInfoBuilder(ClusterServiceBrokerAuthInfoFluent> fluent,ClusterServiceBrokerAuthInfo instance){
this(fluent, instance, true);
}
public ClusterServiceBrokerAuthInfoBuilder(ClusterServiceBrokerAuthInfoFluent> fluent,ClusterServiceBrokerAuthInfo instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withBasic(instance.getBasic());
fluent.withBearer(instance.getBearer());
this.validationEnabled = validationEnabled;
}
public ClusterServiceBrokerAuthInfoBuilder(ClusterServiceBrokerAuthInfo instance){
this(instance,true);
}
public ClusterServiceBrokerAuthInfoBuilder(ClusterServiceBrokerAuthInfo instance,Boolean validationEnabled){
this.fluent = this;
this.withBasic(instance.getBasic());
this.withBearer(instance.getBearer());
this.validationEnabled = validationEnabled;
}
public ClusterServiceBrokerAuthInfoBuilder(Validator validator){
this(new ClusterServiceBrokerAuthInfo(), true);
}
public ClusterServiceBrokerAuthInfoBuilder(ClusterServiceBrokerAuthInfoFluent> fluent,ClusterServiceBrokerAuthInfo instance,Validator validator){
this.fluent = fluent;
fluent.withBasic(instance.getBasic());
fluent.withBearer(instance.getBearer());
this.validator = validator;
this.validationEnabled = validator != null;
}
public ClusterServiceBrokerAuthInfoBuilder(ClusterServiceBrokerAuthInfo instance,Validator validator){
this.fluent = this;
this.withBasic(instance.getBasic());
this.withBearer(instance.getBearer());
this.validator = validator;
this.validationEnabled = validator != null;
}
public ClusterServiceBrokerAuthInfo build(){
ClusterServiceBrokerAuthInfo buildable = new ClusterServiceBrokerAuthInfo(fluent.getBasic(),fluent.getBearer());
if (validationEnabled) {io.fabric8.kubernetes.api.builder.ValidationUtils.validate(buildable, validator);}
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;
ClusterServiceBrokerAuthInfoBuilder that = (ClusterServiceBrokerAuthInfoBuilder) 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy