Class CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appflow.CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty>
- Enclosing interface:
CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty
@Stability(Stable)
public static final class CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty>
A builder for
CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) Sets the value ofCfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.getAccessToken()build()Builds the configured instance.Sets the value ofCfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.getClientId()clientSecret(String clientSecret) oAuthRequest(IResolvable oAuthRequest) refreshToken(String refreshToken)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessToken
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.Builder accessToken(String accessToken) Sets the value ofCfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.getAccessToken()- Parameters:
accessToken- The access token used to access the connector on your behalf.- Returns:
this
-
clientId
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.Builder clientId(String clientId) Sets the value ofCfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.getClientId()- Parameters:
clientId- The identifier for the desired client.- Returns:
this
-
clientSecret
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.Builder clientSecret(String clientSecret) - Parameters:
clientSecret- The client secret used by the OAuth client to authenticate to the authorization server.- Returns:
this
-
oAuthRequest
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.Builder oAuthRequest(IResolvable oAuthRequest) - Parameters:
oAuthRequest- the value to be set.- Returns:
this
-
oAuthRequest
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.Builder oAuthRequest(CfnConnectorProfilePropsMixin.ConnectorOAuthRequestProperty oAuthRequest) - Parameters:
oAuthRequest- the value to be set.- Returns:
this
-
refreshToken
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty.Builder refreshToken(String refreshToken) - Parameters:
refreshToken- The refresh token used to refresh an expired access token.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty>- Returns:
- a new instance of
CfnConnectorProfilePropsMixin.OAuth2CredentialsProperty - Throws:
NullPointerException- if any required attribute was not provided
-