Struct aws_sdk_inspector2::operation::create_cis_scan_configuration::builders::CreateCisScanConfigurationInputBuilder
source · #[non_exhaustive]pub struct CreateCisScanConfigurationInputBuilder { /* private fields */ }Expand description
A builder for CreateCisScanConfigurationInput.
Implementations§
source§impl CreateCisScanConfigurationInputBuilder
impl CreateCisScanConfigurationInputBuilder
sourcepub fn scan_name(self, input: impl Into<String>) -> Self
pub fn scan_name(self, input: impl Into<String>) -> Self
The scan name for the CIS scan configuration.
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 scan name for the CIS scan configuration.
sourcepub fn get_scan_name(&self) -> &Option<String>
pub fn get_scan_name(&self) -> &Option<String>
The scan name for the CIS scan configuration.
sourcepub fn security_level(self, input: CisSecurityLevel) -> Self
pub fn security_level(self, input: CisSecurityLevel) -> Self
The security level for the CIS scan configuration. Security level refers to the Benchmark levels that CIS assigns to a profile.
This field is required.sourcepub fn set_security_level(self, input: Option<CisSecurityLevel>) -> Self
pub fn set_security_level(self, input: Option<CisSecurityLevel>) -> Self
The security level for the CIS scan configuration. Security level refers to the Benchmark levels that CIS assigns to a profile.
sourcepub fn get_security_level(&self) -> &Option<CisSecurityLevel>
pub fn get_security_level(&self) -> &Option<CisSecurityLevel>
The security level for the CIS scan configuration. Security level refers to the Benchmark levels that CIS assigns to a profile.
sourcepub fn schedule(self, input: Schedule) -> Self
pub fn schedule(self, input: Schedule) -> Self
The schedule for the CIS scan configuration.
This field is required.sourcepub fn set_schedule(self, input: Option<Schedule>) -> Self
pub fn set_schedule(self, input: Option<Schedule>) -> Self
The schedule for the CIS scan configuration.
sourcepub fn get_schedule(&self) -> &Option<Schedule>
pub fn get_schedule(&self) -> &Option<Schedule>
The schedule for the CIS scan configuration.
sourcepub fn targets(self, input: CreateCisTargets) -> Self
pub fn targets(self, input: CreateCisTargets) -> Self
The targets for the CIS scan configuration.
This field is required.sourcepub fn set_targets(self, input: Option<CreateCisTargets>) -> Self
pub fn set_targets(self, input: Option<CreateCisTargets>) -> Self
The targets for the CIS scan configuration.
sourcepub fn get_targets(&self) -> &Option<CreateCisTargets>
pub fn get_targets(&self) -> &Option<CreateCisTargets>
The targets for the CIS scan configuration.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The tags for the CIS scan configuration.
The tags for the CIS scan configuration.
The tags for the CIS scan configuration.
sourcepub fn build(self) -> Result<CreateCisScanConfigurationInput, BuildError>
pub fn build(self) -> Result<CreateCisScanConfigurationInput, BuildError>
Consumes the builder and constructs a CreateCisScanConfigurationInput.
source§impl CreateCisScanConfigurationInputBuilder
impl CreateCisScanConfigurationInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateCisScanConfigurationOutput, SdkError<CreateCisScanConfigurationError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateCisScanConfigurationOutput, SdkError<CreateCisScanConfigurationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateCisScanConfigurationInputBuilder
impl Clone for CreateCisScanConfigurationInputBuilder
source§fn clone(&self) -> CreateCisScanConfigurationInputBuilder
fn clone(&self) -> CreateCisScanConfigurationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateCisScanConfigurationInputBuilder
impl Default for CreateCisScanConfigurationInputBuilder
source§fn default() -> CreateCisScanConfigurationInputBuilder
fn default() -> CreateCisScanConfigurationInputBuilder
source§impl PartialEq for CreateCisScanConfigurationInputBuilder
impl PartialEq for CreateCisScanConfigurationInputBuilder
source§fn eq(&self, other: &CreateCisScanConfigurationInputBuilder) -> bool
fn eq(&self, other: &CreateCisScanConfigurationInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateCisScanConfigurationInputBuilder
Auto Trait Implementations§
impl Freeze for CreateCisScanConfigurationInputBuilder
impl RefUnwindSafe for CreateCisScanConfigurationInputBuilder
impl Send for CreateCisScanConfigurationInputBuilder
impl Sync for CreateCisScanConfigurationInputBuilder
impl Unpin for CreateCisScanConfigurationInputBuilder
impl UnwindSafe for CreateCisScanConfigurationInputBuilder
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