#[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 ==
.impl StructuralPartialEq for CodeReviewTypeBuilder
Auto Trait Implementations§
impl Freeze for CodeReviewTypeBuilder
impl RefUnwindSafe for CodeReviewTypeBuilder
impl Send for CodeReviewTypeBuilder
impl Sync for CodeReviewTypeBuilder
impl Unpin for CodeReviewTypeBuilder
impl UnwindSafe for CodeReviewTypeBuilder
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