Class CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appflow.CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorProfile.CustomConnectorProfileCredentialsProperty>
- Enclosing interface:
CfnConnectorProfile.CustomConnectorProfileCredentialsProperty
@Stability(Stable)
public static final class CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorProfile.CustomConnectorProfileCredentialsProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiKey
(IResolvable apiKey) authenticationType
(String authenticationType) basic
(IResolvable basic) Sets the value ofCfnConnectorProfile.CustomConnectorProfileCredentialsProperty.getBasic()
Sets the value ofCfnConnectorProfile.CustomConnectorProfileCredentialsProperty.getBasic()
build()
Builds the configured instance.custom
(IResolvable custom) oauth2
(IResolvable oauth2)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authenticationType
@Stability(Stable) public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder authenticationType(String authenticationType) Sets the value ofCfnConnectorProfile.CustomConnectorProfileCredentialsProperty.getAuthenticationType()
- Parameters:
authenticationType
- The authentication type that the custom connector uses for authenticating while creating a connector profile. This parameter is required.- Returns:
this
-
apiKey
@Stability(Stable) public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder apiKey(IResolvable apiKey) - Parameters:
apiKey
- The API keys required for the authentication of the user.- Returns:
this
-
apiKey
@Stability(Stable) public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder apiKey(CfnConnectorProfile.ApiKeyCredentialsProperty apiKey) - Parameters:
apiKey
- The API keys required for the authentication of the user.- Returns:
this
-
basic
@Stability(Stable) public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder basic(IResolvable basic) Sets the value ofCfnConnectorProfile.CustomConnectorProfileCredentialsProperty.getBasic()
- Parameters:
basic
- The basic credentials that are required for the authentication of the user.- Returns:
this
-
basic
@Stability(Stable) public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder basic(CfnConnectorProfile.BasicAuthCredentialsProperty basic) Sets the value ofCfnConnectorProfile.CustomConnectorProfileCredentialsProperty.getBasic()
- Parameters:
basic
- The basic credentials that are required for the authentication of the user.- Returns:
this
-
custom
@Stability(Stable) public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder custom(IResolvable custom) - Parameters:
custom
- If the connector uses the custom authentication mechanism, this holds the required credentials.- Returns:
this
-
custom
@Stability(Stable) public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder custom(CfnConnectorProfile.CustomAuthCredentialsProperty custom) - Parameters:
custom
- If the connector uses the custom authentication mechanism, this holds the required credentials.- Returns:
this
-
oauth2
@Stability(Stable) public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder oauth2(IResolvable oauth2) - Parameters:
oauth2
- The OAuth 2.0 credentials required for the authentication of the user.- Returns:
this
-
oauth2
@Stability(Stable) public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder oauth2(CfnConnectorProfile.OAuth2CredentialsProperty oauth2) - Parameters:
oauth2
- The OAuth 2.0 credentials required for the authentication of the user.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConnectorProfile.CustomConnectorProfileCredentialsProperty>
- Returns:
- a new instance of
CfnConnectorProfile.CustomConnectorProfileCredentialsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-