edu.utexas.tacc.tapis.tokens.client.gen.model.RefreshTokenRequest 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;
/**
* RefreshTokenRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-06-22T16:07:39.365956-05:00[America/Chicago]")
public class RefreshTokenRequest {
public static final String SERIALIZED_NAME_REFRESH_TOKEN = "refresh_token";
@SerializedName(SERIALIZED_NAME_REFRESH_TOKEN)
private String refreshToken;
public RefreshTokenRequest refreshToken(String refreshToken) {
this.refreshToken = refreshToken;
return this;
}
/**
* The refresh token being used to get a new access token.
* @return refreshToken
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The refresh token being used to get a new access 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;
}
RefreshTokenRequest refreshTokenRequest = (RefreshTokenRequest) o;
return Objects.equals(this.refreshToken, refreshTokenRequest.refreshToken);
}
@Override
public int hashCode() {
return Objects.hash(refreshToken);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RefreshTokenRequest {\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 ");
}
}