aws-sdk-securityhub 1.110.0

AWS SDK for AWS SecurityHub
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteActionTargetInput {
    /// <p>The Amazon Resource Name (ARN) of the custom action target to delete.</p>
    pub action_target_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteActionTargetInput {
    /// <p>The Amazon Resource Name (ARN) of the custom action target to delete.</p>
    pub fn action_target_arn(&self) -> ::std::option::Option<&str> {
        self.action_target_arn.as_deref()
    }
}
impl DeleteActionTargetInput {
    /// Creates a new builder-style object to manufacture [`DeleteActionTargetInput`](crate::operation::delete_action_target::DeleteActionTargetInput).
    pub fn builder() -> crate::operation::delete_action_target::builders::DeleteActionTargetInputBuilder {
        crate::operation::delete_action_target::builders::DeleteActionTargetInputBuilder::default()
    }
}

/// A builder for [`DeleteActionTargetInput`](crate::operation::delete_action_target::DeleteActionTargetInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteActionTargetInputBuilder {
    pub(crate) action_target_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteActionTargetInputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the custom action target to delete.</p>
    /// This field is required.
    pub fn action_target_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.action_target_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the custom action target to delete.</p>
    pub fn set_action_target_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.action_target_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the custom action target to delete.</p>
    pub fn get_action_target_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.action_target_arn
    }
    /// Consumes the builder and constructs a [`DeleteActionTargetInput`](crate::operation::delete_action_target::DeleteActionTargetInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_action_target::DeleteActionTargetInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::delete_action_target::DeleteActionTargetInput {
            action_target_arn: self.action_target_arn,
        })
    }
}