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

org.qas.qtest.api.services.authenticate.model.OAuthTokenRefreshRequest Maven / Gradle / Ivy

The newest version!
package org.qas.qtest.api.services.authenticate.model;

import org.qas.api.ApiServiceRequest;

/**
 * OAuthTokenRefreshRequest
 *
 * @author Dzung Nguyen
 * @version $Id OAuthTokenRefreshRequest 2016-11-29 06:27:30z dzungvnguyen $
 * @since 1.0
 */
public final class OAuthTokenRefreshRequest extends ApiServiceRequest {
  //~ class properties ========================================================
  private String token;

  //~ class members ===========================================================
  /**
   * @return the OAuth token.
   */
  public String getToken() {
    return token;
  }

  /**
   * Sets the OAuth access token.
   *
   * @param token the given OAuth access token to set.
   */
  public void setToken(String token) {
    this.token = token;
  }

  /**
   * Sets the OAuth access token and return current instance.
   *
   * @param token the given OAuth access token to set.
   * @return current instance.
   */
  public OAuthTokenRefreshRequest withToken(String token) {
    setToken(token);
    return this;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy