Struct aws_sdk_cloudsearch::operation::define_suggester::builders::DefineSuggesterFluentBuilder
source · pub struct DefineSuggesterFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DefineSuggester
.
Configures a suggester for a domain. A suggester enables you to display possible matches before users finish typing their queries. When you configure a suggester, you must specify the name of the text field you want to search for possible matches and a unique name for the suggester. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide.
Implementations§
source§impl DefineSuggesterFluentBuilder
impl DefineSuggesterFluentBuilder
sourcepub fn as_input(&self) -> &DefineSuggesterInputBuilder
pub fn as_input(&self) -> &DefineSuggesterInputBuilder
Access the DefineSuggester as a reference.
sourcepub async fn send(
self
) -> Result<DefineSuggesterOutput, SdkError<DefineSuggesterError, HttpResponse>>
pub async fn send( self ) -> Result<DefineSuggesterOutput, SdkError<DefineSuggesterError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<DefineSuggesterOutput, DefineSuggesterError, Self>
pub fn customize( self ) -> CustomizableOperation<DefineSuggesterOutput, DefineSuggesterError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
sourcepub fn get_domain_name(&self) -> &Option<String>
pub fn get_domain_name(&self) -> &Option<String>
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
sourcepub fn suggester(self, input: Suggester) -> Self
pub fn suggester(self, input: Suggester) -> Self
Configuration information for a search suggester. Each suggester has a unique name and specifies the text field you want to use for suggestions. The following options can be configured for a suggester: FuzzyMatching
, SortExpression
.
sourcepub fn set_suggester(self, input: Option<Suggester>) -> Self
pub fn set_suggester(self, input: Option<Suggester>) -> Self
Configuration information for a search suggester. Each suggester has a unique name and specifies the text field you want to use for suggestions. The following options can be configured for a suggester: FuzzyMatching
, SortExpression
.
sourcepub fn get_suggester(&self) -> &Option<Suggester>
pub fn get_suggester(&self) -> &Option<Suggester>
Configuration information for a search suggester. Each suggester has a unique name and specifies the text field you want to use for suggestions. The following options can be configured for a suggester: FuzzyMatching
, SortExpression
.
Trait Implementations§
source§impl Clone for DefineSuggesterFluentBuilder
impl Clone for DefineSuggesterFluentBuilder
source§fn clone(&self) -> DefineSuggesterFluentBuilder
fn clone(&self) -> DefineSuggesterFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for DefineSuggesterFluentBuilder
impl !RefUnwindSafe for DefineSuggesterFluentBuilder
impl Send for DefineSuggesterFluentBuilder
impl Sync for DefineSuggesterFluentBuilder
impl Unpin for DefineSuggesterFluentBuilder
impl !UnwindSafe for DefineSuggesterFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more