Struct aws_sdk_inspector2::operation::enable::builders::EnableInputBuilder
source · #[non_exhaustive]pub struct EnableInputBuilder { /* private fields */ }
Expand description
A builder for EnableInput
.
Implementations§
source§impl EnableInputBuilder
impl EnableInputBuilder
sourcepub fn account_ids(self, input: impl Into<String>) -> Self
pub fn account_ids(self, input: impl Into<String>) -> Self
Appends an item to account_ids
.
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 resource_types
.
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.
sourcepub fn build(self) -> Result<EnableInput, BuildError>
pub fn build(self) -> Result<EnableInput, BuildError>
Consumes the builder and constructs a EnableInput
.
source§impl EnableInputBuilder
impl EnableInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<EnableOutput, SdkError<EnableError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<EnableOutput, SdkError<EnableError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for EnableInputBuilder
impl Clone for EnableInputBuilder
source§fn clone(&self) -> EnableInputBuilder
fn clone(&self) -> EnableInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EnableInputBuilder
impl Debug for EnableInputBuilder
source§impl Default for EnableInputBuilder
impl Default for EnableInputBuilder
source§fn default() -> EnableInputBuilder
fn default() -> EnableInputBuilder
source§impl PartialEq<EnableInputBuilder> for EnableInputBuilder
impl PartialEq<EnableInputBuilder> for EnableInputBuilder
source§fn eq(&self, other: &EnableInputBuilder) -> bool
fn eq(&self, other: &EnableInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.