Class SalesforceConnectorProfileCredentials
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<SalesforceConnectorProfileCredentials.Builder,
SalesforceConnectorProfileCredentials>
The connector-specific profile credentials required when using Salesforce.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The credentials used to access protected Salesforce resources.builder()
final String
The secret manager ARN, which contains the client ID and client secret of the connected app.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
jwtToken()
A JSON web token (JWT) that authorizes Amazon AppFlow to access your Salesforce records.final OAuth2GrantType
Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an access token from Salesforce.final String
Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an access token from Salesforce.final ConnectorOAuthRequest
The OAuth requirement needed to request security tokens from the connector endpoint.final String
The credentials used to acquire new access tokens.static Class
<? extends SalesforceConnectorProfileCredentials.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
accessToken
The credentials used to access protected Salesforce resources.
- Returns:
- The credentials used to access protected Salesforce resources.
-
refreshToken
The credentials used to acquire new access tokens.
- Returns:
- The credentials used to acquire new access tokens.
-
oAuthRequest
The OAuth requirement needed to request security tokens from the connector endpoint.
- Returns:
- The OAuth requirement needed to request security tokens from the connector endpoint.
-
clientCredentialsArn
The secret manager ARN, which contains the client ID and client secret of the connected app.
- Returns:
- The secret manager ARN, which contains the client ID and client secret of the connected app.
-
oAuth2GrantType
Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an access token from Salesforce. Amazon AppFlow requires an access token each time it attempts to access your Salesforce records.
You can specify one of the following values:
- 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.
If the service returns an enum value that is not available in the current SDK version,
oAuth2GrantType
will returnOAuth2GrantType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromoAuth2GrantTypeAsString()
.- Returns:
- Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an access token from
Salesforce. Amazon AppFlow requires an access token each time it attempts to access your Salesforce
records.
You can specify one of the following values:
- 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.
- See Also:
-
oAuth2GrantTypeAsString
Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an access token from Salesforce. Amazon AppFlow requires an access token each time it attempts to access your Salesforce records.
You can specify one of the following values:
- 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.
If the service returns an enum value that is not available in the current SDK version,
oAuth2GrantType
will returnOAuth2GrantType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromoAuth2GrantTypeAsString()
.- Returns:
- Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an access token from
Salesforce. Amazon AppFlow requires an access token each time it attempts to access your Salesforce
records.
You can specify one of the following values:
- 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.
- See Also:
-
jwtToken
A JSON web token (JWT) that authorizes Amazon AppFlow to access your Salesforce records.
- Returns:
- A JSON web token (JWT) that authorizes Amazon AppFlow to access your Salesforce records.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<SalesforceConnectorProfileCredentials.Builder,
SalesforceConnectorProfileCredentials> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends SalesforceConnectorProfileCredentials.Builder> serializableBuilderClass() -
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-