#[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
source§fn eq(&self, other: &CreateScanOutputBuilder) -> bool
fn eq(&self, other: &CreateScanOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.