aws-sdk-chatbot 1.90.0

AWS SDK for AWS Chatbot
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 GetCustomActionOutput {
    /// <p>Returns the custom action.</p>
    pub custom_action: ::std::option::Option<crate::types::CustomAction>,
    _request_id: Option<String>,
}
impl GetCustomActionOutput {
    /// <p>Returns the custom action.</p>
    pub fn custom_action(&self) -> ::std::option::Option<&crate::types::CustomAction> {
        self.custom_action.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetCustomActionOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetCustomActionOutput {
    /// Creates a new builder-style object to manufacture [`GetCustomActionOutput`](crate::operation::get_custom_action::GetCustomActionOutput).
    pub fn builder() -> crate::operation::get_custom_action::builders::GetCustomActionOutputBuilder {
        crate::operation::get_custom_action::builders::GetCustomActionOutputBuilder::default()
    }
}

/// A builder for [`GetCustomActionOutput`](crate::operation::get_custom_action::GetCustomActionOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetCustomActionOutputBuilder {
    pub(crate) custom_action: ::std::option::Option<crate::types::CustomAction>,
    _request_id: Option<String>,
}
impl GetCustomActionOutputBuilder {
    /// <p>Returns the custom action.</p>
    pub fn custom_action(mut self, input: crate::types::CustomAction) -> Self {
        self.custom_action = ::std::option::Option::Some(input);
        self
    }
    /// <p>Returns the custom action.</p>
    pub fn set_custom_action(mut self, input: ::std::option::Option<crate::types::CustomAction>) -> Self {
        self.custom_action = input;
        self
    }
    /// <p>Returns the custom action.</p>
    pub fn get_custom_action(&self) -> &::std::option::Option<crate::types::CustomAction> {
        &self.custom_action
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetCustomActionOutput`](crate::operation::get_custom_action::GetCustomActionOutput).
    pub fn build(self) -> crate::operation::get_custom_action::GetCustomActionOutput {
        crate::operation::get_custom_action::GetCustomActionOutput {
            custom_action: self.custom_action,
            _request_id: self._request_id,
        }
    }
}