Struct aws_sdk_iot::operation::create_audit_suppression::builders::CreateAuditSuppressionInputBuilder
source · #[non_exhaustive]pub struct CreateAuditSuppressionInputBuilder { /* private fields */ }
Expand description
A builder for CreateAuditSuppressionInput
.
Implementations§
source§impl CreateAuditSuppressionInputBuilder
impl CreateAuditSuppressionInputBuilder
sourcepub fn check_name(self, input: impl Into<String>) -> Self
pub fn check_name(self, input: impl Into<String>) -> Self
An audit check name. Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration
to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration
to select which checks are enabled.)
sourcepub fn set_check_name(self, input: Option<String>) -> Self
pub fn set_check_name(self, input: Option<String>) -> Self
An audit check name. Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration
to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration
to select which checks are enabled.)
sourcepub fn get_check_name(&self) -> &Option<String>
pub fn get_check_name(&self) -> &Option<String>
An audit check name. Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration
to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration
to select which checks are enabled.)
sourcepub fn resource_identifier(self, input: ResourceIdentifier) -> Self
pub fn resource_identifier(self, input: ResourceIdentifier) -> Self
Information that identifies the noncompliant resource.
This field is required.sourcepub fn set_resource_identifier(self, input: Option<ResourceIdentifier>) -> Self
pub fn set_resource_identifier(self, input: Option<ResourceIdentifier>) -> Self
Information that identifies the noncompliant resource.
sourcepub fn get_resource_identifier(&self) -> &Option<ResourceIdentifier>
pub fn get_resource_identifier(&self) -> &Option<ResourceIdentifier>
Information that identifies the noncompliant resource.
sourcepub fn expiration_date(self, input: DateTime) -> Self
pub fn expiration_date(self, input: DateTime) -> Self
The epoch timestamp in seconds at which this suppression expires.
sourcepub fn set_expiration_date(self, input: Option<DateTime>) -> Self
pub fn set_expiration_date(self, input: Option<DateTime>) -> Self
The epoch timestamp in seconds at which this suppression expires.
sourcepub fn get_expiration_date(&self) -> &Option<DateTime>
pub fn get_expiration_date(&self) -> &Option<DateTime>
The epoch timestamp in seconds at which this suppression expires.
sourcepub fn suppress_indefinitely(self, input: bool) -> Self
pub fn suppress_indefinitely(self, input: bool) -> Self
Indicates whether a suppression should exist indefinitely or not.
sourcepub fn set_suppress_indefinitely(self, input: Option<bool>) -> Self
pub fn set_suppress_indefinitely(self, input: Option<bool>) -> Self
Indicates whether a suppression should exist indefinitely or not.
sourcepub fn get_suppress_indefinitely(&self) -> &Option<bool>
pub fn get_suppress_indefinitely(&self) -> &Option<bool>
Indicates whether a suppression should exist indefinitely or not.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the audit suppression.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the audit suppression.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the audit suppression.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
Each audit supression must have a unique client request token. If you try to create a new audit suppression with the same token as one that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
This field is required.sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
Each audit supression must have a unique client request token. If you try to create a new audit suppression with the same token as one that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
Each audit supression must have a unique client request token. If you try to create a new audit suppression with the same token as one that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
sourcepub fn build(self) -> Result<CreateAuditSuppressionInput, BuildError>
pub fn build(self) -> Result<CreateAuditSuppressionInput, BuildError>
Consumes the builder and constructs a CreateAuditSuppressionInput
.
source§impl CreateAuditSuppressionInputBuilder
impl CreateAuditSuppressionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateAuditSuppressionOutput, SdkError<CreateAuditSuppressionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateAuditSuppressionOutput, SdkError<CreateAuditSuppressionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateAuditSuppressionInputBuilder
impl Clone for CreateAuditSuppressionInputBuilder
source§fn clone(&self) -> CreateAuditSuppressionInputBuilder
fn clone(&self) -> CreateAuditSuppressionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateAuditSuppressionInputBuilder
impl Default for CreateAuditSuppressionInputBuilder
source§fn default() -> CreateAuditSuppressionInputBuilder
fn default() -> CreateAuditSuppressionInputBuilder
source§impl PartialEq for CreateAuditSuppressionInputBuilder
impl PartialEq for CreateAuditSuppressionInputBuilder
source§fn eq(&self, other: &CreateAuditSuppressionInputBuilder) -> bool
fn eq(&self, other: &CreateAuditSuppressionInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateAuditSuppressionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateAuditSuppressionInputBuilder
impl RefUnwindSafe for CreateAuditSuppressionInputBuilder
impl Send for CreateAuditSuppressionInputBuilder
impl Sync for CreateAuditSuppressionInputBuilder
impl Unpin for CreateAuditSuppressionInputBuilder
impl UnwindSafe for CreateAuditSuppressionInputBuilder
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