net.leanix.mtm.api.models.AccessTokenResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-mtm-sdk-java Show documentation
Show all versions of leanix-mtm-sdk-java Show documentation
SDK for Java to access leanIX MTM REST API
package net.leanix.mtm.api.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
public class AccessTokenResponse {
private String scope = null;
private Boolean expired = null;
private String accessToken = null;
private String tokenType = null;
private Long expiresIn = null;
private String refreshToken = null;
/**
**/
public AccessTokenResponse scope(String scope) {
this.scope = scope;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("scope")
public String getScope() {
return scope;
}
public void setScope(String scope) {
this.scope = scope;
}
/**
**/
public AccessTokenResponse expired(Boolean expired) {
this.expired = expired;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("expired")
public Boolean getExpired() {
return expired;
}
public void setExpired(Boolean expired) {
this.expired = expired;
}
/**
**/
public AccessTokenResponse accessToken(String accessToken) {
this.accessToken = accessToken;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("access_token")
public String getAccessToken() {
return accessToken;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
/**
**/
public AccessTokenResponse tokenType(String tokenType) {
this.tokenType = tokenType;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("token_type")
public String getTokenType() {
return tokenType;
}
public void setTokenType(String tokenType) {
this.tokenType = tokenType;
}
/**
**/
public AccessTokenResponse expiresIn(Long expiresIn) {
this.expiresIn = expiresIn;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("expires_in")
public Long getExpiresIn() {
return expiresIn;
}
public void setExpiresIn(Long expiresIn) {
this.expiresIn = expiresIn;
}
/**
**/
public AccessTokenResponse refreshToken(String refreshToken) {
this.refreshToken = refreshToken;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("refresh_token")
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