aws-sdk-redshiftserverless 1.106.0

AWS SDK for Redshift Serverless
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 CreateScheduledActionOutput {
    /// <p>The returned <code>ScheduledAction</code> object that describes the properties of a scheduled action.</p>
    pub scheduled_action: ::std::option::Option<crate::types::ScheduledActionResponse>,
    _request_id: Option<String>,
}
impl CreateScheduledActionOutput {
    /// <p>The returned <code>ScheduledAction</code> object that describes the properties of a scheduled action.</p>
    pub fn scheduled_action(&self) -> ::std::option::Option<&crate::types::ScheduledActionResponse> {
        self.scheduled_action.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for CreateScheduledActionOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateScheduledActionOutput {
    /// Creates a new builder-style object to manufacture [`CreateScheduledActionOutput`](crate::operation::create_scheduled_action::CreateScheduledActionOutput).
    pub fn builder() -> crate::operation::create_scheduled_action::builders::CreateScheduledActionOutputBuilder {
        crate::operation::create_scheduled_action::builders::CreateScheduledActionOutputBuilder::default()
    }
}

/// A builder for [`CreateScheduledActionOutput`](crate::operation::create_scheduled_action::CreateScheduledActionOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateScheduledActionOutputBuilder {
    pub(crate) scheduled_action: ::std::option::Option<crate::types::ScheduledActionResponse>,
    _request_id: Option<String>,
}
impl CreateScheduledActionOutputBuilder {
    /// <p>The returned <code>ScheduledAction</code> object that describes the properties of a scheduled action.</p>
    pub fn scheduled_action(mut self, input: crate::types::ScheduledActionResponse) -> Self {
        self.scheduled_action = ::std::option::Option::Some(input);
        self
    }
    /// <p>The returned <code>ScheduledAction</code> object that describes the properties of a scheduled action.</p>
    pub fn set_scheduled_action(mut self, input: ::std::option::Option<crate::types::ScheduledActionResponse>) -> Self {
        self.scheduled_action = input;
        self
    }
    /// <p>The returned <code>ScheduledAction</code> object that describes the properties of a scheduled action.</p>
    pub fn get_scheduled_action(&self) -> &::std::option::Option<crate::types::ScheduledActionResponse> {
        &self.scheduled_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 [`CreateScheduledActionOutput`](crate::operation::create_scheduled_action::CreateScheduledActionOutput).
    pub fn build(self) -> crate::operation::create_scheduled_action::CreateScheduledActionOutput {
        crate::operation::create_scheduled_action::CreateScheduledActionOutput {
            scheduled_action: self.scheduled_action,
            _request_id: self._request_id,
        }
    }
}