aws_sdk_pinpoint/client/
get_campaign.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetCampaign`](crate::operation::get_campaign::builders::GetCampaignFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`application_id(impl Into<String>)`](crate::operation::get_campaign::builders::GetCampaignFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::get_campaign::builders::GetCampaignFluentBuilder::set_application_id):<br>required: **true**<br><p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p><br>
7    ///   - [`campaign_id(impl Into<String>)`](crate::operation::get_campaign::builders::GetCampaignFluentBuilder::campaign_id) / [`set_campaign_id(Option<String>)`](crate::operation::get_campaign::builders::GetCampaignFluentBuilder::set_campaign_id):<br>required: **true**<br><p>The unique identifier for the campaign.</p><br>
8    /// - On success, responds with [`GetCampaignOutput`](crate::operation::get_campaign::GetCampaignOutput) with field(s):
9    ///   - [`campaign_response(Option<CampaignResponse>)`](crate::operation::get_campaign::GetCampaignOutput::campaign_response): <p>Provides information about the status, configuration, and other settings for a campaign.</p>
10    /// - On failure, responds with [`SdkError<GetCampaignError>`](crate::operation::get_campaign::GetCampaignError)
11    pub fn get_campaign(&self) -> crate::operation::get_campaign::builders::GetCampaignFluentBuilder {
12        crate::operation::get_campaign::builders::GetCampaignFluentBuilder::new(self.handle.clone())
13    }
14}