aws_sdk_connectcampaignsv2/operation/create_campaign/
builders.rspub use crate::operation::create_campaign::_create_campaign_output::CreateCampaignOutputBuilder;
pub use crate::operation::create_campaign::_create_campaign_input::CreateCampaignInputBuilder;
impl crate::operation::create_campaign::builders::CreateCampaignInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_campaign::CreateCampaignOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_campaign::CreateCampaignError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_campaign();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateCampaignFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_campaign::builders::CreateCampaignInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::create_campaign::CreateCampaignOutput,
crate::operation::create_campaign::CreateCampaignError,
> for CreateCampaignFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::create_campaign::CreateCampaignOutput,
crate::operation::create_campaign::CreateCampaignError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateCampaignFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::create_campaign::builders::CreateCampaignInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_campaign::CreateCampaignOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_campaign::CreateCampaignError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::create_campaign::CreateCampaign::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_campaign::CreateCampaign::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_campaign::CreateCampaignOutput,
crate::operation::create_campaign::CreateCampaignError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_name()
}
pub fn connect_instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.connect_instance_id(input.into());
self
}
pub fn set_connect_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_connect_instance_id(input);
self
}
pub fn get_connect_instance_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_connect_instance_id()
}
pub fn channel_subtype_config(mut self, input: crate::types::ChannelSubtypeConfig) -> Self {
self.inner = self.inner.channel_subtype_config(input);
self
}
pub fn set_channel_subtype_config(mut self, input: ::std::option::Option<crate::types::ChannelSubtypeConfig>) -> Self {
self.inner = self.inner.set_channel_subtype_config(input);
self
}
pub fn get_channel_subtype_config(&self) -> &::std::option::Option<crate::types::ChannelSubtypeConfig> {
self.inner.get_channel_subtype_config()
}
pub fn source(mut self, input: crate::types::Source) -> Self {
self.inner = self.inner.source(input);
self
}
pub fn set_source(mut self, input: ::std::option::Option<crate::types::Source>) -> Self {
self.inner = self.inner.set_source(input);
self
}
pub fn get_source(&self) -> &::std::option::Option<crate::types::Source> {
self.inner.get_source()
}
pub fn connect_campaign_flow_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.connect_campaign_flow_arn(input.into());
self
}
pub fn set_connect_campaign_flow_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_connect_campaign_flow_arn(input);
self
}
pub fn get_connect_campaign_flow_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_connect_campaign_flow_arn()
}
pub fn schedule(mut self, input: crate::types::Schedule) -> Self {
self.inner = self.inner.schedule(input);
self
}
pub fn set_schedule(mut self, input: ::std::option::Option<crate::types::Schedule>) -> Self {
self.inner = self.inner.set_schedule(input);
self
}
pub fn get_schedule(&self) -> &::std::option::Option<crate::types::Schedule> {
self.inner.get_schedule()
}
pub fn communication_time_config(mut self, input: crate::types::CommunicationTimeConfig) -> Self {
self.inner = self.inner.communication_time_config(input);
self
}
pub fn set_communication_time_config(mut self, input: ::std::option::Option<crate::types::CommunicationTimeConfig>) -> Self {
self.inner = self.inner.set_communication_time_config(input);
self
}
pub fn get_communication_time_config(&self) -> &::std::option::Option<crate::types::CommunicationTimeConfig> {
self.inner.get_communication_time_config()
}
pub fn communication_limits_override(mut self, input: crate::types::CommunicationLimitsConfig) -> Self {
self.inner = self.inner.communication_limits_override(input);
self
}
pub fn set_communication_limits_override(mut self, input: ::std::option::Option<crate::types::CommunicationLimitsConfig>) -> Self {
self.inner = self.inner.set_communication_limits_override(input);
self
}
pub fn get_communication_limits_override(&self) -> &::std::option::Option<crate::types::CommunicationLimitsConfig> {
self.inner.get_communication_limits_override()
}
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.tags(k.into(), v.into());
self
}
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.inner = self.inner.set_tags(input);
self
}
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.inner.get_tags()
}
}