Interface ImportSourceCredentialsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeBuildRequest.Builder,CopyableBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>,SdkBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ImportSourceCredentialsRequest
public static interface ImportSourceCredentialsRequest.Builder extends CodeBuildRequest.Builder, SdkPojo, CopyableBuilder<ImportSourceCredentialsRequest.Builder,ImportSourceCredentialsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImportSourceCredentialsRequest.BuilderauthType(String authType)The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository.ImportSourceCredentialsRequest.BuilderauthType(AuthType authType)The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository.ImportSourceCredentialsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ImportSourceCredentialsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)ImportSourceCredentialsRequest.BuilderserverType(String serverType)The source provider used for this project.ImportSourceCredentialsRequest.BuilderserverType(ServerType serverType)The source provider used for this project.ImportSourceCredentialsRequest.BuildershouldOverwrite(Boolean shouldOverwrite)Set tofalseto prevent overwriting the repository source credentials.ImportSourceCredentialsRequest.Buildertoken(String token)For GitHub or GitHub Enterprise, this is the personal access token.ImportSourceCredentialsRequest.Builderusername(String username)The Bitbucket username when theauthTypeis 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 Detail
-
username
ImportSourceCredentialsRequest.Builder username(String 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
ImportSourceCredentialsRequest.Builder token(String 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
ImportSourceCredentialsRequest.Builder serverType(String 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,ServerType
-
serverType
ImportSourceCredentialsRequest.Builder serverType(ServerType 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,ServerType
-
authType
ImportSourceCredentialsRequest.Builder authType(String 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,AuthType
-
authType
ImportSourceCredentialsRequest.Builder authType(AuthType 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,AuthType
-
shouldOverwrite
ImportSourceCredentialsRequest.Builder shouldOverwrite(Boolean 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ImportSourceCredentialsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-