aws_sdk_connectcampaignsv2/client/create_campaign.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateCampaign`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::set_name):<br>required: **true**<br>The name of an Amazon Connect Campaign name.<br>
/// - [`connect_instance_id(impl Into<String>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::connect_instance_id) / [`set_connect_instance_id(Option<String>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::set_connect_instance_id):<br>required: **true**<br>Amazon Connect Instance Id<br>
/// - [`channel_subtype_config(ChannelSubtypeConfig)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::channel_subtype_config) / [`set_channel_subtype_config(Option<ChannelSubtypeConfig>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::set_channel_subtype_config):<br>required: **true**<br>Campaign Channel Subtype config<br>
/// - [`source(Source)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::source) / [`set_source(Option<Source>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::set_source):<br>required: **false**<br>Source of the campaign<br>
/// - [`connect_campaign_flow_arn(impl Into<String>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::connect_campaign_flow_arn) / [`set_connect_campaign_flow_arn(Option<String>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::set_connect_campaign_flow_arn):<br>required: **false**<br>Amazon Resource Names(ARN)<br>
/// - [`schedule(Schedule)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::schedule) / [`set_schedule(Option<Schedule>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::set_schedule):<br>required: **false**<br>Campaign schedule<br>
/// - [`communication_time_config(CommunicationTimeConfig)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::communication_time_config) / [`set_communication_time_config(Option<CommunicationTimeConfig>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::set_communication_time_config):<br>required: **false**<br>Campaign communication time config<br>
/// - [`communication_limits_override(CommunicationLimitsConfig)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::communication_limits_override) / [`set_communication_limits_override(Option<CommunicationLimitsConfig>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::set_communication_limits_override):<br>required: **false**<br>Communication limits config<br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::set_tags):<br>required: **false**<br>Tag map with key and value.<br>
/// - On success, responds with [`CreateCampaignOutput`](crate::operation::create_campaign::CreateCampaignOutput) with field(s):
/// - [`id(Option<String>)`](crate::operation::create_campaign::CreateCampaignOutput::id): Identifier representing a Campaign
/// - [`arn(Option<String>)`](crate::operation::create_campaign::CreateCampaignOutput::arn): The resource name of an Amazon Connect campaign.
/// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_campaign::CreateCampaignOutput::tags): Tag map with key and value.
/// - On failure, responds with [`SdkError<CreateCampaignError>`](crate::operation::create_campaign::CreateCampaignError)
pub fn create_campaign(&self) -> crate::operation::create_campaign::builders::CreateCampaignFluentBuilder {
crate::operation::create_campaign::builders::CreateCampaignFluentBuilder::new(self.handle.clone())
}
}