com.google.api.services.integrations.v1alpha.model.GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials 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 client credentials grant, the client sends a POST request with grant_type as
* 'client_credentials' 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 GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials 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;
/**
* 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;
/**
* 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 GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials 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 GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials 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 GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials setClientSecret(java.lang.String clientSecret) {
this.clientSecret = clientSecret;
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 GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials 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 GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials 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 GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials 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 GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials setTokenParams(GoogleCloudIntegrationsV1alphaParameterMap tokenParams) {
this.tokenParams = tokenParams;
return this;
}
@Override
public GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials set(String fieldName, Object value) {
return (GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials) super.set(fieldName, value);
}
@Override
public GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials clone() {
return (GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy