net.leanix.mtm.api.models.AccessTokenResponse Maven / Gradle / Ivy
/*
* LeanIX MTM REST API
* Multi-tenancy-manager for LeanIX. Manages accounts, contracts, users, workspaces, permissions, and more.
*
* OpenAPI spec version: 1.6.348
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package net.leanix.mtm.api.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* AccessTokenResponse
*/
public class AccessTokenResponse {
@JsonProperty("scope")
private String scope = null;
@JsonProperty("expired")
private Boolean expired = false;
@JsonProperty("access_token")
private String accessToken = null;
@JsonProperty("token_type")
private String tokenType = null;
@JsonProperty("expires_in")
private Long expiresIn = null;
@JsonProperty("refresh_token")
private String refreshToken = null;
public AccessTokenResponse scope(String scope) {
this.scope = scope;
return this;
}
/**
* Get scope
* @return scope
**/
@ApiModelProperty(value = "")
public String getScope() {
return scope;
}
public void setScope(String scope) {
this.scope = scope;
}
public AccessTokenResponse expired(Boolean expired) {
this.expired = expired;
return this;
}
/**
* Get expired
* @return expired
**/
@ApiModelProperty(value = "")
public Boolean getExpired() {
return expired;
}
public void setExpired(Boolean expired) {
this.expired = expired;
}
public AccessTokenResponse accessToken(String accessToken) {
this.accessToken = accessToken;
return this;
}
/**
* Get accessToken
* @return accessToken
**/
@ApiModelProperty(value = "")
public String getAccessToken() {
return accessToken;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
public AccessTokenResponse tokenType(String tokenType) {
this.tokenType = tokenType;
return this;
}
/**
* Get tokenType
* @return tokenType
**/
@ApiModelProperty(value = "")
public String getTokenType() {
return tokenType;
}
public void setTokenType(String tokenType) {
this.tokenType = tokenType;
}
public AccessTokenResponse expiresIn(Long expiresIn) {
this.expiresIn = expiresIn;
return this;
}
/**
* Get expiresIn
* @return expiresIn
**/
@ApiModelProperty(value = "")
public Long getExpiresIn() {
return expiresIn;
}
public void setExpiresIn(Long expiresIn) {
this.expiresIn = expiresIn;
}
public AccessTokenResponse refreshToken(String refreshToken) {
this.refreshToken = refreshToken;
return this;
}
/**
* Get refreshToken
* @return refreshToken
**/
@ApiModelProperty(value = "")
public String getRefreshToken() {
return refreshToken;
}
public void setRefreshToken(String refreshToken) {
this.refreshToken = refreshToken;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccessTokenResponse accessTokenResponse = (AccessTokenResponse) o;
return Objects.equals(this.scope, accessTokenResponse.scope) &&
Objects.equals(this.expired, accessTokenResponse.expired) &&
Objects.equals(this.accessToken, accessTokenResponse.accessToken) &&
Objects.equals(this.tokenType, accessTokenResponse.tokenType) &&
Objects.equals(this.expiresIn, accessTokenResponse.expiresIn) &&
Objects.equals(this.refreshToken, accessTokenResponse.refreshToken);
}
@Override
public int hashCode() {
return Objects.hash(scope, expired, accessToken, tokenType, expiresIn, refreshToken);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccessTokenResponse {\n");
sb.append(" scope: ").append(toIndentedString(scope)).append("\n");
sb.append(" expired: ").append(toIndentedString(expired)).append("\n");
sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n");
sb.append(" tokenType: ").append(toIndentedString(tokenType)).append("\n");
sb.append(" expiresIn: ").append(toIndentedString(expiresIn)).append("\n");
sb.append(" refreshToken: ").append(toIndentedString(refreshToken)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy