aws_sdk_deadline/operation/search_tasks/
builders.rspub use crate::operation::search_tasks::_search_tasks_output::SearchTasksOutputBuilder;
pub use crate::operation::search_tasks::_search_tasks_input::SearchTasksInputBuilder;
impl crate::operation::search_tasks::builders::SearchTasksInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::search_tasks::SearchTasksOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::search_tasks::SearchTasksError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.search_tasks();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct SearchTasksFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::search_tasks::builders::SearchTasksInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::search_tasks::SearchTasksOutput,
crate::operation::search_tasks::SearchTasksError,
> for SearchTasksFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::search_tasks::SearchTasksOutput,
crate::operation::search_tasks::SearchTasksError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl SearchTasksFluentBuilder {
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::search_tasks::builders::SearchTasksInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::search_tasks::SearchTasksOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::search_tasks::SearchTasksError,
::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::search_tasks::SearchTasks::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::search_tasks::SearchTasks::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::search_tasks::SearchTasksOutput,
crate::operation::search_tasks::SearchTasksError,
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 farm_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.farm_id(input.into());
self
}
pub fn set_farm_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_farm_id(input);
self
}
pub fn get_farm_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_farm_id()
}
pub fn queue_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.queue_ids(input.into());
self
}
pub fn set_queue_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_queue_ids(input);
self
}
pub fn get_queue_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_queue_ids()
}
pub fn job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.job_id(input.into());
self
}
pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_job_id(input);
self
}
pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_job_id()
}
pub fn filter_expressions(mut self, input: crate::types::SearchGroupedFilterExpressions) -> Self {
self.inner = self.inner.filter_expressions(input);
self
}
pub fn set_filter_expressions(mut self, input: ::std::option::Option<crate::types::SearchGroupedFilterExpressions>) -> Self {
self.inner = self.inner.set_filter_expressions(input);
self
}
pub fn get_filter_expressions(&self) -> &::std::option::Option<crate::types::SearchGroupedFilterExpressions> {
self.inner.get_filter_expressions()
}
pub fn sort_expressions(mut self, input: crate::types::SearchSortExpression) -> Self {
self.inner = self.inner.sort_expressions(input);
self
}
pub fn set_sort_expressions(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SearchSortExpression>>) -> Self {
self.inner = self.inner.set_sort_expressions(input);
self
}
pub fn get_sort_expressions(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SearchSortExpression>> {
self.inner.get_sort_expressions()
}
pub fn item_offset(mut self, input: i32) -> Self {
self.inner = self.inner.item_offset(input);
self
}
pub fn set_item_offset(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_item_offset(input);
self
}
pub fn get_item_offset(&self) -> &::std::option::Option<i32> {
self.inner.get_item_offset()
}
pub fn page_size(mut self, input: i32) -> Self {
self.inner = self.inner.page_size(input);
self
}
pub fn set_page_size(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_page_size(input);
self
}
pub fn get_page_size(&self) -> &::std::option::Option<i32> {
self.inner.get_page_size()
}
}