Struct aws_sdk_iot::operation::update_mitigation_action::builders::UpdateMitigationActionInputBuilder
source · #[non_exhaustive]pub struct UpdateMitigationActionInputBuilder { /* private fields */ }Expand description
A builder for UpdateMitigationActionInput.
Implementations§
source§impl UpdateMitigationActionInputBuilder
impl UpdateMitigationActionInputBuilder
sourcepub fn action_name(self, input: impl Into<String>) -> Self
pub fn action_name(self, input: impl Into<String>) -> Self
The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction. Instead, you must delete and recreate the mitigation action with the new name.
sourcepub fn set_action_name(self, input: Option<String>) -> Self
pub fn set_action_name(self, input: Option<String>) -> Self
The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction. Instead, you must delete and recreate the mitigation action with the new name.
sourcepub fn get_action_name(&self) -> &Option<String>
pub fn get_action_name(&self) -> &Option<String>
The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction. Instead, you must delete and recreate the mitigation action with the new name.
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.
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.
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.
sourcepub fn build(self) -> Result<UpdateMitigationActionInput, BuildError>
pub fn build(self) -> Result<UpdateMitigationActionInput, BuildError>
Consumes the builder and constructs a UpdateMitigationActionInput.
source§impl UpdateMitigationActionInputBuilder
impl UpdateMitigationActionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateMitigationActionOutput, SdkError<UpdateMitigationActionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateMitigationActionOutput, SdkError<UpdateMitigationActionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateMitigationActionInputBuilder
impl Clone for UpdateMitigationActionInputBuilder
source§fn clone(&self) -> UpdateMitigationActionInputBuilder
fn clone(&self) -> UpdateMitigationActionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateMitigationActionInputBuilder
impl Default for UpdateMitigationActionInputBuilder
source§fn default() -> UpdateMitigationActionInputBuilder
fn default() -> UpdateMitigationActionInputBuilder
source§impl PartialEq for UpdateMitigationActionInputBuilder
impl PartialEq for UpdateMitigationActionInputBuilder
source§fn eq(&self, other: &UpdateMitigationActionInputBuilder) -> bool
fn eq(&self, other: &UpdateMitigationActionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateMitigationActionInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateMitigationActionInputBuilder
impl RefUnwindSafe for UpdateMitigationActionInputBuilder
impl Send for UpdateMitigationActionInputBuilder
impl Sync for UpdateMitigationActionInputBuilder
impl Unpin for UpdateMitigationActionInputBuilder
impl UnwindSafe for UpdateMitigationActionInputBuilder
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