Class CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appflow.CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty>
- Enclosing interface:
CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty
@Stability(Stable)
public static final class CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.oAuth2Credentials
(IResolvable oAuth2Credentials) oAuth2Credentials
(CfnConnectorProfile.OAuth2CredentialsProperty oAuth2Credentials)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
oAuth2Credentials
@Stability(Stable) public CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty.Builder oAuth2Credentials(IResolvable oAuth2Credentials) Sets the value ofCfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty.getOAuth2Credentials()
- Parameters:
oAuth2Credentials
- The OAuth 2.0 credentials required to authenticate the user.- Returns:
this
-
oAuth2Credentials
@Stability(Stable) public CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty.Builder oAuth2Credentials(CfnConnectorProfile.OAuth2CredentialsProperty oAuth2Credentials) Sets the value ofCfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty.getOAuth2Credentials()
- Parameters:
oAuth2Credentials
- The OAuth 2.0 credentials required to authenticate the user.- Returns:
this
-
password
@Stability(Stable) public CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty.Builder password(String password) - Parameters:
password
- The password that corresponds to the user name.- Returns:
this
-
username
@Stability(Stable) public CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty.Builder username(String username) - Parameters:
username
- The name of the user.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty>
- Returns:
- a new instance of
CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-