Class CfnConnection.AuthenticationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnConnection.AuthenticationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnection.AuthenticationConfigurationProperty>
- Enclosing interface:
CfnConnection.AuthenticationConfigurationProperty
@Stability(Stable)
public static final class CfnConnection.AuthenticationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnection.AuthenticationConfigurationProperty>
A builder for
CfnConnection.AuthenticationConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticationType(String authenticationType) basicAuthenticationCredentials(IResolvable basicAuthenticationCredentials) basicAuthenticationCredentials(CfnConnection.BasicAuthenticationCredentialsProperty basicAuthenticationCredentials) build()Builds the configured instance.customAuthenticationCredentials(Object customAuthenticationCredentials) Sets the value ofCfnConnection.AuthenticationConfigurationProperty.getKmsKeyArn()oAuth2Properties(IResolvable oAuth2Properties) Sets the value ofCfnConnection.AuthenticationConfigurationProperty.getOAuth2Properties()oAuth2Properties(CfnConnection.OAuth2PropertiesProperty oAuth2Properties) Sets the value ofCfnConnection.AuthenticationConfigurationProperty.getOAuth2Properties()Sets the value ofCfnConnection.AuthenticationConfigurationProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authenticationType
@Stability(Stable) public CfnConnection.AuthenticationConfigurationProperty.Builder authenticationType(String authenticationType) - Parameters:
authenticationType- A structure containing the authentication configuration in the CreateConnection request. This parameter is required.- Returns:
this
-
basicAuthenticationCredentials
@Stability(Stable) public CfnConnection.AuthenticationConfigurationProperty.Builder basicAuthenticationCredentials(IResolvable basicAuthenticationCredentials) Sets the value ofCfnConnection.AuthenticationConfigurationProperty.getBasicAuthenticationCredentials()- Parameters:
basicAuthenticationCredentials- A structure containing the authentication credentials in the CreateConnection request.- Returns:
this
-
basicAuthenticationCredentials
@Stability(Stable) public CfnConnection.AuthenticationConfigurationProperty.Builder basicAuthenticationCredentials(CfnConnection.BasicAuthenticationCredentialsProperty basicAuthenticationCredentials) Sets the value ofCfnConnection.AuthenticationConfigurationProperty.getBasicAuthenticationCredentials()- Parameters:
basicAuthenticationCredentials- A structure containing the authentication credentials in the CreateConnection request.- Returns:
this
-
customAuthenticationCredentials
@Stability(Stable) public CfnConnection.AuthenticationConfigurationProperty.Builder customAuthenticationCredentials(Object customAuthenticationCredentials) Sets the value ofCfnConnection.AuthenticationConfigurationProperty.getCustomAuthenticationCredentials()- Parameters:
customAuthenticationCredentials- A structure containing the authentication credentials in the CreateConnection request.- Returns:
this
-
kmsKeyArn
@Stability(Stable) public CfnConnection.AuthenticationConfigurationProperty.Builder kmsKeyArn(String kmsKeyArn) Sets the value ofCfnConnection.AuthenticationConfigurationProperty.getKmsKeyArn()- Parameters:
kmsKeyArn- The Amazon Resource Name (ARN) of the KMS key used in the authentication configuration.- Returns:
this
-
oAuth2Properties
@Stability(Stable) public CfnConnection.AuthenticationConfigurationProperty.Builder oAuth2Properties(IResolvable oAuth2Properties) Sets the value ofCfnConnection.AuthenticationConfigurationProperty.getOAuth2Properties()- Parameters:
oAuth2Properties- A structure containing the authentication credentials in the CreateConnection request.- Returns:
this
-
oAuth2Properties
@Stability(Stable) public CfnConnection.AuthenticationConfigurationProperty.Builder oAuth2Properties(CfnConnection.OAuth2PropertiesProperty oAuth2Properties) Sets the value ofCfnConnection.AuthenticationConfigurationProperty.getOAuth2Properties()- Parameters:
oAuth2Properties- A structure containing the authentication credentials in the CreateConnection request.- Returns:
this
-
secretArn
@Stability(Stable) public CfnConnection.AuthenticationConfigurationProperty.Builder secretArn(String secretArn) Sets the value ofCfnConnection.AuthenticationConfigurationProperty.getSecretArn()- Parameters:
secretArn- The secret manager ARN to store credentials in the CreateConnection request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnection.AuthenticationConfigurationProperty>- Returns:
- a new instance of
CfnConnection.AuthenticationConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-