aws_sdk_workdocs/operation/search_resources/
builders.rspub use crate::operation::search_resources::_search_resources_output::SearchResourcesOutputBuilder;
pub use crate::operation::search_resources::_search_resources_input::SearchResourcesInputBuilder;
impl crate::operation::search_resources::builders::SearchResourcesInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::search_resources::SearchResourcesOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::search_resources::SearchResourcesError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.search_resources();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct SearchResourcesFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::search_resources::builders::SearchResourcesInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::search_resources::SearchResourcesOutput,
crate::operation::search_resources::SearchResourcesError,
> for SearchResourcesFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::search_resources::SearchResourcesOutput,
crate::operation::search_resources::SearchResourcesError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl SearchResourcesFluentBuilder {
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_resources::builders::SearchResourcesInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::search_resources::SearchResourcesOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::search_resources::SearchResourcesError,
::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_resources::SearchResources::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::search_resources::SearchResources::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::search_resources::SearchResourcesOutput,
crate::operation::search_resources::SearchResourcesError,
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_resources::paginator::SearchResourcesPaginator {
crate::operation::search_resources::paginator::SearchResourcesPaginator::new(self.handle, self.inner)
}
pub fn authentication_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.authentication_token(input.into());
self
}
pub fn set_authentication_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_authentication_token(input);
self
}
pub fn get_authentication_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_authentication_token()
}
pub fn query_text(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.query_text(input.into());
self
}
pub fn set_query_text(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_query_text(input);
self
}
pub fn get_query_text(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_query_text()
}
pub fn query_scopes(mut self, input: crate::types::SearchQueryScopeType) -> Self {
self.inner = self.inner.query_scopes(input);
self
}
pub fn set_query_scopes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SearchQueryScopeType>>) -> Self {
self.inner = self.inner.set_query_scopes(input);
self
}
pub fn get_query_scopes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SearchQueryScopeType>> {
self.inner.get_query_scopes()
}
pub fn organization_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
pub fn set_organization_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
pub fn get_organization_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_organization_id()
}
pub fn additional_response_fields(mut self, input: crate::types::AdditionalResponseFieldType) -> Self {
self.inner = self.inner.additional_response_fields(input);
self
}
pub fn set_additional_response_fields(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::AdditionalResponseFieldType>>,
) -> Self {
self.inner = self.inner.set_additional_response_fields(input);
self
}
pub fn get_additional_response_fields(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AdditionalResponseFieldType>> {
self.inner.get_additional_response_fields()
}
pub fn filters(mut self, input: crate::types::Filters) -> Self {
self.inner = self.inner.filters(input);
self
}
pub fn set_filters(mut self, input: ::std::option::Option<crate::types::Filters>) -> Self {
self.inner = self.inner.set_filters(input);
self
}
pub fn get_filters(&self) -> &::std::option::Option<crate::types::Filters> {
self.inner.get_filters()
}
pub fn order_by(mut self, input: crate::types::SearchSortResult) -> Self {
self.inner = self.inner.order_by(input);
self
}
pub fn set_order_by(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SearchSortResult>>) -> Self {
self.inner = self.inner.set_order_by(input);
self
}
pub fn get_order_by(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SearchSortResult>> {
self.inner.get_order_by()
}
pub fn limit(mut self, input: i32) -> Self {
self.inner = self.inner.limit(input);
self
}
pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_limit(input);
self
}
pub fn get_limit(&self) -> &::std::option::Option<i32> {
self.inner.get_limit()
}
pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.marker(input.into());
self
}
pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_marker(input);
self
}
pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_marker()
}
}