Struct aws_sdk_iot::types::builders::MitigationActionBuilder
source · #[non_exhaustive]pub struct MitigationActionBuilder { /* private fields */ }
Expand description
A builder for MitigationAction
.
Implementations§
source§impl MitigationActionBuilder
impl MitigationActionBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A user-friendly name for the mitigation action.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A user-friendly name for the mitigation action.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
A unique identifier for the mitigation action.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
A unique identifier for the mitigation action.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The IAM role ARN used to apply this mitigation action.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The IAM role ARN used to apply this mitigation action.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The IAM role ARN used to apply this mitigation action.
sourcepub fn action_params(self, input: MitigationActionParams) -> Self
pub fn action_params(self, input: MitigationActionParams) -> Self
The set of parameters for this mitigation action. The parameters vary, depending on the kind of action you apply.
sourcepub fn set_action_params(self, input: Option<MitigationActionParams>) -> Self
pub fn set_action_params(self, input: Option<MitigationActionParams>) -> Self
The set of parameters for this mitigation action. The parameters vary, depending on the kind of action you apply.
sourcepub fn get_action_params(&self) -> &Option<MitigationActionParams>
pub fn get_action_params(&self) -> &Option<MitigationActionParams>
The set of parameters for this mitigation action. The parameters vary, depending on the kind of action you apply.
sourcepub fn build(self) -> MitigationAction
pub fn build(self) -> MitigationAction
Consumes the builder and constructs a MitigationAction
.
Trait Implementations§
source§impl Clone for MitigationActionBuilder
impl Clone for MitigationActionBuilder
source§fn clone(&self) -> MitigationActionBuilder
fn clone(&self) -> MitigationActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MitigationActionBuilder
impl Debug for MitigationActionBuilder
source§impl Default for MitigationActionBuilder
impl Default for MitigationActionBuilder
source§fn default() -> MitigationActionBuilder
fn default() -> MitigationActionBuilder
source§impl PartialEq for MitigationActionBuilder
impl PartialEq for MitigationActionBuilder
source§fn eq(&self, other: &MitigationActionBuilder) -> bool
fn eq(&self, other: &MitigationActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MitigationActionBuilder
Auto Trait Implementations§
impl Freeze for MitigationActionBuilder
impl RefUnwindSafe for MitigationActionBuilder
impl Send for MitigationActionBuilder
impl Sync for MitigationActionBuilder
impl Unpin for MitigationActionBuilder
impl UnwindSafe for MitigationActionBuilder
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