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