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

com.databricks.sdk.service.compute.GetPolicyFamilyRequest Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show 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.QueryParam;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Objects;

/** Get policy family information */
@Generated
public class GetPolicyFamilyRequest {
  /** The family ID about which to retrieve information. */
  @JsonIgnore private String policyFamilyId;

  /** The version number for the family to fetch. Defaults to the latest version. */
  @JsonIgnore
  @QueryParam("version")
  private Long version;

  public GetPolicyFamilyRequest setPolicyFamilyId(String policyFamilyId) {
    this.policyFamilyId = policyFamilyId;
    return this;
  }

  public String getPolicyFamilyId() {
    return policyFamilyId;
  }

  public GetPolicyFamilyRequest setVersion(Long version) {
    this.version = version;
    return this;
  }

  public Long getVersion() {
    return version;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    GetPolicyFamilyRequest that = (GetPolicyFamilyRequest) o;
    return Objects.equals(policyFamilyId, that.policyFamilyId)
        && Objects.equals(version, that.version);
  }

  @Override
  public int hashCode() {
    return Objects.hash(policyFamilyId, version);
  }

  @Override
  public String toString() {
    return new ToStringer(GetPolicyFamilyRequest.class)
        .add("policyFamilyId", policyFamilyId)
        .add("version", version)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy