com.databricks.sdk.service.jobs.EnforcePolicyComplianceRequest Maven / Gradle / Ivy
The newest version!
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.jobs;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class EnforcePolicyComplianceRequest {
/** The ID of the job you want to enforce policy compliance on. */
@JsonProperty("job_id")
private Long jobId;
/**
* If set, previews changes made to the job to comply with its policy, but does not update the
* job.
*/
@JsonProperty("validate_only")
private Boolean validateOnly;
public EnforcePolicyComplianceRequest setJobId(Long jobId) {
this.jobId = jobId;
return this;
}
public Long getJobId() {
return jobId;
}
public EnforcePolicyComplianceRequest setValidateOnly(Boolean validateOnly) {
this.validateOnly = validateOnly;
return this;
}
public Boolean getValidateOnly() {
return validateOnly;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EnforcePolicyComplianceRequest that = (EnforcePolicyComplianceRequest) o;
return Objects.equals(jobId, that.jobId) && Objects.equals(validateOnly, that.validateOnly);
}
@Override
public int hashCode() {
return Objects.hash(jobId, validateOnly);
}
@Override
public String toString() {
return new ToStringer(EnforcePolicyComplianceRequest.class)
.add("jobId", jobId)
.add("validateOnly", validateOnly)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy