aws_sdk_datazone/operation/accept_predictions/
builders.rspub use crate::operation::accept_predictions::_accept_predictions_output::AcceptPredictionsOutputBuilder;
pub use crate::operation::accept_predictions::_accept_predictions_input::AcceptPredictionsInputBuilder;
impl crate::operation::accept_predictions::builders::AcceptPredictionsInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::accept_predictions::AcceptPredictionsOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::accept_predictions::AcceptPredictionsError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.accept_predictions();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct AcceptPredictionsFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::accept_predictions::builders::AcceptPredictionsInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::accept_predictions::AcceptPredictionsOutput,
crate::operation::accept_predictions::AcceptPredictionsError,
> for AcceptPredictionsFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::accept_predictions::AcceptPredictionsOutput,
crate::operation::accept_predictions::AcceptPredictionsError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl AcceptPredictionsFluentBuilder {
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::accept_predictions::builders::AcceptPredictionsInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::accept_predictions::AcceptPredictionsOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::accept_predictions::AcceptPredictionsError,
::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::accept_predictions::AcceptPredictions::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::accept_predictions::AcceptPredictions::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::accept_predictions::AcceptPredictionsOutput,
crate::operation::accept_predictions::AcceptPredictionsError,
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 domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.domain_identifier(input.into());
self
}
pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_domain_identifier(input);
self
}
pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_domain_identifier()
}
pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.identifier(input.into());
self
}
pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_identifier(input);
self
}
pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_identifier()
}
pub fn revision(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.revision(input.into());
self
}
pub fn set_revision(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_revision(input);
self
}
pub fn get_revision(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_revision()
}
pub fn accept_rule(mut self, input: crate::types::AcceptRule) -> Self {
self.inner = self.inner.accept_rule(input);
self
}
pub fn set_accept_rule(mut self, input: ::std::option::Option<crate::types::AcceptRule>) -> Self {
self.inner = self.inner.set_accept_rule(input);
self
}
pub fn get_accept_rule(&self) -> &::std::option::Option<crate::types::AcceptRule> {
self.inner.get_accept_rule()
}
pub fn accept_choices(mut self, input: crate::types::AcceptChoice) -> Self {
self.inner = self.inner.accept_choices(input);
self
}
pub fn set_accept_choices(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AcceptChoice>>) -> Self {
self.inner = self.inner.set_accept_choices(input);
self
}
pub fn get_accept_choices(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AcceptChoice>> {
self.inner.get_accept_choices()
}
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()
}
}