com.databricks.sdk.service.settings.CreateOboTokenResponse Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.settings;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/** An on-behalf token was successfully created for the service principal. */
@Generated
public class CreateOboTokenResponse {
/** */
@JsonProperty("token_info")
private TokenInfo tokenInfo;
/** Value of the token. */
@JsonProperty("token_value")
private String tokenValue;
public CreateOboTokenResponse setTokenInfo(TokenInfo tokenInfo) {
this.tokenInfo = tokenInfo;
return this;
}
public TokenInfo getTokenInfo() {
return tokenInfo;
}
public CreateOboTokenResponse setTokenValue(String tokenValue) {
this.tokenValue = tokenValue;
return this;
}
public String getTokenValue() {
return tokenValue;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateOboTokenResponse that = (CreateOboTokenResponse) o;
return Objects.equals(tokenInfo, that.tokenInfo) && Objects.equals(tokenValue, that.tokenValue);
}
@Override
public int hashCode() {
return Objects.hash(tokenInfo, tokenValue);
}
@Override
public String toString() {
return new ToStringer(CreateOboTokenResponse.class)
.add("tokenInfo", tokenInfo)
.add("tokenValue", tokenValue)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy