All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.utexas.tacc.tapis.tokens.client.gen.model.NewRefreshTokenResponse Maven / Gradle / Ivy

There is a newer version: 1.11.22
Show newest version
/*
 * 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;

/**
 * NewRefreshTokenResponse
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-06-22T16:07:39.365956-05:00[America/Chicago]")
public class NewRefreshTokenResponse {
  public static final String SERIALIZED_NAME_REFRESH_TOKEN = "refresh_token";
  @SerializedName(SERIALIZED_NAME_REFRESH_TOKEN)
  private String refreshToken;

  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 NewRefreshTokenResponse refreshToken(String refreshToken) {
    
    this.refreshToken = refreshToken;
    return this;
  }

   /**
   * The generated refresh token.
   * @return refreshToken
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The generated refresh token.")

  public String getRefreshToken() {
    return refreshToken;
  }



  public void setRefreshToken(String refreshToken) {
    this.refreshToken = refreshToken;
  }


  public NewRefreshTokenResponse expiresAt(String expiresAt) {
    
    this.expiresAt = expiresAt;
    return this;
  }

   /**
   * The date-time string when the generated refresh token expires.
   * @return expiresAt
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The date-time string when the generated refresh token expires.")

  public String getExpiresAt() {
    return expiresAt;
  }



  public void setExpiresAt(String expiresAt) {
    this.expiresAt = expiresAt;
  }


  public NewRefreshTokenResponse expiresIn(Integer expiresIn) {
    
    this.expiresIn = expiresIn;
    return this;
  }

   /**
   * The time, in seconds, when the generated refresh token expires.
   * @return expiresIn
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The time, in seconds, when the generated refresh 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;
    }
    NewRefreshTokenResponse newRefreshTokenResponse = (NewRefreshTokenResponse) o;
    return Objects.equals(this.refreshToken, newRefreshTokenResponse.refreshToken) &&
        Objects.equals(this.expiresAt, newRefreshTokenResponse.expiresAt) &&
        Objects.equals(this.expiresIn, newRefreshTokenResponse.expiresIn);
  }

  @Override
  public int hashCode() {
    return Objects.hash(refreshToken, expiresAt, expiresIn);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class NewRefreshTokenResponse {\n");
    sb.append("    refreshToken: ").append(toIndentedString(refreshToken)).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    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy