pub use crate::operation::create_connect_attachment::_create_connect_attachment_output::CreateConnectAttachmentOutputBuilder;
pub use crate::operation::create_connect_attachment::_create_connect_attachment_input::CreateConnectAttachmentInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateConnectAttachmentFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner:
crate::operation::create_connect_attachment::builders::CreateConnectAttachmentInputBuilder,
}
impl CreateConnectAttachmentFluentBuilder {
pub(crate) fn new(handle: std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
pub async fn customize(
self,
) -> std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::create_connect_attachment::CreateConnectAttachment,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::create_connect_attachment::CreateConnectAttachmentError,
>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::client::customize::CustomizableOperation { handle, operation })
}
pub async fn send(
self,
) -> std::result::Result<
crate::operation::create_connect_attachment::CreateConnectAttachmentOutput,
aws_smithy_http::result::SdkError<
crate::operation::create_connect_attachment::CreateConnectAttachmentError,
>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
pub fn core_network_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.core_network_id(input.into());
self
}
pub fn set_core_network_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_core_network_id(input);
self
}
pub fn edge_location(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.edge_location(input.into());
self
}
pub fn set_edge_location(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_edge_location(input);
self
}
pub fn transport_attachment_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.transport_attachment_id(input.into());
self
}
pub fn set_transport_attachment_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_transport_attachment_id(input);
self
}
pub fn options(mut self, input: crate::types::ConnectAttachmentOptions) -> Self {
self.inner = self.inner.options(input);
self
}
pub fn set_options(
mut self,
input: std::option::Option<crate::types::ConnectAttachmentOptions>,
) -> Self {
self.inner = self.inner.set_options(input);
self
}
pub fn tags(mut self, input: crate::types::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::Tag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
pub fn client_token(mut self, input: impl 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
}
}