pub struct PutFeedbackFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to PutFeedback.
Provides feedback against the specified assistant for the specified target. This API only supports generative targets.
Implementations§
source§impl PutFeedbackFluentBuilder
impl PutFeedbackFluentBuilder
sourcepub fn as_input(&self) -> &PutFeedbackInputBuilder
pub fn as_input(&self) -> &PutFeedbackInputBuilder
Access the PutFeedback as a reference.
sourcepub async fn send(
self
) -> Result<PutFeedbackOutput, SdkError<PutFeedbackError, HttpResponse>>
pub async fn send( self ) -> Result<PutFeedbackOutput, SdkError<PutFeedbackError, 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<PutFeedbackOutput, PutFeedbackError, Self>
pub fn customize( self ) -> CustomizableOperation<PutFeedbackOutput, PutFeedbackError, 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 Amazon Q assistant.
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.
sourcepub fn get_assistant_id(&self) -> &Option<String>
pub fn get_assistant_id(&self) -> &Option<String>
The identifier of the Amazon Q assistant.
sourcepub fn target_id(self, input: impl Into<String>) -> Self
pub fn target_id(self, input: impl Into<String>) -> Self
The identifier of the feedback target.
sourcepub fn set_target_id(self, input: Option<String>) -> Self
pub fn set_target_id(self, input: Option<String>) -> Self
The identifier of the feedback target.
sourcepub fn get_target_id(&self) -> &Option<String>
pub fn get_target_id(&self) -> &Option<String>
The identifier of the feedback target.
sourcepub fn target_type(self, input: TargetType) -> Self
pub fn target_type(self, input: TargetType) -> Self
The type of the feedback target.
sourcepub fn set_target_type(self, input: Option<TargetType>) -> Self
pub fn set_target_type(self, input: Option<TargetType>) -> Self
The type of the feedback target.
sourcepub fn get_target_type(&self) -> &Option<TargetType>
pub fn get_target_type(&self) -> &Option<TargetType>
The type of the feedback target.
sourcepub fn content_feedback(self, input: ContentFeedbackData) -> Self
pub fn content_feedback(self, input: ContentFeedbackData) -> Self
Information about the feedback provided.
sourcepub fn set_content_feedback(self, input: Option<ContentFeedbackData>) -> Self
pub fn set_content_feedback(self, input: Option<ContentFeedbackData>) -> Self
Information about the feedback provided.
sourcepub fn get_content_feedback(&self) -> &Option<ContentFeedbackData>
pub fn get_content_feedback(&self) -> &Option<ContentFeedbackData>
Information about the feedback provided.
Trait Implementations§
source§impl Clone for PutFeedbackFluentBuilder
impl Clone for PutFeedbackFluentBuilder
source§fn clone(&self) -> PutFeedbackFluentBuilder
fn clone(&self) -> PutFeedbackFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more