Interface CreateCodeReviewRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CodeGuruReviewerRequest.Builder
,CopyableBuilder<CreateCodeReviewRequest.Builder,
,CreateCodeReviewRequest> SdkBuilder<CreateCodeReviewRequest.Builder,
,CreateCodeReviewRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateCodeReviewRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken
(String clientRequestToken) Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code reviews if there are failures and retries.The name of the code review.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.repositoryAssociationArn
(String repositoryAssociationArn) The Amazon Resource Name (ARN) of the RepositoryAssociation object.default CreateCodeReviewRequest.Builder
type
(Consumer<CodeReviewType.Builder> type) The type of code review to create.type
(CodeReviewType type) The type of code review to create.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.codegurureviewer.model.CodeGuruReviewerRequest.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
-
name
The name of the code review. The name of each code review in your Amazon Web Services account must be unique.
- Parameters:
name
- The name of the code review. The name of each code review in your Amazon Web Services account must be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryAssociationArn
The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations.
A code review can only be created on an associated repository. This is the ARN of the associated repository.
- Parameters:
repositoryAssociationArn
- The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations.A code review can only be created on an associated repository. This is the ARN of the associated repository.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of code review to create. This is specified using a CodeReviewType object. You can create a code review only of type
RepositoryAnalysis
.- Parameters:
type
- The type of code review to create. This is specified using a CodeReviewType object. You can create a code review only of typeRepositoryAnalysis
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of code review to create. This is specified using a CodeReviewType object. You can create a code review only of type
This is a convenience method that creates an instance of theRepositoryAnalysis
.CodeReviewType.Builder
avoiding the need to create one manually viaCodeReviewType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totype(CodeReviewType)
.- Parameters:
type
- a consumer that will call methods onCodeReviewType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientRequestToken
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code reviews if there are failures and retries.
- Parameters:
clientRequestToken
- Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code reviews if there are failures and retries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateCodeReviewRequest.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
CreateCodeReviewRequest.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.
-