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 ==
.