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

com.databricks.sdk.service.sharing.RotateRecipientToken Maven / Gradle / Ivy

There is a newer version: 0.35.0
Show newest version
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.sharing;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

@Generated
public class RotateRecipientToken {
  /**
   * The expiration time of the bearer token in ISO 8601 format. This will set the expiration_time
   * of existing token only to a smaller timestamp, it cannot extend the expiration_time. Use 0 to
   * expire the existing token immediately, negative number will return an error.
   */
  @JsonProperty("existing_token_expire_in_seconds")
  private Long existingTokenExpireInSeconds;

  /** The name of the recipient. */
  @JsonIgnore private String name;

  public RotateRecipientToken setExistingTokenExpireInSeconds(Long existingTokenExpireInSeconds) {
    this.existingTokenExpireInSeconds = existingTokenExpireInSeconds;
    return this;
  }

  public Long getExistingTokenExpireInSeconds() {
    return existingTokenExpireInSeconds;
  }

  public RotateRecipientToken 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;
    RotateRecipientToken that = (RotateRecipientToken) o;
    return Objects.equals(existingTokenExpireInSeconds, that.existingTokenExpireInSeconds)
        && Objects.equals(name, that.name);
  }

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

  @Override
  public String toString() {
    return new ToStringer(RotateRecipientToken.class)
        .add("existingTokenExpireInSeconds", existingTokenExpireInSeconds)
        .add("name", name)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy