Interface PutFeedbackRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PutFeedbackRequest.Builder,
,PutFeedbackRequest> QBusinessRequest.Builder
,SdkBuilder<PutFeedbackRequest.Builder,
,PutFeedbackRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutFeedbackRequest
public static interface PutFeedbackRequest.Builder
extends QBusinessRequest.Builder, SdkPojo, CopyableBuilder<PutFeedbackRequest.Builder,PutFeedbackRequest>
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The identifier of the application associated with the feedback.conversationId
(String conversationId) The identifier of the conversation the feedback is attached to.messageCopiedAt
(Instant messageCopiedAt) The timestamp for when the feedback was recorded.The identifier of the chat message that the feedback was given for.default PutFeedbackRequest.Builder
messageUsefulness
(Consumer<MessageUsefulnessFeedback.Builder> messageUsefulness) The feedback usefulness value given by the user to the chat message.messageUsefulness
(MessageUsefulnessFeedback messageUsefulness) The feedback usefulness value given by the user to the chat message.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The identifier of the user giving the feedback.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qbusiness.model.QBusinessRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
applicationId
The identifier of the application associated with the feedback.
- Parameters:
applicationId
- The identifier of the application associated with the feedback.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userId
The identifier of the user giving the feedback.
- Parameters:
userId
- The identifier of the user giving the feedback.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationId
The identifier of the conversation the feedback is attached to.
- Parameters:
conversationId
- The identifier of the conversation the feedback is attached to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageId
The identifier of the chat message that the feedback was given for.
- Parameters:
messageId
- The identifier of the chat message that the feedback was given for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageCopiedAt
The timestamp for when the feedback was recorded.
- Parameters:
messageCopiedAt
- The timestamp for when the feedback was recorded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageUsefulness
The feedback usefulness value given by the user to the chat message.
- Parameters:
messageUsefulness
- The feedback usefulness value given by the user to the chat message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageUsefulness
default PutFeedbackRequest.Builder messageUsefulness(Consumer<MessageUsefulnessFeedback.Builder> messageUsefulness) The feedback usefulness value given by the user to the chat message.
This is a convenience method that creates an instance of theMessageUsefulnessFeedback.Builder
avoiding the need to create one manually viaMessageUsefulnessFeedback.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomessageUsefulness(MessageUsefulnessFeedback)
.- Parameters:
messageUsefulness
- a consumer that will call methods onMessageUsefulnessFeedback.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutFeedbackRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutFeedbackRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-