aws-sdk-pinpoint 1.37.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 GetCampaignVersionOutput {
    /// <p>Provides information about the status, configuration, and other settings for a campaign.</p>
    pub campaign_response: ::std::option::Option<crate::types::CampaignResponse>,
    _request_id: Option<String>,
}
impl GetCampaignVersionOutput {
    /// <p>Provides information about the status, configuration, and other settings for a campaign.</p>
    pub fn campaign_response(&self) -> ::std::option::Option<&crate::types::CampaignResponse> {
        self.campaign_response.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetCampaignVersionOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetCampaignVersionOutput {
    /// Creates a new builder-style object to manufacture [`GetCampaignVersionOutput`](crate::operation::get_campaign_version::GetCampaignVersionOutput).
    pub fn builder() -> crate::operation::get_campaign_version::builders::GetCampaignVersionOutputBuilder {
        crate::operation::get_campaign_version::builders::GetCampaignVersionOutputBuilder::default()
    }
}

/// A builder for [`GetCampaignVersionOutput`](crate::operation::get_campaign_version::GetCampaignVersionOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetCampaignVersionOutputBuilder {
    pub(crate) campaign_response: ::std::option::Option<crate::types::CampaignResponse>,
    _request_id: Option<String>,
}
impl GetCampaignVersionOutputBuilder {
    /// <p>Provides information about the status, configuration, and other settings for a campaign.</p>
    /// This field is required.
    pub fn campaign_response(mut self, input: crate::types::CampaignResponse) -> Self {
        self.campaign_response = ::std::option::Option::Some(input);
        self
    }
    /// <p>Provides information about the status, configuration, and other settings for a campaign.</p>
    pub fn set_campaign_response(mut self, input: ::std::option::Option<crate::types::CampaignResponse>) -> Self {
        self.campaign_response = input;
        self
    }
    /// <p>Provides information about the status, configuration, and other settings for a campaign.</p>
    pub fn get_campaign_response(&self) -> &::std::option::Option<crate::types::CampaignResponse> {
        &self.campaign_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 [`GetCampaignVersionOutput`](crate::operation::get_campaign_version::GetCampaignVersionOutput).
    pub fn build(self) -> crate::operation::get_campaign_version::GetCampaignVersionOutput {
        crate::operation::get_campaign_version::GetCampaignVersionOutput {
            campaign_response: self.campaign_response,
            _request_id: self._request_id,
        }
    }
}