pub struct CreateCodeReview { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCodeReview
.
Use to create a code review with a CodeReviewType of RepositoryAnalysis
. This type of code review analyzes all code under a specified branch in an associated repository. PullRequest
code reviews are automatically triggered by a pull request.
Implementations§
source§impl CreateCodeReview
impl CreateCodeReview
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateCodeReview, AwsResponseRetryClassifier>, SdkError<CreateCodeReviewError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateCodeReview, AwsResponseRetryClassifier>, SdkError<CreateCodeReviewError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateCodeReviewOutput, SdkError<CreateCodeReviewError>>
pub async fn send(
self
) -> Result<CreateCodeReviewOutput, SdkError<CreateCodeReviewError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the code review. The name of each code review in your Amazon Web Services account must be unique.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the code review. The name of each code review in your Amazon Web Services account must be unique.
sourcepub fn repository_association_arn(self, input: impl Into<String>) -> Self
pub fn repository_association_arn(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_repository_association_arn(self, input: Option<String>) -> Self
pub fn set_repository_association_arn(self, input: Option<String>) -> Self
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.
sourcepub fn type(self, input: CodeReviewType) -> Self
pub fn type(self, input: CodeReviewType) -> Self
The type of code review to create. This is specified using a CodeReviewType object. You can create a code review only of type RepositoryAnalysis
.
sourcepub fn set_type(self, input: Option<CodeReviewType>) -> Self
pub fn set_type(self, input: Option<CodeReviewType>) -> Self
The type of code review to create. This is specified using a CodeReviewType object. You can create a code review only of type RepositoryAnalysis
.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code reviews if there are failures and retries.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code reviews if there are failures and retries.
Trait Implementations§
source§impl Clone for CreateCodeReview
impl Clone for CreateCodeReview
source§fn clone(&self) -> CreateCodeReview
fn clone(&self) -> CreateCodeReview
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more