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 for EnableInputBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for EnableInputBuilder
Auto Trait Implementations§
impl Freeze for EnableInputBuilder
impl RefUnwindSafe for EnableInputBuilder
impl Send for EnableInputBuilder
impl Sync for EnableInputBuilder
impl Unpin for EnableInputBuilder
impl UnwindSafe for EnableInputBuilder
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> 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