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

com.google.api.services.integrations.v1alpha.model.GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials 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;

/**
 * For resource owner credentials grant, the client will ask the user for their authorization
 * credentials (ususally a username and password) and send a POST request to the authorization
 * server. The authorization server will respond with a JSON object containing the access token.
 *
 * 

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 GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials extends com.google.api.client.json.GenericJson { /** * Access token fetched from the authorization server. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudIntegrationsV1alphaAccessToken accessToken; /** * The client's ID. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String clientId; /** * The client's secret. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String clientSecret; /** * The user's password. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String password; /** * Represent how to pass parameters to fetch access token * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String requestType; /** * A space-delimited list of requested scope permissions. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String scope; /** * The token endpoint is used by the client to obtain an access token by presenting its * authorization grant or refresh token. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String tokenEndpoint; /** * Token parameters for the auth request. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudIntegrationsV1alphaParameterMap tokenParams; /** * The user's username. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String username; /** * Access token fetched from the authorization server. * @return value or {@code null} for none */ public GoogleCloudIntegrationsV1alphaAccessToken getAccessToken() { return accessToken; } /** * Access token fetched from the authorization server. * @param accessToken accessToken or {@code null} for none */ public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials setAccessToken(GoogleCloudIntegrationsV1alphaAccessToken accessToken) { this.accessToken = accessToken; return this; } /** * The client's ID. * @return value or {@code null} for none */ public java.lang.String getClientId() { return clientId; } /** * The client's ID. * @param clientId clientId or {@code null} for none */ public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials setClientId(java.lang.String clientId) { this.clientId = clientId; return this; } /** * The client's secret. * @return value or {@code null} for none */ public java.lang.String getClientSecret() { return clientSecret; } /** * The client's secret. * @param clientSecret clientSecret or {@code null} for none */ public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials setClientSecret(java.lang.String clientSecret) { this.clientSecret = clientSecret; return this; } /** * The user's password. * @return value or {@code null} for none */ public java.lang.String getPassword() { return password; } /** * The user's password. * @param password password or {@code null} for none */ public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials setPassword(java.lang.String password) { this.password = password; return this; } /** * Represent how to pass parameters to fetch access token * @return value or {@code null} for none */ public java.lang.String getRequestType() { return requestType; } /** * Represent how to pass parameters to fetch access token * @param requestType requestType or {@code null} for none */ public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials setRequestType(java.lang.String requestType) { this.requestType = requestType; return this; } /** * A space-delimited list of requested scope permissions. * @return value or {@code null} for none */ public java.lang.String getScope() { return scope; } /** * A space-delimited list of requested scope permissions. * @param scope scope or {@code null} for none */ public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials setScope(java.lang.String scope) { this.scope = scope; return this; } /** * The token endpoint is used by the client to obtain an access token by presenting its * authorization grant or refresh token. * @return value or {@code null} for none */ public java.lang.String getTokenEndpoint() { return tokenEndpoint; } /** * The token endpoint is used by the client to obtain an access token by presenting its * authorization grant or refresh token. * @param tokenEndpoint tokenEndpoint or {@code null} for none */ public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials setTokenEndpoint(java.lang.String tokenEndpoint) { this.tokenEndpoint = tokenEndpoint; return this; } /** * Token parameters for the auth request. * @return value or {@code null} for none */ public GoogleCloudIntegrationsV1alphaParameterMap getTokenParams() { return tokenParams; } /** * Token parameters for the auth request. * @param tokenParams tokenParams or {@code null} for none */ public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials setTokenParams(GoogleCloudIntegrationsV1alphaParameterMap tokenParams) { this.tokenParams = tokenParams; return this; } /** * The user's username. * @return value or {@code null} for none */ public java.lang.String getUsername() { return username; } /** * The user's username. * @param username username or {@code null} for none */ public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials setUsername(java.lang.String username) { this.username = username; return this; } @Override public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials set(String fieldName, Object value) { return (GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials) super.set(fieldName, value); } @Override public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials clone() { return (GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy