Struct aws_sdk_codegurureviewer::operation::create_code_review::builders::CreateCodeReviewFluentBuilder
source · pub struct CreateCodeReviewFluentBuilder { /* 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 CreateCodeReviewFluentBuilder
impl CreateCodeReviewFluentBuilder
sourcepub fn as_input(&self) -> &CreateCodeReviewInputBuilder
pub fn as_input(&self) -> &CreateCodeReviewInputBuilder
Access the CreateCodeReview as a reference.
sourcepub async fn send(
self,
) -> Result<CreateCodeReviewOutput, SdkError<CreateCodeReviewError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateCodeReviewOutput, SdkError<CreateCodeReviewError, HttpResponse>>
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 customize(
self,
) -> CustomizableOperation<CreateCodeReviewOutput, CreateCodeReviewError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateCodeReviewOutput, CreateCodeReviewError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
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 get_repository_association_arn(&self) -> &Option<String>
pub fn get_repository_association_arn(&self) -> &Option<String>
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 get_type(&self) -> &Option<CodeReviewType>
pub fn get_type(&self) -> &Option<CodeReviewType>
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.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
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 CreateCodeReviewFluentBuilder
impl Clone for CreateCodeReviewFluentBuilder
source§fn clone(&self) -> CreateCodeReviewFluentBuilder
fn clone(&self) -> CreateCodeReviewFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateCodeReviewFluentBuilder
impl !RefUnwindSafe for CreateCodeReviewFluentBuilder
impl Send for CreateCodeReviewFluentBuilder
impl Sync for CreateCodeReviewFluentBuilder
impl Unpin for CreateCodeReviewFluentBuilder
impl !UnwindSafe for CreateCodeReviewFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more