/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the appflow-2020-08-23.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Appflow.Model
{
///
/// The connector metadata specific to Salesforce.
///
public partial class SalesforceMetadata
{
private List _dataTransferApis = new List();
private List _oauth2GrantTypesSupported = new List();
private List _oAuthScopes = new List();
///
/// Gets and sets the property DataTransferApis.
///
/// The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers
/// data to or from Salesforce.
///
///
public List DataTransferApis
{
get { return this._dataTransferApis; }
set { this._dataTransferApis = value; }
}
// Check to see if DataTransferApis property is set
internal bool IsSetDataTransferApis()
{
return this._dataTransferApis != null && this._dataTransferApis.Count > 0;
}
///
/// Gets and sets the property 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.
///
/// - AUTHORIZATION_CODE
-
///
/// 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.
///
///
- CLIENT_CREDENTIALS
-
///
/// 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.
///
///
- JWT_BEARER
-
///
/// 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.
///
///
///
public List Oauth2GrantTypesSupported
{
get { return this._oauth2GrantTypesSupported; }
set { this._oauth2GrantTypesSupported = value; }
}
// Check to see if Oauth2GrantTypesSupported property is set
internal bool IsSetOauth2GrantTypesSupported()
{
return this._oauth2GrantTypesSupported != null && this._oauth2GrantTypesSupported.Count > 0;
}
///
/// Gets and sets the property OAuthScopes.
///
/// The desired authorization scope for the Salesforce account.
///
///
public List OAuthScopes
{
get { return this._oAuthScopes; }
set { this._oAuthScopes = value; }
}
// Check to see if OAuthScopes property is set
internal bool IsSetOAuthScopes()
{
return this._oAuthScopes != null && this._oAuthScopes.Count > 0;
}
}
}