Interface CreateCodeReviewRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeGuruReviewerRequest.Builder,CopyableBuilder<CreateCodeReviewRequest.Builder,CreateCodeReviewRequest>,SdkBuilder<CreateCodeReviewRequest.Builder,CreateCodeReviewRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateCodeReviewRequest
public static interface CreateCodeReviewRequest.Builder extends CodeGuruReviewerRequest.Builder, SdkPojo, CopyableBuilder<CreateCodeReviewRequest.Builder,CreateCodeReviewRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateCodeReviewRequest.BuilderclientRequestToken(String clientRequestToken)Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code reviews if there are failures and retries.CreateCodeReviewRequest.Buildername(String name)The name of the code review.CreateCodeReviewRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateCodeReviewRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateCodeReviewRequest.BuilderrepositoryAssociationArn(String repositoryAssociationArn)The Amazon Resource Name (ARN) of the RepositoryAssociation object.default CreateCodeReviewRequest.Buildertype(Consumer<CodeReviewType.Builder> type)The type of code review to create.CreateCodeReviewRequest.Buildertype(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 Detail
-
name
CreateCodeReviewRequest.Builder name(String 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
CreateCodeReviewRequest.Builder repositoryAssociationArn(String 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
CreateCodeReviewRequest.Builder type(CodeReviewType 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
default CreateCodeReviewRequest.Builder type(Consumer<CodeReviewType.Builder> 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.Builderavoiding the need to create one manually viaCodeReviewType.builder().When the
Consumercompletes,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:
type(CodeReviewType)
-
clientRequestToken
CreateCodeReviewRequest.Builder clientRequestToken(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateCodeReviewRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-