aws_sdk_connectparticipant/operation/start_attachment_upload/
builders.rspub use crate::operation::start_attachment_upload::_start_attachment_upload_output::StartAttachmentUploadOutputBuilder;
pub use crate::operation::start_attachment_upload::_start_attachment_upload_input::StartAttachmentUploadInputBuilder;
impl crate::operation::start_attachment_upload::builders::StartAttachmentUploadInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::start_attachment_upload::StartAttachmentUploadOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::start_attachment_upload::StartAttachmentUploadError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.start_attachment_upload();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct StartAttachmentUploadFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::start_attachment_upload::builders::StartAttachmentUploadInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::start_attachment_upload::StartAttachmentUploadOutput,
crate::operation::start_attachment_upload::StartAttachmentUploadError,
> for StartAttachmentUploadFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::start_attachment_upload::StartAttachmentUploadOutput,
crate::operation::start_attachment_upload::StartAttachmentUploadError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl StartAttachmentUploadFluentBuilder {
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::start_attachment_upload::builders::StartAttachmentUploadInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::start_attachment_upload::StartAttachmentUploadOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::start_attachment_upload::StartAttachmentUploadError,
::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::start_attachment_upload::StartAttachmentUpload::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::start_attachment_upload::StartAttachmentUpload::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::start_attachment_upload::StartAttachmentUploadOutput,
crate::operation::start_attachment_upload::StartAttachmentUploadError,
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 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 attachment_size_in_bytes(mut self, input: i64) -> Self {
self.inner = self.inner.attachment_size_in_bytes(input);
self
}
pub fn set_attachment_size_in_bytes(mut self, input: ::std::option::Option<i64>) -> Self {
self.inner = self.inner.set_attachment_size_in_bytes(input);
self
}
pub fn get_attachment_size_in_bytes(&self) -> &::std::option::Option<i64> {
self.inner.get_attachment_size_in_bytes()
}
pub fn attachment_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.attachment_name(input.into());
self
}
pub fn set_attachment_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_attachment_name(input);
self
}
pub fn get_attachment_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_attachment_name()
}
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_client_token()
}
pub fn connection_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.connection_token(input.into());
self
}
pub fn set_connection_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_connection_token(input);
self
}
pub fn get_connection_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_connection_token()
}
}