
sts.oda.client.model.TokenResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of on-demand-sdk-java Show documentation
Show all versions of on-demand-sdk-java Show documentation
Sterling On Demand Java SDK
/*
* on-demand-api
* The Sterling On Demand API allows you to integrate background checks into your platform and manage the process from end-to-end.
*
* OpenAPI spec version: 2018-05-08T16:44:26.238-07:00
*
*
* 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 sts.oda.client.model;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* TokenResponse
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-15T10:11:34.999-07:00")
public class TokenResponse {
@SerializedName("access_token")
private String accessToken = null;
@SerializedName("expires_in")
private String expiresIn = null;
@SerializedName("token_type")
private String tokenType = null;
public TokenResponse 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 TokenResponse expiresIn(String expiresIn) {
this.expiresIn = expiresIn;
return this;
}
/**
* Get expiresIn
* @return expiresIn
**/
@ApiModelProperty(value = "")
public String getExpiresIn() {
return expiresIn;
}
public void setExpiresIn(String expiresIn) {
this.expiresIn = expiresIn;
}
public TokenResponse 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TokenResponse tokenResponse = (TokenResponse) o;
return Objects.equals(this.accessToken, tokenResponse.accessToken) &&
Objects.equals(this.expiresIn, tokenResponse.expiresIn) &&
Objects.equals(this.tokenType, tokenResponse.tokenType);
}
@Override
public int hashCode() {
return Objects.hash(accessToken, expiresIn, tokenType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TokenResponse {\n");
sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n");
sb.append(" expiresIn: ").append(toIndentedString(expiresIn)).append("\n");
sb.append(" tokenType: ").append(toIndentedString(tokenType)).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