Struct aws_sdk_wisdom::client::fluent_builders::GetRecommendations [−][src]
pub struct GetRecommendations<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
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
impl<C, M, R> GetRecommendations<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetRecommendations<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetRecommendationsOutput, SdkError<GetRecommendationsError>> where
R::Policy: SmithyRetryPolicy<GetRecommendationsInputOperationOutputAlias, GetRecommendationsOutput, GetRecommendationsError, GetRecommendationsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetRecommendationsOutput, SdkError<GetRecommendationsError>> where
R::Policy: SmithyRetryPolicy<GetRecommendationsInputOperationOutputAlias, GetRecommendationsOutput, GetRecommendationsError, GetRecommendationsInputOperationRetryAlias>,
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.
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
The maximum number of results to return per page.
The maximum number of results to return per page.
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.
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
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for GetRecommendations<C, M, R>
impl<C, M, R> Send for GetRecommendations<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetRecommendations<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetRecommendations<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for GetRecommendations<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more