pub use crate::operation::batch_get_record::_batch_get_record_input::BatchGetRecordInputBuilder;
pub use crate::operation::batch_get_record::_batch_get_record_output::BatchGetRecordOutputBuilder;
impl crate::operation::batch_get_record::builders::BatchGetRecordInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::batch_get_record::BatchGetRecordOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_get_record::BatchGetRecordError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.batch_get_record();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct BatchGetRecordFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::batch_get_record::builders::BatchGetRecordInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::batch_get_record::BatchGetRecordOutput,
crate::operation::batch_get_record::BatchGetRecordError,
> for BatchGetRecordFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::batch_get_record::BatchGetRecordOutput,
crate::operation::batch_get_record::BatchGetRecordError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl BatchGetRecordFluentBuilder {
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::batch_get_record::builders::BatchGetRecordInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::batch_get_record::BatchGetRecordOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_get_record::BatchGetRecordError,
::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::batch_get_record::BatchGetRecord::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::batch_get_record::BatchGetRecord::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::batch_get_record::BatchGetRecordOutput,
crate::operation::batch_get_record::BatchGetRecordError,
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 identifiers(mut self, input: crate::types::BatchGetRecordIdentifier) -> Self {
self.inner = self.inner.identifiers(input);
self
}
pub fn set_identifiers(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::BatchGetRecordIdentifier>>) -> Self {
self.inner = self.inner.set_identifiers(input);
self
}
pub fn get_identifiers(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::BatchGetRecordIdentifier>> {
self.inner.get_identifiers()
}
pub fn expiration_time_response(mut self, input: crate::types::ExpirationTimeResponse) -> Self {
self.inner = self.inner.expiration_time_response(input);
self
}
pub fn set_expiration_time_response(mut self, input: ::std::option::Option<crate::types::ExpirationTimeResponse>) -> Self {
self.inner = self.inner.set_expiration_time_response(input);
self
}
pub fn get_expiration_time_response(&self) -> &::std::option::Option<crate::types::ExpirationTimeResponse> {
self.inner.get_expiration_time_response()
}
}