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

com.google.api.services.integrations.v1alpha.model.GoogleCloudIntegrationsV1alphaAccessToken Maven / Gradle / Ivy

/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.integrations.v1alpha.model;

/**
 * The access token represents the authorization of a specific application to access specific parts
 * of a user’s data.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Application Integration API. For a detailed * explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GoogleCloudIntegrationsV1alphaAccessToken extends com.google.api.client.json.GenericJson { /** * The access token encapsulating the security identity of a process or thread. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String accessToken; /** * Required. The approximate time until the access token retrieved is valid. * The value may be {@code null}. */ @com.google.api.client.util.Key private String accessTokenExpireTime; /** * If the access token will expire, use the refresh token to obtain another access token. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String refreshToken; /** * The approximate time until the refresh token retrieved is valid. * The value may be {@code null}. */ @com.google.api.client.util.Key private String refreshTokenExpireTime; /** * Only support "bearer" token in v1 as bearer token is the predominant type used with OAuth 2.0. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String tokenType; /** * The access token encapsulating the security identity of a process or thread. * @return value or {@code null} for none */ public java.lang.String getAccessToken() { return accessToken; } /** * The access token encapsulating the security identity of a process or thread. * @param accessToken accessToken or {@code null} for none */ public GoogleCloudIntegrationsV1alphaAccessToken setAccessToken(java.lang.String accessToken) { this.accessToken = accessToken; return this; } /** * Required. The approximate time until the access token retrieved is valid. * @return value or {@code null} for none */ public String getAccessTokenExpireTime() { return accessTokenExpireTime; } /** * Required. The approximate time until the access token retrieved is valid. * @param accessTokenExpireTime accessTokenExpireTime or {@code null} for none */ public GoogleCloudIntegrationsV1alphaAccessToken setAccessTokenExpireTime(String accessTokenExpireTime) { this.accessTokenExpireTime = accessTokenExpireTime; return this; } /** * If the access token will expire, use the refresh token to obtain another access token. * @return value or {@code null} for none */ public java.lang.String getRefreshToken() { return refreshToken; } /** * If the access token will expire, use the refresh token to obtain another access token. * @param refreshToken refreshToken or {@code null} for none */ public GoogleCloudIntegrationsV1alphaAccessToken setRefreshToken(java.lang.String refreshToken) { this.refreshToken = refreshToken; return this; } /** * The approximate time until the refresh token retrieved is valid. * @return value or {@code null} for none */ public String getRefreshTokenExpireTime() { return refreshTokenExpireTime; } /** * The approximate time until the refresh token retrieved is valid. * @param refreshTokenExpireTime refreshTokenExpireTime or {@code null} for none */ public GoogleCloudIntegrationsV1alphaAccessToken setRefreshTokenExpireTime(String refreshTokenExpireTime) { this.refreshTokenExpireTime = refreshTokenExpireTime; return this; } /** * Only support "bearer" token in v1 as bearer token is the predominant type used with OAuth 2.0. * @return value or {@code null} for none */ public java.lang.String getTokenType() { return tokenType; } /** * Only support "bearer" token in v1 as bearer token is the predominant type used with OAuth 2.0. * @param tokenType tokenType or {@code null} for none */ public GoogleCloudIntegrationsV1alphaAccessToken setTokenType(java.lang.String tokenType) { this.tokenType = tokenType; return this; } @Override public GoogleCloudIntegrationsV1alphaAccessToken set(String fieldName, Object value) { return (GoogleCloudIntegrationsV1alphaAccessToken) super.set(fieldName, value); } @Override public GoogleCloudIntegrationsV1alphaAccessToken clone() { return (GoogleCloudIntegrationsV1alphaAccessToken) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy