pub use crate::operation::start_reference_import_job::_start_reference_import_job_output::StartReferenceImportJobOutputBuilder;
pub use crate::operation::start_reference_import_job::_start_reference_import_job_input::StartReferenceImportJobInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct StartReferenceImportJobFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner:
crate::operation::start_reference_import_job::builders::StartReferenceImportJobInputBuilder,
}
impl StartReferenceImportJobFluentBuilder {
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::start_reference_import_job::StartReferenceImportJob,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::start_reference_import_job::StartReferenceImportJobError,
>,
> {
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::start_reference_import_job::StartReferenceImportJobOutput,
aws_smithy_http::result::SdkError<
crate::operation::start_reference_import_job::StartReferenceImportJobError,
>,
> {
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 reference_store_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.reference_store_id(input.into());
self
}
pub fn set_reference_store_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_reference_store_id(input);
self
}
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.role_arn(input.into());
self
}
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_role_arn(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
}
pub fn sources(mut self, input: crate::types::StartReferenceImportJobSourceItem) -> Self {
self.inner = self.inner.sources(input);
self
}
pub fn set_sources(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::StartReferenceImportJobSourceItem>>,
) -> Self {
self.inner = self.inner.set_sources(input);
self
}
}