/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ package com.amazonaws.services.appflow.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The connector metadata specific to Salesforce. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SalesforceMetadata implements Serializable, Cloneable, StructuredPojo { /** ** The desired authorization scope for the Salesforce account. *
*/ private java.util.List* The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from Salesforce. *
*/ private java.util.List* The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access token from Salesforce. Amazon * AppFlow requires an access token each time it attempts to access your Salesforce records. *
** Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon AppFlow * receives the authorization code from Salesforce after you log in to your Salesforce account and authorize Amazon * AppFlow to access your records. *
** Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access token from * Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce * account. *
** Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You provide the * JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use this grant type, * you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access your records. *
** The desired authorization scope for the Salesforce account. *
* * @return The desired authorization scope for the Salesforce account. */ public java.util.List* The desired authorization scope for the Salesforce account. *
* * @param oAuthScopes * The desired authorization scope for the Salesforce account. */ public void setOAuthScopes(java.util.Collection* The desired authorization scope for the Salesforce account. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOAuthScopes(java.util.Collection)} or {@link #withOAuthScopes(java.util.Collection)} if you want to * override the existing values. *
* * @param oAuthScopes * The desired authorization scope for the Salesforce account. * @return Returns a reference to this object so that method calls can be chained together. */ public SalesforceMetadata withOAuthScopes(String... oAuthScopes) { if (this.oAuthScopes == null) { setOAuthScopes(new java.util.ArrayList* The desired authorization scope for the Salesforce account. *
* * @param oAuthScopes * The desired authorization scope for the Salesforce account. * @return Returns a reference to this object so that method calls can be chained together. */ public SalesforceMetadata withOAuthScopes(java.util.Collection* The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from Salesforce. *
* * @return The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from * Salesforce. * @see SalesforceDataTransferApi */ public java.util.List* The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from Salesforce. *
* * @param dataTransferApis * The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from * Salesforce. * @see SalesforceDataTransferApi */ public void setDataTransferApis(java.util.Collection* The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from Salesforce. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDataTransferApis(java.util.Collection)} or {@link #withDataTransferApis(java.util.Collection)} if you * want to override the existing values. *
* * @param dataTransferApis * The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from * Salesforce. * @return Returns a reference to this object so that method calls can be chained together. * @see SalesforceDataTransferApi */ public SalesforceMetadata withDataTransferApis(String... dataTransferApis) { if (this.dataTransferApis == null) { setDataTransferApis(new java.util.ArrayList* The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from Salesforce. *
* * @param dataTransferApis * The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from * Salesforce. * @return Returns a reference to this object so that method calls can be chained together. * @see SalesforceDataTransferApi */ public SalesforceMetadata withDataTransferApis(java.util.Collection* The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from Salesforce. *
* * @param dataTransferApis * The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from * Salesforce. * @return Returns a reference to this object so that method calls can be chained together. * @see SalesforceDataTransferApi */ public SalesforceMetadata withDataTransferApis(SalesforceDataTransferApi... dataTransferApis) { java.util.ArrayList* The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access token from Salesforce. Amazon * AppFlow requires an access token each time it attempts to access your Salesforce records. *
** Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon AppFlow * receives the authorization code from Salesforce after you log in to your Salesforce account and authorize Amazon * AppFlow to access your records. *
** Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access token from * Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce * account. *
** Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You provide the * JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use this grant type, * you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access your records. *
** Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon * AppFlow receives the authorization code from Salesforce after you log in to your Salesforce account and * authorize Amazon AppFlow to access your records. *
** Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access * token from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to * your Salesforce account. *
** Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You * provide the JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use * this grant type, you don't need to log in to your Salesforce account to authorize Amazon AppFlow to * access your records. *
** The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access token from Salesforce. Amazon * AppFlow requires an access token each time it attempts to access your Salesforce records. *
** Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon AppFlow * receives the authorization code from Salesforce after you log in to your Salesforce account and authorize Amazon * AppFlow to access your records. *
** Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access token from * Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce * account. *
** Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You provide the * JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use this grant type, * you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access your records. *
** Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon * AppFlow receives the authorization code from Salesforce after you log in to your Salesforce account and * authorize Amazon AppFlow to access your records. *
** Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access token * from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your * Salesforce account. *
** Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You * provide the JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use * this grant type, you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access * your records. *
** The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access token from Salesforce. Amazon * AppFlow requires an access token each time it attempts to access your Salesforce records. *
** Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon AppFlow * receives the authorization code from Salesforce after you log in to your Salesforce account and authorize Amazon * AppFlow to access your records. *
** Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access token from * Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce * account. *
** Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You provide the * JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use this grant type, * you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access your records. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOauth2GrantTypesSupported(java.util.Collection)} or * {@link #withOauth2GrantTypesSupported(java.util.Collection)} if you want to override the existing values. *
* * @param oauth2GrantTypesSupported * The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access token from Salesforce. * Amazon AppFlow requires an access token each time it attempts to access your Salesforce records. ** Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon * AppFlow receives the authorization code from Salesforce after you log in to your Salesforce account and * authorize Amazon AppFlow to access your records. *
** Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access token * from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your * Salesforce account. *
** Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You * provide the JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use * this grant type, you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access * your records. *
** The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access token from Salesforce. Amazon * AppFlow requires an access token each time it attempts to access your Salesforce records. *
** Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon AppFlow * receives the authorization code from Salesforce after you log in to your Salesforce account and authorize Amazon * AppFlow to access your records. *
** Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access token from * Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce * account. *
** Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You provide the * JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use this grant type, * you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access your records. *
** Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon * AppFlow receives the authorization code from Salesforce after you log in to your Salesforce account and * authorize Amazon AppFlow to access your records. *
** Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access token * from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your * Salesforce account. *
** Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You * provide the JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use * this grant type, you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access * your records. *
** The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access token from Salesforce. Amazon * AppFlow requires an access token each time it attempts to access your Salesforce records. *
** Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon AppFlow * receives the authorization code from Salesforce after you log in to your Salesforce account and authorize Amazon * AppFlow to access your records. *
** Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access token from * Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce * account. *
** Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You provide the * JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use this grant type, * you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access your records. *
** Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon * AppFlow receives the authorization code from Salesforce after you log in to your Salesforce account and * authorize Amazon AppFlow to access your records. *
** Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access token * from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your * Salesforce account. *
** Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You * provide the JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use * this grant type, you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access * your records. *
*