#[non_exhaustive]pub struct CreateScanOutputBuilder { /* private fields */ }
Expand description
A builder for CreateScanOutput
.
Implementations§
source§impl CreateScanOutputBuilder
impl CreateScanOutputBuilder
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 resource_id(self, input: ResourceId) -> Self
pub fn resource_id(self, input: ResourceId) -> Self
The identifier for the resource object that contains resources that were scanned.
This field is required.sourcepub fn set_resource_id(self, input: Option<ResourceId>) -> Self
pub fn set_resource_id(self, input: Option<ResourceId>) -> Self
The identifier for the resource object that contains resources that were scanned.
sourcepub fn get_resource_id(&self) -> &Option<ResourceId>
pub fn get_resource_id(&self) -> &Option<ResourceId>
The identifier for the resource object that contains resources that were scanned.
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 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 build(self) -> Result<CreateScanOutput, BuildError>
pub fn build(self) -> Result<CreateScanOutput, BuildError>
Consumes the builder and constructs a CreateScanOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateScanOutputBuilder
impl Clone for CreateScanOutputBuilder
source§fn clone(&self) -> CreateScanOutputBuilder
fn clone(&self) -> CreateScanOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateScanOutputBuilder
impl Debug for CreateScanOutputBuilder
source§impl Default for CreateScanOutputBuilder
impl Default for CreateScanOutputBuilder
source§fn default() -> CreateScanOutputBuilder
fn default() -> CreateScanOutputBuilder
source§impl PartialEq for CreateScanOutputBuilder
impl PartialEq for CreateScanOutputBuilder
impl StructuralPartialEq for CreateScanOutputBuilder
Auto Trait Implementations§
impl Freeze for CreateScanOutputBuilder
impl RefUnwindSafe for CreateScanOutputBuilder
impl Send for CreateScanOutputBuilder
impl Sync for CreateScanOutputBuilder
impl Unpin for CreateScanOutputBuilder
impl UnwindSafe for CreateScanOutputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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