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 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 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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<MitigationActionBuilder> for MitigationActionBuilder
impl PartialEq<MitigationActionBuilder> for MitigationActionBuilder
source§fn eq(&self, other: &MitigationActionBuilder) -> bool
fn eq(&self, other: &MitigationActionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MitigationActionBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more