Struct aws_sdk_codegurureviewer::operation::create_code_review::builders::CreateCodeReviewInputBuilder
source · #[non_exhaustive]pub struct CreateCodeReviewInputBuilder { /* private fields */ }
Expand description
A builder for CreateCodeReviewInput
.
Implementations§
source§impl CreateCodeReviewInputBuilder
impl CreateCodeReviewInputBuilder
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.
This field is required.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.
This field is required.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.
sourcepub fn build(self) -> Result<CreateCodeReviewInput, BuildError>
pub fn build(self) -> Result<CreateCodeReviewInput, BuildError>
Consumes the builder and constructs a CreateCodeReviewInput
.
source§impl CreateCodeReviewInputBuilder
impl CreateCodeReviewInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateCodeReviewOutput, SdkError<CreateCodeReviewError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateCodeReviewOutput, SdkError<CreateCodeReviewError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateCodeReviewInputBuilder
impl Clone for CreateCodeReviewInputBuilder
source§fn clone(&self) -> CreateCodeReviewInputBuilder
fn clone(&self) -> CreateCodeReviewInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateCodeReviewInputBuilder
impl Debug for CreateCodeReviewInputBuilder
source§impl Default for CreateCodeReviewInputBuilder
impl Default for CreateCodeReviewInputBuilder
source§fn default() -> CreateCodeReviewInputBuilder
fn default() -> CreateCodeReviewInputBuilder
source§impl PartialEq for CreateCodeReviewInputBuilder
impl PartialEq for CreateCodeReviewInputBuilder
source§fn eq(&self, other: &CreateCodeReviewInputBuilder) -> bool
fn eq(&self, other: &CreateCodeReviewInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.