com.databricks.sdk.service.iam.RuleSetUpdateRequest Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.iam;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;
@Generated
public class RuleSetUpdateRequest {
/**
* The expected etag of the rule set to update. The update will fail if the value does not match
* the value that is stored in account access control service.
*/
@JsonProperty("etag")
private String etag;
/** */
@JsonProperty("grant_rules")
private Collection grantRules;
/** Name of the rule set. */
@JsonProperty("name")
private String name;
public RuleSetUpdateRequest setEtag(String etag) {
this.etag = etag;
return this;
}
public String getEtag() {
return etag;
}
public RuleSetUpdateRequest setGrantRules(Collection grantRules) {
this.grantRules = grantRules;
return this;
}
public Collection getGrantRules() {
return grantRules;
}
public RuleSetUpdateRequest setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
RuleSetUpdateRequest that = (RuleSetUpdateRequest) o;
return Objects.equals(etag, that.etag)
&& Objects.equals(grantRules, that.grantRules)
&& Objects.equals(name, that.name);
}
@Override
public int hashCode() {
return Objects.hash(etag, grantRules, name);
}
@Override
public String toString() {
return new ToStringer(RuleSetUpdateRequest.class)
.add("etag", etag)
.add("grantRules", grantRules)
.add("name", name)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy