Struct aws_sdk_wisdom::operation::get_recommendations::builders::GetRecommendationsFluentBuilder
source · pub struct GetRecommendationsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetRecommendations
.
Retrieves recommendations for the specified session. To avoid retrieving the same recommendations in subsequent calls, use NotifyRecommendationsReceived. This API supports long-polling behavior with the waitTimeSeconds
parameter. Short poll is the default behavior and only returns recommendations already available. To perform a manual query against an assistant, use QueryAssistant.
Implementations§
source§impl GetRecommendationsFluentBuilder
impl GetRecommendationsFluentBuilder
sourcepub fn as_input(&self) -> &GetRecommendationsInputBuilder
pub fn as_input(&self) -> &GetRecommendationsInputBuilder
Access the GetRecommendations as a reference.
sourcepub async fn send(
self
) -> Result<GetRecommendationsOutput, SdkError<GetRecommendationsError, HttpResponse>>
pub async fn send( self ) -> Result<GetRecommendationsOutput, SdkError<GetRecommendationsError, 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<GetRecommendationsOutput, GetRecommendationsError, Self>
pub fn customize( self ) -> CustomizableOperation<GetRecommendationsOutput, GetRecommendationsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn assistant_id(self, input: impl Into<String>) -> Self
pub fn assistant_id(self, input: impl Into<String>) -> Self
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn set_assistant_id(self, input: Option<String>) -> Self
pub fn set_assistant_id(self, input: Option<String>) -> Self
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn get_assistant_id(&self) -> &Option<String>
pub fn get_assistant_id(&self) -> &Option<String>
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn session_id(self, input: impl Into<String>) -> Self
pub fn session_id(self, input: impl Into<String>) -> Self
The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn set_session_id(self, input: Option<String>) -> Self
pub fn set_session_id(self, input: Option<String>) -> Self
The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn get_session_id(&self) -> &Option<String>
pub fn get_session_id(&self) -> &Option<String>
The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return per page.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return per page.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of results to return per page.
sourcepub fn wait_time_seconds(self, input: i32) -> Self
pub fn wait_time_seconds(self, input: i32) -> Self
The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than WaitTimeSeconds
. If no messages are available and the wait time expires, the call returns successfully with an empty list.
sourcepub fn set_wait_time_seconds(self, input: Option<i32>) -> Self
pub fn set_wait_time_seconds(self, input: Option<i32>) -> Self
The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than WaitTimeSeconds
. If no messages are available and the wait time expires, the call returns successfully with an empty list.
sourcepub fn get_wait_time_seconds(&self) -> &Option<i32>
pub fn get_wait_time_seconds(&self) -> &Option<i32>
The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than WaitTimeSeconds
. If no messages are available and the wait time expires, the call returns successfully with an empty list.
Trait Implementations§
source§impl Clone for GetRecommendationsFluentBuilder
impl Clone for GetRecommendationsFluentBuilder
source§fn clone(&self) -> GetRecommendationsFluentBuilder
fn clone(&self) -> GetRecommendationsFluentBuilder
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 GetRecommendationsFluentBuilder
impl !RefUnwindSafe for GetRecommendationsFluentBuilder
impl Send for GetRecommendationsFluentBuilder
impl Sync for GetRecommendationsFluentBuilder
impl Unpin for GetRecommendationsFluentBuilder
impl !UnwindSafe for GetRecommendationsFluentBuilder
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