aws-sdk-pinpoint 1.76.0

AWS SDK for Amazon Pinpoint
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 ListJourneysOutput {
    /// <p>Provides information about the status, configuration, and other settings for all the journeys that are associated with an application.</p>
    pub journeys_response: ::std::option::Option<crate::types::JourneysResponse>,
    _request_id: Option<String>,
}
impl ListJourneysOutput {
    /// <p>Provides information about the status, configuration, and other settings for all the journeys that are associated with an application.</p>
    pub fn journeys_response(&self) -> ::std::option::Option<&crate::types::JourneysResponse> {
        self.journeys_response.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for ListJourneysOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl ListJourneysOutput {
    /// Creates a new builder-style object to manufacture [`ListJourneysOutput`](crate::operation::list_journeys::ListJourneysOutput).
    pub fn builder() -> crate::operation::list_journeys::builders::ListJourneysOutputBuilder {
        crate::operation::list_journeys::builders::ListJourneysOutputBuilder::default()
    }
}

/// A builder for [`ListJourneysOutput`](crate::operation::list_journeys::ListJourneysOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListJourneysOutputBuilder {
    pub(crate) journeys_response: ::std::option::Option<crate::types::JourneysResponse>,
    _request_id: Option<String>,
}
impl ListJourneysOutputBuilder {
    /// <p>Provides information about the status, configuration, and other settings for all the journeys that are associated with an application.</p>
    /// This field is required.
    pub fn journeys_response(mut self, input: crate::types::JourneysResponse) -> Self {
        self.journeys_response = ::std::option::Option::Some(input);
        self
    }
    /// <p>Provides information about the status, configuration, and other settings for all the journeys that are associated with an application.</p>
    pub fn set_journeys_response(mut self, input: ::std::option::Option<crate::types::JourneysResponse>) -> Self {
        self.journeys_response = input;
        self
    }
    /// <p>Provides information about the status, configuration, and other settings for all the journeys that are associated with an application.</p>
    pub fn get_journeys_response(&self) -> &::std::option::Option<crate::types::JourneysResponse> {
        &self.journeys_response
    }
    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 [`ListJourneysOutput`](crate::operation::list_journeys::ListJourneysOutput).
    pub fn build(self) -> crate::operation::list_journeys::ListJourneysOutput {
        crate::operation::list_journeys::ListJourneysOutput {
            journeys_response: self.journeys_response,
            _request_id: self._request_id,
        }
    }
}