pub use crate::operation::post_content::_post_content_input::PostContentInputBuilder;
pub use crate::operation::post_content::_post_content_output::PostContentOutputBuilder;
impl crate::operation::post_content::builders::PostContentInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::post_content::PostContentOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::post_content::PostContentError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.post_content();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::fmt::Debug)]
pub struct PostContentFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::post_content::builders::PostContentInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::post_content::PostContentOutput,
crate::operation::post_content::PostContentError,
> for PostContentFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::post_content::PostContentOutput,
crate::operation::post_content::PostContentError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl PostContentFluentBuilder {
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::post_content::builders::PostContentInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::post_content::PostContentOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::post_content::PostContentError,
::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::post_content::PostContent::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::post_content::PostContent::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::post_content::PostContentOutput,
crate::operation::post_content::PostContentError,
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 bot_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.bot_name(input.into());
self
}
pub fn set_bot_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_bot_name(input);
self
}
pub fn get_bot_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_bot_name()
}
pub fn bot_alias(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.bot_alias(input.into());
self
}
pub fn set_bot_alias(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_bot_alias(input);
self
}
pub fn get_bot_alias(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_bot_alias()
}
pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_user_id()
}
pub fn session_attributes(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.session_attributes(input.into());
self
}
pub fn set_session_attributes(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_session_attributes(input);
self
}
pub fn get_session_attributes(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_session_attributes()
}
pub fn request_attributes(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.request_attributes(input.into());
self
}
pub fn set_request_attributes(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_request_attributes(input);
self
}
pub fn get_request_attributes(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_request_attributes()
}
pub fn content_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.content_type(input.into());
self
}
pub fn set_content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_content_type(input);
self
}
pub fn get_content_type(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_content_type()
}
pub fn accept(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.accept(input.into());
self
}
pub fn set_accept(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_accept(input);
self
}
pub fn get_accept(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_accept()
}
pub fn input_stream(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
self.inner = self.inner.input_stream(input);
self
}
pub fn set_input_stream(mut self, input: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>) -> Self {
self.inner = self.inner.set_input_stream(input);
self
}
pub fn get_input_stream(&self) -> &::std::option::Option<::aws_smithy_types::byte_stream::ByteStream> {
self.inner.get_input_stream()
}
pub fn active_contexts(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.active_contexts(input.into());
self
}
pub fn set_active_contexts(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_active_contexts(input);
self
}
pub fn get_active_contexts(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_active_contexts()
}
}