Struct aws_sdk_qconnect::operation::get_recommendations::builders::GetRecommendationsInputBuilder
source · #[non_exhaustive]pub struct GetRecommendationsInputBuilder { /* private fields */ }Expand description
A builder for GetRecommendationsInput.
Implementations§
source§impl GetRecommendationsInputBuilder
impl GetRecommendationsInputBuilder
sourcepub fn assistant_id(self, input: impl Into<String>) -> Self
pub fn assistant_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
This field is required.sourcepub fn set_assistant_id(self, input: Option<String>) -> Self
pub fn set_assistant_id(self, input: Option<String>) -> Self
The identifier of the Amazon Q 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 Amazon Q 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.
This field is required.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.
sourcepub fn build(self) -> Result<GetRecommendationsInput, BuildError>
pub fn build(self) -> Result<GetRecommendationsInput, BuildError>
Consumes the builder and constructs a GetRecommendationsInput.
source§impl GetRecommendationsInputBuilder
impl GetRecommendationsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetRecommendationsOutput, SdkError<GetRecommendationsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetRecommendationsOutput, SdkError<GetRecommendationsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetRecommendationsInputBuilder
impl Clone for GetRecommendationsInputBuilder
source§fn clone(&self) -> GetRecommendationsInputBuilder
fn clone(&self) -> GetRecommendationsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for GetRecommendationsInputBuilder
impl Default for GetRecommendationsInputBuilder
source§fn default() -> GetRecommendationsInputBuilder
fn default() -> GetRecommendationsInputBuilder
source§impl PartialEq for GetRecommendationsInputBuilder
impl PartialEq for GetRecommendationsInputBuilder
source§fn eq(&self, other: &GetRecommendationsInputBuilder) -> bool
fn eq(&self, other: &GetRecommendationsInputBuilder) -> bool
self and other values to be equal, and is used
by ==.