public static interface SlackConnectorProfileCredentials.Builder extends SdkPojo, CopyableBuilder<SlackConnectorProfileCredentials.Builder,SlackConnectorProfileCredentials>
Modifier and Type | Method and Description |
---|---|
SlackConnectorProfileCredentials.Builder |
accessToken(String accessToken)
The credentials used to access protected Slack resources.
|
SlackConnectorProfileCredentials.Builder |
clientId(String clientId)
The identifier for the client.
|
SlackConnectorProfileCredentials.Builder |
clientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
|
SlackConnectorProfileCredentials.Builder |
oAuthRequest(ConnectorOAuthRequest oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
|
default SlackConnectorProfileCredentials.Builder |
oAuthRequest(Consumer<ConnectorOAuthRequest.Builder> oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
SlackConnectorProfileCredentials.Builder clientId(String clientId)
The identifier for the client.
clientId
- The identifier for the client.SlackConnectorProfileCredentials.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.SlackConnectorProfileCredentials.Builder accessToken(String accessToken)
The credentials used to access protected Slack resources.
accessToken
- The credentials used to access protected Slack resources.SlackConnectorProfileCredentials.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 SlackConnectorProfileCredentials.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.