Interface ImportSourceCredentialsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CodeBuildRequest.Builder
,CopyableBuilder<ImportSourceCredentialsRequest.Builder,
,ImportSourceCredentialsRequest> SdkBuilder<ImportSourceCredentialsRequest.Builder,
,ImportSourceCredentialsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ImportSourceCredentialsRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository.The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.serverType
(String serverType) The source provider used for this project.serverType
(ServerType serverType) The source provider used for this project.shouldOverwrite
(Boolean shouldOverwrite) Set tofalse
to prevent overwriting the repository source credentials.For GitHub or GitHub Enterprise, this is the personal access token.The Bitbucket username when theauthType
is BASIC_AUTH.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.codebuild.model.CodeBuildRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
username
The Bitbucket username when the
authType
is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.- Parameters:
username
- The Bitbucket username when theauthType
is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
token
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
- Parameters:
token
- For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverType
The source provider used for this project.
- Parameters:
serverType
- The source provider used for this project.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serverType
The source provider used for this project.
- Parameters:
serverType
- The source provider used for this project.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
authType
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.
- Parameters:
authType
- The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
authType
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.
- Parameters:
authType
- The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
shouldOverwrite
Set to
false
to prevent overwriting the repository source credentials. Set totrue
to overwrite the repository source credentials. The default value istrue
.- Parameters:
shouldOverwrite
- Set tofalse
to prevent overwriting the repository source credentials. Set totrue
to overwrite the repository source credentials. The default value istrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ImportSourceCredentialsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ImportSourceCredentialsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-