All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.service.iam.UpdateRuleSetRequest 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.QueryParam;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

@Generated
public class UpdateRuleSetRequest {
  /**
   * Etag used for versioning. The response is at least as fresh as the eTag provided. Etag is used
   * for optimistic concurrency control as a way to help prevent simultaneous updates of a rule set
   * from overwriting each other. It is strongly suggested that systems make use of the etag in the
   * read -> modify -> write pattern to perform rule set updates in order to avoid race conditions
   * that is get an etag from a GET rule set request, and pass it with the PUT update request to
   * identify the rule set version you are updating.
   */
  @QueryParam("etag")
  private String etag;

  /** Name of the rule set. */
  @JsonProperty("name")
  @QueryParam("name")
  private String name;

  /** */
  @JsonProperty("rule_set")
  private RuleSetUpdateRequest ruleSet;

  public UpdateRuleSetRequest setEtag(String etag) {
    this.etag = etag;
    return this;
  }

  public String getEtag() {
    return etag;
  }

  public UpdateRuleSetRequest setName(String name) {
    this.name = name;
    return this;
  }

  public String getName() {
    return name;
  }

  public UpdateRuleSetRequest setRuleSet(RuleSetUpdateRequest ruleSet) {
    this.ruleSet = ruleSet;
    return this;
  }

  public RuleSetUpdateRequest getRuleSet() {
    return ruleSet;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    UpdateRuleSetRequest that = (UpdateRuleSetRequest) o;
    return Objects.equals(etag, that.etag)
        && Objects.equals(name, that.name)
        && Objects.equals(ruleSet, that.ruleSet);
  }

  @Override
  public int hashCode() {
    return Objects.hash(etag, name, ruleSet);
  }

  @Override
  public String toString() {
    return new ToStringer(UpdateRuleSetRequest.class)
        .add("etag", etag)
        .add("name", name)
        .add("ruleSet", ruleSet)
        .toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy