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, GitLab, GitLab Self Managed, or Bitbucket repository.The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, 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 tofalseto prevent overwriting the repository source credentials.For GitHub or GitHub Enterprise, this is the personal access token.The Bitbucket username when theauthTypeis BASIC_AUTH.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.codebuild.model.CodeBuildRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
username
The Bitbucket username when the
authTypeis BASIC_AUTH. This parameter is not valid for other types of source providers or connections.- Parameters:
username- The Bitbucket username when theauthTypeis 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 either the access token or the app password. For the
authTypeCODECONNECTIONS, this is theconnectionArn. For theauthTypeSECRETS_MANAGER, this is thesecretArn.- 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:
- 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, GitLab, GitLab Self Managed, 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, GitLab, GitLab Self Managed, 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, GitLab, GitLab Self Managed, 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, GitLab, GitLab Self Managed, 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
falseto prevent overwriting the repository source credentials. Set totrueto overwrite the repository source credentials. The default value istrue.- Parameters:
shouldOverwrite- Set tofalseto prevent overwriting the repository source credentials. Set totrueto 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-