Struct aws_sdk_inspector2::operation::enable::builders::EnableFluentBuilder
source · pub struct EnableFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to Enable
.
Enables Amazon Inspector scans for one or more Amazon Web Services accounts.
Implementations§
source§impl EnableFluentBuilder
impl EnableFluentBuilder
sourcepub fn as_input(&self) -> &EnableInputBuilder
pub fn as_input(&self) -> &EnableInputBuilder
Access the Enable as a reference.
sourcepub async fn send(
self
) -> Result<EnableOutput, SdkError<EnableError, HttpResponse>>
pub async fn send( self ) -> Result<EnableOutput, SdkError<EnableError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(self) -> CustomizableOperation<EnableOutput, EnableError, Self>
pub fn customize(self) -> CustomizableOperation<EnableOutput, EnableError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn account_ids(self, input: impl Into<String>) -> Self
pub fn account_ids(self, input: impl Into<String>) -> Self
Appends an item to accountIds
.
To override the contents of this collection use set_account_ids
.
A list of account IDs you want to enable Amazon Inspector scans for.
sourcepub fn set_account_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_account_ids(self, input: Option<Vec<String>>) -> Self
A list of account IDs you want to enable Amazon Inspector scans for.
sourcepub fn get_account_ids(&self) -> &Option<Vec<String>>
pub fn get_account_ids(&self) -> &Option<Vec<String>>
A list of account IDs you want to enable Amazon Inspector scans for.
sourcepub fn resource_types(self, input: ResourceScanType) -> Self
pub fn resource_types(self, input: ResourceScanType) -> Self
Appends an item to resourceTypes
.
To override the contents of this collection use set_resource_types
.
The resource scan types you want to enable.
sourcepub fn set_resource_types(self, input: Option<Vec<ResourceScanType>>) -> Self
pub fn set_resource_types(self, input: Option<Vec<ResourceScanType>>) -> Self
The resource scan types you want to enable.
sourcepub fn get_resource_types(&self) -> &Option<Vec<ResourceScanType>>
pub fn get_resource_types(&self) -> &Option<Vec<ResourceScanType>>
The resource scan types you want to enable.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The idempotency token for the request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The idempotency token for the request.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
The idempotency token for the request.
Trait Implementations§
source§impl Clone for EnableFluentBuilder
impl Clone for EnableFluentBuilder
source§fn clone(&self) -> EnableFluentBuilder
fn clone(&self) -> EnableFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more