pub use crate::operation::send_notify_text_message::_send_notify_text_message_input::SendNotifyTextMessageInputBuilder;
pub use crate::operation::send_notify_text_message::_send_notify_text_message_output::SendNotifyTextMessageOutputBuilder;
impl crate::operation::send_notify_text_message::builders::SendNotifyTextMessageInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::send_notify_text_message::SendNotifyTextMessageOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::send_notify_text_message::SendNotifyTextMessageError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.send_notify_text_message();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct SendNotifyTextMessageFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::send_notify_text_message::builders::SendNotifyTextMessageInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::send_notify_text_message::SendNotifyTextMessageOutput,
crate::operation::send_notify_text_message::SendNotifyTextMessageError,
> for SendNotifyTextMessageFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::send_notify_text_message::SendNotifyTextMessageOutput,
crate::operation::send_notify_text_message::SendNotifyTextMessageError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl SendNotifyTextMessageFluentBuilder {
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::send_notify_text_message::builders::SendNotifyTextMessageInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::send_notify_text_message::SendNotifyTextMessageOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::send_notify_text_message::SendNotifyTextMessageError,
::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::send_notify_text_message::SendNotifyTextMessage::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::send_notify_text_message::SendNotifyTextMessage::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::send_notify_text_message::SendNotifyTextMessageOutput,
crate::operation::send_notify_text_message::SendNotifyTextMessageError,
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 notify_configuration_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.notify_configuration_id(input.into());
self
}
pub fn set_notify_configuration_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_notify_configuration_id(input);
self
}
pub fn get_notify_configuration_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_notify_configuration_id()
}
pub fn destination_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.destination_phone_number(input.into());
self
}
pub fn set_destination_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_destination_phone_number(input);
self
}
pub fn get_destination_phone_number(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_destination_phone_number()
}
pub fn template_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.template_id(input.into());
self
}
pub fn set_template_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_template_id(input);
self
}
pub fn get_template_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_template_id()
}
pub fn template_variables(
mut self,
k: impl ::std::convert::Into<::std::string::String>,
v: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.template_variables(k.into(), v.into());
self
}
pub fn set_template_variables(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
) -> Self {
self.inner = self.inner.set_template_variables(input);
self
}
pub fn get_template_variables(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.inner.get_template_variables()
}
pub fn time_to_live(mut self, input: i32) -> Self {
self.inner = self.inner.time_to_live(input);
self
}
pub fn set_time_to_live(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_time_to_live(input);
self
}
pub fn get_time_to_live(&self) -> &::std::option::Option<i32> {
self.inner.get_time_to_live()
}
pub fn context(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.context(k.into(), v.into());
self
}
pub fn set_context(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.inner = self.inner.set_context(input);
self
}
pub fn get_context(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.inner.get_context()
}
pub fn configuration_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
pub fn set_configuration_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
pub fn get_configuration_set_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_configuration_set_name()
}
pub fn dry_run(mut self, input: bool) -> Self {
self.inner = self.inner.dry_run(input);
self
}
pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_dry_run(input);
self
}
pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
self.inner.get_dry_run()
}
pub fn message_feedback_enabled(mut self, input: bool) -> Self {
self.inner = self.inner.message_feedback_enabled(input);
self
}
pub fn set_message_feedback_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_message_feedback_enabled(input);
self
}
pub fn get_message_feedback_enabled(&self) -> &::std::option::Option<bool> {
self.inner.get_message_feedback_enabled()
}
}