@Stability(value=Stable) public static final class CfnSourceCredentialProps.Builder extends Object implements software.amazon.jsii.Builder<CfnSourceCredentialProps>
CfnSourceCredentialProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnSourceCredentialProps.Builder |
authType(String authType)
Sets the value of
CfnSourceCredentialProps.getAuthType() |
CfnSourceCredentialProps |
build()
Builds the configured instance.
|
CfnSourceCredentialProps.Builder |
serverType(String serverType)
Sets the value of
CfnSourceCredentialProps.getServerType() |
CfnSourceCredentialProps.Builder |
token(String token)
Sets the value of
CfnSourceCredentialProps.getToken() |
CfnSourceCredentialProps.Builder |
username(String username)
Sets the value of
CfnSourceCredentialProps.getUsername() |
@Stability(value=Stable) public CfnSourceCredentialProps.Builder authType(String authType)
CfnSourceCredentialProps.getAuthType()authType - The type of authentication used by the credentials. This parameter is required.
Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.this@Stability(value=Stable) public CfnSourceCredentialProps.Builder serverType(String serverType)
CfnSourceCredentialProps.getServerType()serverType - The type of source provider. This parameter is required.
The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.this@Stability(value=Stable) public CfnSourceCredentialProps.Builder token(String token)
CfnSourceCredentialProps.getToken()token - For GitHub or GitHub Enterprise, this is the personal access token. This parameter is required.
For Bitbucket, this is the app password.this@Stability(value=Stable) public CfnSourceCredentialProps.Builder username(String username)
CfnSourceCredentialProps.getUsername()username - The Bitbucket username when the `authType` is BASIC_AUTH.
This parameter is not valid for other types of source providers or connections.this@Stability(value=Stable) public CfnSourceCredentialProps build()
build in interface software.amazon.jsii.Builder<CfnSourceCredentialProps>CfnSourceCredentialPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.