Class CfnSourceCredentialMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codebuild.CfnSourceCredentialMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSourceCredentialMixinProps>
- Enclosing interface:
CfnSourceCredentialMixinProps
@Stability(Stable)
public static final class CfnSourceCredentialMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSourceCredentialMixinProps>
A builder for
CfnSourceCredentialMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnSourceCredentialMixinProps.getAuthType()build()Builds the configured instance.serverType(String serverType) Sets the value ofCfnSourceCredentialMixinProps.getServerType()Sets the value ofCfnSourceCredentialMixinProps.getToken()Sets the value ofCfnSourceCredentialMixinProps.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authType
Sets the value ofCfnSourceCredentialMixinProps.getAuthType()- Parameters:
authType- The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.- Returns:
this
-
serverType
Sets the value ofCfnSourceCredentialMixinProps.getServerType()- Parameters:
serverType- The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.- Returns:
this
-
token
Sets the value ofCfnSourceCredentialMixinProps.getToken()- Parameters:
token- For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For theauthTypeCODECONNECTIONS, this is theconnectionArn. For theauthTypeSECRETS_MANAGER, this is thesecretArn.- Returns:
this
-
username
Sets the value ofCfnSourceCredentialMixinProps.getUsername()- Parameters:
username- The Bitbucket username when theauthTypeis BASIC_AUTH. This parameter is not valid for other types of source providers or connections.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSourceCredentialMixinProps>- Returns:
- a new instance of
CfnSourceCredentialMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-