aws_sdk_datazone/operation/search/
builders.rspub use crate::operation::search::_search_output::SearchOutputBuilder;
pub use crate::operation::search::_search_input::SearchInputBuilder;
impl crate::operation::search::builders::SearchInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::search::SearchOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::search::SearchError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.search();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct SearchFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::search::builders::SearchInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl crate::client::customize::internal::CustomizableSend<crate::operation::search::SearchOutput, crate::operation::search::SearchError>
for SearchFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<crate::operation::search::SearchOutput, crate::operation::search::SearchError>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl SearchFluentBuilder {
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::builders::SearchInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::search::SearchOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::search::SearchError,
::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::Search::operation_runtime_plugins(self.handle.runtime_plugins.clone(), &self.handle.conf, self.config_override);
crate::operation::search::Search::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<crate::operation::search::SearchOutput, crate::operation::search::SearchError, 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 into_paginator(self) -> crate::operation::search::paginator::SearchPaginator {
crate::operation::search::paginator::SearchPaginator::new(self.handle, self.inner)
}
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 owning_project_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.owning_project_identifier(input.into());
self
}
pub fn set_owning_project_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_owning_project_identifier(input);
self
}
pub fn get_owning_project_identifier(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_owning_project_identifier()
}
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
pub fn get_max_results(&self) -> &::std::option::Option<i32> {
self.inner.get_max_results()
}
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_next_token()
}
pub fn search_scope(mut self, input: crate::types::InventorySearchScope) -> Self {
self.inner = self.inner.search_scope(input);
self
}
pub fn set_search_scope(mut self, input: ::std::option::Option<crate::types::InventorySearchScope>) -> Self {
self.inner = self.inner.set_search_scope(input);
self
}
pub fn get_search_scope(&self) -> &::std::option::Option<crate::types::InventorySearchScope> {
self.inner.get_search_scope()
}
pub fn search_text(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.search_text(input.into());
self
}
pub fn set_search_text(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_search_text(input);
self
}
pub fn get_search_text(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_search_text()
}
pub fn search_in(mut self, input: crate::types::SearchInItem) -> Self {
self.inner = self.inner.search_in(input);
self
}
pub fn set_search_in(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SearchInItem>>) -> Self {
self.inner = self.inner.set_search_in(input);
self
}
pub fn get_search_in(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SearchInItem>> {
self.inner.get_search_in()
}
pub fn filters(mut self, input: crate::types::FilterClause) -> Self {
self.inner = self.inner.filters(input);
self
}
pub fn set_filters(mut self, input: ::std::option::Option<crate::types::FilterClause>) -> Self {
self.inner = self.inner.set_filters(input);
self
}
pub fn get_filters(&self) -> &::std::option::Option<crate::types::FilterClause> {
self.inner.get_filters()
}
pub fn sort(mut self, input: crate::types::SearchSort) -> Self {
self.inner = self.inner.sort(input);
self
}
pub fn set_sort(mut self, input: ::std::option::Option<crate::types::SearchSort>) -> Self {
self.inner = self.inner.set_sort(input);
self
}
pub fn get_sort(&self) -> &::std::option::Option<crate::types::SearchSort> {
self.inner.get_sort()
}
pub fn additional_attributes(mut self, input: crate::types::SearchOutputAdditionalAttribute) -> Self {
self.inner = self.inner.additional_attributes(input);
self
}
pub fn set_additional_attributes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SearchOutputAdditionalAttribute>>) -> Self {
self.inner = self.inner.set_additional_attributes(input);
self
}
pub fn get_additional_attributes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SearchOutputAdditionalAttribute>> {
self.inner.get_additional_attributes()
}
}