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 UpdateActionTargetInput {
    /// <p>The ARN of the custom action target to update.</p>
    pub action_target_arn: ::std::option::Option<::std::string::String>,
    /// <p>The updated name of the custom action target.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The updated description for the custom action target.</p>
    pub description: ::std::option::Option<::std::string::String>,
}
impl UpdateActionTargetInput {
    /// <p>The ARN of the custom action target to update.</p>
    pub fn action_target_arn(&self) -> ::std::option::Option<&str> {
        self.action_target_arn.as_deref()
    }
    /// <p>The updated name of the custom action target.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The updated description for the custom action target.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
}
impl UpdateActionTargetInput {
    /// Creates a new builder-style object to manufacture [`UpdateActionTargetInput`](crate::operation::update_action_target::UpdateActionTargetInput).
    pub fn builder() -> crate::operation::update_action_target::builders::UpdateActionTargetInputBuilder {
        crate::operation::update_action_target::builders::UpdateActionTargetInputBuilder::default()
    }
}

/// A builder for [`UpdateActionTargetInput`](crate::operation::update_action_target::UpdateActionTargetInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateActionTargetInputBuilder {
    pub(crate) action_target_arn: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
}
impl UpdateActionTargetInputBuilder {
    /// <p>The ARN of the custom action target to update.</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 ARN of the custom action target to update.</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 ARN of the custom action target to update.</p>
    pub fn get_action_target_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.action_target_arn
    }
    /// <p>The updated name of the custom action target.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The updated name of the custom action target.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The updated name of the custom action target.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The updated description for the custom action target.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The updated description for the custom action target.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The updated description for the custom action target.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// Consumes the builder and constructs a [`UpdateActionTargetInput`](crate::operation::update_action_target::UpdateActionTargetInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_action_target::UpdateActionTargetInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_action_target::UpdateActionTargetInput {
            action_target_arn: self.action_target_arn,
            name: self.name,
            description: self.description,
        })
    }
}