org.openmetadata.schema.api.search.SearchSettings Maven / Gradle / Ivy
package org.openmetadata.schema.api.search;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* SearchSettings
*
* This schema defines the Rbac Search Configuration.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"enableAccessControl"
})
@Generated("jsonschema2pojo")
public class SearchSettings {
/**
* Flag to enable or disable the RBAC Search Configuration.
*
*/
@JsonProperty("enableAccessControl")
@JsonPropertyDescription("Flag to enable or disable the RBAC Search Configuration.")
private Boolean enableAccessControl = false;
/**
* Flag to enable or disable the RBAC Search Configuration.
*
*/
@JsonProperty("enableAccessControl")
public Boolean getEnableAccessControl() {
return enableAccessControl;
}
/**
* Flag to enable or disable the RBAC Search Configuration.
*
*/
@JsonProperty("enableAccessControl")
public void setEnableAccessControl(Boolean enableAccessControl) {
this.enableAccessControl = enableAccessControl;
}
public SearchSettings withEnableAccessControl(Boolean enableAccessControl) {
this.enableAccessControl = enableAccessControl;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(SearchSettings.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("enableAccessControl");
sb.append('=');
sb.append(((this.enableAccessControl == null)?"":this.enableAccessControl));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.enableAccessControl == null)? 0 :this.enableAccessControl.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof SearchSettings) == false) {
return false;
}
SearchSettings rhs = ((SearchSettings) other);
return ((this.enableAccessControl == rhs.enableAccessControl)||((this.enableAccessControl!= null)&&this.enableAccessControl.equals(rhs.enableAccessControl)));
}
}