public static final class CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder authenticationType(java.lang.String authenticationType)
CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.getAuthenticationType()
authenticationType
- The authentication type that the custom connector uses for authenticating while creating a connector profile. This parameter is required.this
public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder apiKey(IResolvable apiKey)
apiKey
- The API keys required for the authentication of the user.this
public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder apiKey(CfnConnectorProfile.ApiKeyCredentialsProperty apiKey)
apiKey
- The API keys required for the authentication of the user.this
public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder basic(IResolvable basic)
CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.getBasic()
basic
- The basic credentials that are required for the authentication of the user.this
public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder basic(CfnConnectorProfile.BasicAuthCredentialsProperty basic)
CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.getBasic()
basic
- The basic credentials that are required for the authentication of the user.this
public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder custom(IResolvable custom)
custom
- If the connector uses the custom authentication mechanism, this holds the required credentials.this
public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder custom(CfnConnectorProfile.CustomAuthCredentialsProperty custom)
custom
- If the connector uses the custom authentication mechanism, this holds the required credentials.this
public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder oauth2(IResolvable oauth2)
oauth2
- The OAuth 2.0 credentials required for the authentication of the user.this
public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty.Builder oauth2(CfnConnectorProfile.OAuth2CredentialsProperty oauth2)
oauth2
- The OAuth 2.0 credentials required for the authentication of the user.this
public CfnConnectorProfile.CustomConnectorProfileCredentialsProperty build()
CfnConnectorProfile.CustomConnectorProfileCredentialsProperty
java.lang.NullPointerException
- if any required attribute was not provided