com.databricks.sdk.service.compute.GetClusterComplianceResponse Maven / Gradle / Ivy
The newest version!
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.compute;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import java.util.Objects;
@Generated
public class GetClusterComplianceResponse {
/**
* Whether the cluster is compliant with its policy or not. Clusters could be out of compliance if
* the policy was updated after the cluster was last edited.
*/
@JsonProperty("is_compliant")
private Boolean isCompliant;
/**
* An object containing key-value mappings representing the first 200 policy validation errors.
* The keys indicate the path where the policy validation error is occurring. The values indicate
* an error message describing the policy validation error.
*/
@JsonProperty("violations")
private Map violations;
public GetClusterComplianceResponse setIsCompliant(Boolean isCompliant) {
this.isCompliant = isCompliant;
return this;
}
public Boolean getIsCompliant() {
return isCompliant;
}
public GetClusterComplianceResponse setViolations(Map violations) {
this.violations = violations;
return this;
}
public Map getViolations() {
return violations;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetClusterComplianceResponse that = (GetClusterComplianceResponse) o;
return Objects.equals(isCompliant, that.isCompliant)
&& Objects.equals(violations, that.violations);
}
@Override
public int hashCode() {
return Objects.hash(isCompliant, violations);
}
@Override
public String toString() {
return new ToStringer(GetClusterComplianceResponse.class)
.add("isCompliant", isCompliant)
.add("violations", violations)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy