edu.utexas.tacc.tapis.tokens.client.gen.model.NewTokenResponseAccessToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tokens-client Show documentation
Show all versions of tokens-client Show documentation
Java client for Tokens Service
/*
* Tokens API
* Manage Tapis Tokens.
*
* The version of the OpenAPI document: 1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package edu.utexas.tacc.tapis.tokens.client.gen.model;
import java.util.Objects;
import java.util.Arrays;
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;
/**
* NewTokenResponseAccessToken
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-06-22T16:07:39.365956-05:00[America/Chicago]")
public class NewTokenResponseAccessToken {
public static final String SERIALIZED_NAME_ACCESS_TOKEN = "access_token";
@SerializedName(SERIALIZED_NAME_ACCESS_TOKEN)
private String accessToken;
public static final String SERIALIZED_NAME_EXPIRES_AT = "expires_at";
@SerializedName(SERIALIZED_NAME_EXPIRES_AT)
private String expiresAt;
public static final String SERIALIZED_NAME_EXPIRES_IN = "expires_in";
@SerializedName(SERIALIZED_NAME_EXPIRES_IN)
private Integer expiresIn;
public NewTokenResponseAccessToken accessToken(String accessToken) {
this.accessToken = accessToken;
return this;
}
/**
* The generated access token.
* @return accessToken
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The generated access token.")
public String getAccessToken() {
return accessToken;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
public NewTokenResponseAccessToken expiresAt(String expiresAt) {
this.expiresAt = expiresAt;
return this;
}
/**
* The date-time string when the generated access token expires.
* @return expiresAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The date-time string when the generated access token expires.")
public String getExpiresAt() {
return expiresAt;
}
public void setExpiresAt(String expiresAt) {
this.expiresAt = expiresAt;
}
public NewTokenResponseAccessToken expiresIn(Integer expiresIn) {
this.expiresIn = expiresIn;
return this;
}
/**
* The time, in seconds, when the generated access token expires.
* @return expiresIn
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The time, in seconds, when the generated access token expires.")
public Integer getExpiresIn() {
return expiresIn;
}
public void setExpiresIn(Integer expiresIn) {
this.expiresIn = expiresIn;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NewTokenResponseAccessToken newTokenResponseAccessToken = (NewTokenResponseAccessToken) o;
return Objects.equals(this.accessToken, newTokenResponseAccessToken.accessToken) &&
Objects.equals(this.expiresAt, newTokenResponseAccessToken.expiresAt) &&
Objects.equals(this.expiresIn, newTokenResponseAccessToken.expiresIn);
}
@Override
public int hashCode() {
return Objects.hash(accessToken, expiresAt, expiresIn);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NewTokenResponseAccessToken {\n");
sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n");
sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
sb.append(" expiresIn: ").append(toIndentedString(expiresIn)).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 ");
}
}