pub struct Builder { /* private fields */ }Expand description
A builder for CreateCodeReviewInput.
Implementations§
source§impl Builder
impl Builder
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.
sourcepub fn build(self) -> Result<CreateCodeReviewInput, BuildError>
pub fn build(self) -> Result<CreateCodeReviewInput, BuildError>
Consumes the builder and constructs a CreateCodeReviewInput.