Struct aws_sdk_iot::operation::create_mitigation_action::builders::CreateMitigationActionInputBuilder
source · #[non_exhaustive]pub struct CreateMitigationActionInputBuilder { /* private fields */ }Expand description
A builder for CreateMitigationActionInput.
Implementations§
source§impl CreateMitigationActionInputBuilder
impl CreateMitigationActionInputBuilder
sourcepub fn action_name(self, input: impl Into<String>) -> Self
pub fn action_name(self, input: impl Into<String>) -> Self
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction).
sourcepub fn set_action_name(self, input: Option<String>) -> Self
pub fn set_action_name(self, input: Option<String>) -> Self
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction).
sourcepub fn get_action_name(&self) -> &Option<String>
pub fn get_action_name(&self) -> &Option<String>
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction).
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that is used to apply the mitigation action.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that is used to apply the mitigation action.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of the IAM role that is used to apply the mitigation action.
sourcepub fn action_params(self, input: MitigationActionParams) -> Self
pub fn action_params(self, input: MitigationActionParams) -> Self
Defines the type of action and the parameters for that action.
This field is required.sourcepub fn set_action_params(self, input: Option<MitigationActionParams>) -> Self
pub fn set_action_params(self, input: Option<MitigationActionParams>) -> Self
Defines the type of action and the parameters for that action.
sourcepub fn get_action_params(&self) -> &Option<MitigationActionParams>
pub fn get_action_params(&self) -> &Option<MitigationActionParams>
Defines the type of action and the parameters for that action.
Appends an item to tags.
To override the contents of this collection use set_tags.
Metadata that can be used to manage the mitigation action.
Metadata that can be used to manage the mitigation action.
Metadata that can be used to manage the mitigation action.
sourcepub fn build(self) -> Result<CreateMitigationActionInput, BuildError>
pub fn build(self) -> Result<CreateMitigationActionInput, BuildError>
Consumes the builder and constructs a CreateMitigationActionInput.
source§impl CreateMitigationActionInputBuilder
impl CreateMitigationActionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateMitigationActionOutput, SdkError<CreateMitigationActionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateMitigationActionOutput, SdkError<CreateMitigationActionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateMitigationActionInputBuilder
impl Clone for CreateMitigationActionInputBuilder
source§fn clone(&self) -> CreateMitigationActionInputBuilder
fn clone(&self) -> CreateMitigationActionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateMitigationActionInputBuilder
impl Default for CreateMitigationActionInputBuilder
source§fn default() -> CreateMitigationActionInputBuilder
fn default() -> CreateMitigationActionInputBuilder
source§impl PartialEq for CreateMitigationActionInputBuilder
impl PartialEq for CreateMitigationActionInputBuilder
source§fn eq(&self, other: &CreateMitigationActionInputBuilder) -> bool
fn eq(&self, other: &CreateMitigationActionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateMitigationActionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateMitigationActionInputBuilder
impl RefUnwindSafe for CreateMitigationActionInputBuilder
impl Send for CreateMitigationActionInputBuilder
impl Sync for CreateMitigationActionInputBuilder
impl Unpin for CreateMitigationActionInputBuilder
impl UnwindSafe for CreateMitigationActionInputBuilder
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