#[non_exhaustive]pub struct CodeReviewTypeBuilder { /* private fields */ }
Expand description
A builder for CodeReviewType
.
Implementations§
source§impl CodeReviewTypeBuilder
impl CodeReviewTypeBuilder
sourcepub fn repository_analysis(self, input: RepositoryAnalysis) -> Self
pub fn repository_analysis(self, input: RepositoryAnalysis) -> Self
A code review that analyzes all code under a specified branch in an associated repository. The associated repository is specified using its ARN in CreateCodeReview.
This field is required.sourcepub fn set_repository_analysis(self, input: Option<RepositoryAnalysis>) -> Self
pub fn set_repository_analysis(self, input: Option<RepositoryAnalysis>) -> Self
A code review that analyzes all code under a specified branch in an associated repository. The associated repository is specified using its ARN in CreateCodeReview.
sourcepub fn get_repository_analysis(&self) -> &Option<RepositoryAnalysis>
pub fn get_repository_analysis(&self) -> &Option<RepositoryAnalysis>
A code review that analyzes all code under a specified branch in an associated repository. The associated repository is specified using its ARN in CreateCodeReview.
sourcepub fn analysis_types(self, input: AnalysisType) -> Self
pub fn analysis_types(self, input: AnalysisType) -> Self
Appends an item to analysis_types
.
To override the contents of this collection use set_analysis_types
.
They types of analysis performed during a repository analysis or a pull request review. You can specify either Security
, CodeQuality
, or both.
sourcepub fn set_analysis_types(self, input: Option<Vec<AnalysisType>>) -> Self
pub fn set_analysis_types(self, input: Option<Vec<AnalysisType>>) -> Self
They types of analysis performed during a repository analysis or a pull request review. You can specify either Security
, CodeQuality
, or both.
sourcepub fn get_analysis_types(&self) -> &Option<Vec<AnalysisType>>
pub fn get_analysis_types(&self) -> &Option<Vec<AnalysisType>>
They types of analysis performed during a repository analysis or a pull request review. You can specify either Security
, CodeQuality
, or both.
sourcepub fn build(self) -> CodeReviewType
pub fn build(self) -> CodeReviewType
Consumes the builder and constructs a CodeReviewType
.
Trait Implementations§
source§impl Clone for CodeReviewTypeBuilder
impl Clone for CodeReviewTypeBuilder
source§fn clone(&self) -> CodeReviewTypeBuilder
fn clone(&self) -> CodeReviewTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CodeReviewTypeBuilder
impl Debug for CodeReviewTypeBuilder
source§impl Default for CodeReviewTypeBuilder
impl Default for CodeReviewTypeBuilder
source§fn default() -> CodeReviewTypeBuilder
fn default() -> CodeReviewTypeBuilder
source§impl PartialEq for CodeReviewTypeBuilder
impl PartialEq for CodeReviewTypeBuilder
source§fn eq(&self, other: &CodeReviewTypeBuilder) -> bool
fn eq(&self, other: &CodeReviewTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.