public static interface MarketoConnectorProfileCredentials.Builder extends SdkPojo, CopyableBuilder<MarketoConnectorProfileCredentials.Builder,MarketoConnectorProfileCredentials>
Modifier and Type | Method and Description |
---|---|
MarketoConnectorProfileCredentials.Builder |
accessToken(String accessToken)
The credentials used to access protected Marketo resources.
|
MarketoConnectorProfileCredentials.Builder |
clientId(String clientId)
The identifier for the desired client.
|
MarketoConnectorProfileCredentials.Builder |
clientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
|
MarketoConnectorProfileCredentials.Builder |
oAuthRequest(ConnectorOAuthRequest oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
|
default MarketoConnectorProfileCredentials.Builder |
oAuthRequest(Consumer<ConnectorOAuthRequest.Builder> oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
MarketoConnectorProfileCredentials.Builder clientId(String clientId)
The identifier for the desired client.
clientId
- The identifier for the desired client.MarketoConnectorProfileCredentials.Builder clientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
clientSecret
- The client secret used by the OAuth client to authenticate to the authorization server.MarketoConnectorProfileCredentials.Builder accessToken(String accessToken)
The credentials used to access protected Marketo resources.
accessToken
- The credentials used to access protected Marketo resources.MarketoConnectorProfileCredentials.Builder oAuthRequest(ConnectorOAuthRequest oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
oAuthRequest
- The OAuth requirement needed to request security tokens from the connector endpoint.default MarketoConnectorProfileCredentials.Builder oAuthRequest(Consumer<ConnectorOAuthRequest.Builder> oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
This is a convenience that creates an instance of theConnectorOAuthRequest.Builder
avoiding the need
to create one manually via ConnectorOAuthRequest.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to oAuthRequest(ConnectorOAuthRequest)
.oAuthRequest
- a consumer that will call methods on ConnectorOAuthRequest.Builder
oAuthRequest(ConnectorOAuthRequest)
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.