/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.kendra.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SubmitFeedbackRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The identifier of the index that was queried. *
*/ private String indexId; /** *
* The identifier of the specific query for which you are submitting feedback. The query ID is returned in the
* response to the Query
API.
*
* Tells Amazon Kendra that a particular search result link was chosen by the user. *
*/ private java.util.List* Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant to the * search. *
*/ private java.util.List* The identifier of the index that was queried. *
* * @param indexId * The identifier of the index that was queried. */ public void setIndexId(String indexId) { this.indexId = indexId; } /** ** The identifier of the index that was queried. *
* * @return The identifier of the index that was queried. */ public String getIndexId() { return this.indexId; } /** ** The identifier of the index that was queried. *
* * @param indexId * The identifier of the index that was queried. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitFeedbackRequest withIndexId(String indexId) { setIndexId(indexId); return this; } /** *
* The identifier of the specific query for which you are submitting feedback. The query ID is returned in the
* response to the Query
API.
*
Query
API.
*/
public void setQueryId(String queryId) {
this.queryId = queryId;
}
/**
*
* The identifier of the specific query for which you are submitting feedback. The query ID is returned in the
* response to the Query
API.
*
Query
API.
*/
public String getQueryId() {
return this.queryId;
}
/**
*
* The identifier of the specific query for which you are submitting feedback. The query ID is returned in the
* response to the Query
API.
*
Query
API.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SubmitFeedbackRequest withQueryId(String queryId) {
setQueryId(queryId);
return this;
}
/**
* * Tells Amazon Kendra that a particular search result link was chosen by the user. *
* * @return Tells Amazon Kendra that a particular search result link was chosen by the user. */ public java.util.List* Tells Amazon Kendra that a particular search result link was chosen by the user. *
* * @param clickFeedbackItems * Tells Amazon Kendra that a particular search result link was chosen by the user. */ public void setClickFeedbackItems(java.util.Collection* Tells Amazon Kendra that a particular search result link was chosen by the user. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setClickFeedbackItems(java.util.Collection)} or {@link #withClickFeedbackItems(java.util.Collection)} if * you want to override the existing values. *
* * @param clickFeedbackItems * Tells Amazon Kendra that a particular search result link was chosen by the user. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitFeedbackRequest withClickFeedbackItems(ClickFeedback... clickFeedbackItems) { if (this.clickFeedbackItems == null) { setClickFeedbackItems(new java.util.ArrayList* Tells Amazon Kendra that a particular search result link was chosen by the user. *
* * @param clickFeedbackItems * Tells Amazon Kendra that a particular search result link was chosen by the user. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitFeedbackRequest withClickFeedbackItems(java.util.Collection* Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant to the * search. *
* * @return Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant * to the search. */ public java.util.List* Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant to the * search. *
* * @param relevanceFeedbackItems * Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant * to the search. */ public void setRelevanceFeedbackItems(java.util.Collection* Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant to the * search. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRelevanceFeedbackItems(java.util.Collection)} or * {@link #withRelevanceFeedbackItems(java.util.Collection)} if you want to override the existing values. *
* * @param relevanceFeedbackItems * Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant * to the search. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitFeedbackRequest withRelevanceFeedbackItems(RelevanceFeedback... relevanceFeedbackItems) { if (this.relevanceFeedbackItems == null) { setRelevanceFeedbackItems(new java.util.ArrayList* Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant to the * search. *
* * @param relevanceFeedbackItems * Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant * to the search. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitFeedbackRequest withRelevanceFeedbackItems(java.util.Collection