com.google.api.services.integrations.v1alpha.model.GoogleCloudIntegrationsV1alphaCredential 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;
/**
* Defines parameters for a single, canonical credential.
*
* 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 GoogleCloudIntegrationsV1alphaCredential extends com.google.api.client.json.GenericJson {
/**
* Auth token credential
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudIntegrationsV1alphaAuthToken authToken;
/**
* Credential type associated with auth config.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String credentialType;
/**
* JWT credential
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudIntegrationsV1alphaJwt jwt;
/**
* The api_key and oauth2_implicit are not covered in v1 and will be picked up once v1 is
* implemented. ApiKey api_key = 3; OAuth2 authorization code credential
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode oauth2AuthorizationCode;
/**
* OAuth2Implicit oauth2_implicit = 5; OAuth2 client credentials
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials oauth2ClientCredentials;
/**
* OAuth2 resource owner credentials
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials oauth2ResourceOwnerCredentials;
/**
* Google OIDC ID Token
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudIntegrationsV1alphaOidcToken oidcToken;
/**
* Service account credential
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudIntegrationsV1alphaServiceAccountCredentials serviceAccountCredentials;
/**
* Username and password credential
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudIntegrationsV1alphaUsernameAndPassword usernameAndPassword;
/**
* Auth token credential
* @return value or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaAuthToken getAuthToken() {
return authToken;
}
/**
* Auth token credential
* @param authToken authToken or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaCredential setAuthToken(GoogleCloudIntegrationsV1alphaAuthToken authToken) {
this.authToken = authToken;
return this;
}
/**
* Credential type associated with auth config.
* @return value or {@code null} for none
*/
public java.lang.String getCredentialType() {
return credentialType;
}
/**
* Credential type associated with auth config.
* @param credentialType credentialType or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaCredential setCredentialType(java.lang.String credentialType) {
this.credentialType = credentialType;
return this;
}
/**
* JWT credential
* @return value or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaJwt getJwt() {
return jwt;
}
/**
* JWT credential
* @param jwt jwt or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaCredential setJwt(GoogleCloudIntegrationsV1alphaJwt jwt) {
this.jwt = jwt;
return this;
}
/**
* The api_key and oauth2_implicit are not covered in v1 and will be picked up once v1 is
* implemented. ApiKey api_key = 3; OAuth2 authorization code credential
* @return value or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode getOauth2AuthorizationCode() {
return oauth2AuthorizationCode;
}
/**
* The api_key and oauth2_implicit are not covered in v1 and will be picked up once v1 is
* implemented. ApiKey api_key = 3; OAuth2 authorization code credential
* @param oauth2AuthorizationCode oauth2AuthorizationCode or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaCredential setOauth2AuthorizationCode(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode oauth2AuthorizationCode) {
this.oauth2AuthorizationCode = oauth2AuthorizationCode;
return this;
}
/**
* OAuth2Implicit oauth2_implicit = 5; OAuth2 client credentials
* @return value or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials getOauth2ClientCredentials() {
return oauth2ClientCredentials;
}
/**
* OAuth2Implicit oauth2_implicit = 5; OAuth2 client credentials
* @param oauth2ClientCredentials oauth2ClientCredentials or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaCredential setOauth2ClientCredentials(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials oauth2ClientCredentials) {
this.oauth2ClientCredentials = oauth2ClientCredentials;
return this;
}
/**
* OAuth2 resource owner credentials
* @return value or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials getOauth2ResourceOwnerCredentials() {
return oauth2ResourceOwnerCredentials;
}
/**
* OAuth2 resource owner credentials
* @param oauth2ResourceOwnerCredentials oauth2ResourceOwnerCredentials or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaCredential setOauth2ResourceOwnerCredentials(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials oauth2ResourceOwnerCredentials) {
this.oauth2ResourceOwnerCredentials = oauth2ResourceOwnerCredentials;
return this;
}
/**
* Google OIDC ID Token
* @return value or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaOidcToken getOidcToken() {
return oidcToken;
}
/**
* Google OIDC ID Token
* @param oidcToken oidcToken or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaCredential setOidcToken(GoogleCloudIntegrationsV1alphaOidcToken oidcToken) {
this.oidcToken = oidcToken;
return this;
}
/**
* Service account credential
* @return value or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaServiceAccountCredentials getServiceAccountCredentials() {
return serviceAccountCredentials;
}
/**
* Service account credential
* @param serviceAccountCredentials serviceAccountCredentials or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaCredential setServiceAccountCredentials(GoogleCloudIntegrationsV1alphaServiceAccountCredentials serviceAccountCredentials) {
this.serviceAccountCredentials = serviceAccountCredentials;
return this;
}
/**
* Username and password credential
* @return value or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaUsernameAndPassword getUsernameAndPassword() {
return usernameAndPassword;
}
/**
* Username and password credential
* @param usernameAndPassword usernameAndPassword or {@code null} for none
*/
public GoogleCloudIntegrationsV1alphaCredential setUsernameAndPassword(GoogleCloudIntegrationsV1alphaUsernameAndPassword usernameAndPassword) {
this.usernameAndPassword = usernameAndPassword;
return this;
}
@Override
public GoogleCloudIntegrationsV1alphaCredential set(String fieldName, Object value) {
return (GoogleCloudIntegrationsV1alphaCredential) super.set(fieldName, value);
}
@Override
public GoogleCloudIntegrationsV1alphaCredential clone() {
return (GoogleCloudIntegrationsV1alphaCredential) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy