#[non_exhaustive]pub struct GetScanOutputBuilder { /* private fields */ }
Expand description
A builder for GetScanOutput
.
Implementations§
source§impl GetScanOutputBuilder
impl GetScanOutputBuilder
sourcepub fn scan_name(self, input: impl Into<String>) -> Self
pub fn scan_name(self, input: impl Into<String>) -> Self
The name of the scan.
This field is required.sourcepub fn set_scan_name(self, input: Option<String>) -> Self
pub fn set_scan_name(self, input: Option<String>) -> Self
The name of the scan.
sourcepub fn get_scan_name(&self) -> &Option<String>
pub fn get_scan_name(&self) -> &Option<String>
The name of the scan.
sourcepub fn run_id(self, input: impl Into<String>) -> Self
pub fn run_id(self, input: impl Into<String>) -> Self
UUID that identifies the individual scan run.
This field is required.sourcepub fn set_run_id(self, input: Option<String>) -> Self
pub fn set_run_id(self, input: Option<String>) -> Self
UUID that identifies the individual scan run.
sourcepub fn get_run_id(&self) -> &Option<String>
pub fn get_run_id(&self) -> &Option<String>
UUID that identifies the individual scan run.
sourcepub fn scan_state(self, input: ScanState) -> Self
pub fn scan_state(self, input: ScanState) -> Self
The current state of the scan. Returns either InProgress
, Successful
, or Failed
.
sourcepub fn set_scan_state(self, input: Option<ScanState>) -> Self
pub fn set_scan_state(self, input: Option<ScanState>) -> Self
The current state of the scan. Returns either InProgress
, Successful
, or Failed
.
sourcepub fn get_scan_state(&self) -> &Option<ScanState>
pub fn get_scan_state(&self) -> &Option<ScanState>
The current state of the scan. Returns either InProgress
, Successful
, or Failed
.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time the scan was created.
This field is required.sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time the scan was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time the scan was created.
sourcepub fn analysis_type(self, input: AnalysisType) -> Self
pub fn analysis_type(self, input: AnalysisType) -> Self
The type of analysis CodeGuru Security performed in the scan, either Security
or All
. The Security
type only generates findings related to security. The All
type generates both security findings and quality findings.
sourcepub fn set_analysis_type(self, input: Option<AnalysisType>) -> Self
pub fn set_analysis_type(self, input: Option<AnalysisType>) -> Self
The type of analysis CodeGuru Security performed in the scan, either Security
or All
. The Security
type only generates findings related to security. The All
type generates both security findings and quality findings.
sourcepub fn get_analysis_type(&self) -> &Option<AnalysisType>
pub fn get_analysis_type(&self) -> &Option<AnalysisType>
The type of analysis CodeGuru Security performed in the scan, either Security
or All
. The Security
type only generates findings related to security. The All
type generates both security findings and quality findings.
sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
The time when the scan was last updated. Only available for STANDARD
scan types.
sourcepub fn set_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_updated_at(self, input: Option<DateTime>) -> Self
The time when the scan was last updated. Only available for STANDARD
scan types.
sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
The time when the scan was last updated. Only available for STANDARD
scan types.
sourcepub fn number_of_revisions(self, input: i64) -> Self
pub fn number_of_revisions(self, input: i64) -> Self
The number of times a scan has been re-run on a revised resource.
sourcepub fn set_number_of_revisions(self, input: Option<i64>) -> Self
pub fn set_number_of_revisions(self, input: Option<i64>) -> Self
The number of times a scan has been re-run on a revised resource.
sourcepub fn get_number_of_revisions(&self) -> &Option<i64>
pub fn get_number_of_revisions(&self) -> &Option<i64>
The number of times a scan has been re-run on a revised resource.
sourcepub fn scan_name_arn(self, input: impl Into<String>) -> Self
pub fn scan_name_arn(self, input: impl Into<String>) -> Self
The ARN for the scan name.
sourcepub fn set_scan_name_arn(self, input: Option<String>) -> Self
pub fn set_scan_name_arn(self, input: Option<String>) -> Self
The ARN for the scan name.
sourcepub fn get_scan_name_arn(&self) -> &Option<String>
pub fn get_scan_name_arn(&self) -> &Option<String>
The ARN for the scan name.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
Details about the error that causes a scan to fail to be retrieved.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
Details about the error that causes a scan to fail to be retrieved.
sourcepub fn get_error_message(&self) -> &Option<String>
pub fn get_error_message(&self) -> &Option<String>
Details about the error that causes a scan to fail to be retrieved.
sourcepub fn build(self) -> Result<GetScanOutput, BuildError>
pub fn build(self) -> Result<GetScanOutput, BuildError>
Consumes the builder and constructs a GetScanOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetScanOutputBuilder
impl Clone for GetScanOutputBuilder
source§fn clone(&self) -> GetScanOutputBuilder
fn clone(&self) -> GetScanOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetScanOutputBuilder
impl Debug for GetScanOutputBuilder
source§impl Default for GetScanOutputBuilder
impl Default for GetScanOutputBuilder
source§fn default() -> GetScanOutputBuilder
fn default() -> GetScanOutputBuilder
source§impl PartialEq for GetScanOutputBuilder
impl PartialEq for GetScanOutputBuilder
source§fn eq(&self, other: &GetScanOutputBuilder) -> bool
fn eq(&self, other: &GetScanOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetScanOutputBuilder
Auto Trait Implementations§
impl Freeze for GetScanOutputBuilder
impl RefUnwindSafe for GetScanOutputBuilder
impl Send for GetScanOutputBuilder
impl Sync for GetScanOutputBuilder
impl Unpin for GetScanOutputBuilder
impl UnwindSafe for GetScanOutputBuilder
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