/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A set of featured results that are displayed at the top of your search results. Featured results are placed above all * other results for certain queries. If there's an exact match of a query, then one or more specific documents are * featured in the search results. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FeaturedResultsSet implements Serializable, Cloneable, StructuredPojo { /** ** The identifier of the set of featured results. *
*/ private String featuredResultsSetId; /** ** The name for the set of featured results. *
*/ private String featuredResultsSetName; /** ** The description for the set of featured results. *
*/ private String description; /** *
* The current status of the set of featured results. When the value is ACTIVE
, featured results are
* ready for use. You can still configure your settings before setting the status to ACTIVE
. You can
* set the status to ACTIVE
or INACTIVE
using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured
* results set for each index, whether the status is ACTIVE
or INACTIVE
.
*
* The list of queries for featuring results. *
** Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact * match, then one or more specific documents are featured in the results. The exact match applies to the full * query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' * will not render the featured results. Featured results are designed for specific queries, rather than queries * that are too broad in scope. *
*/ private java.util.List* The list of document IDs for the documents you want to feature at the top of the search results page. You can use * the Query API to search for specific * documents with their document IDs included in the result items, or you can use the console. *
** You can add up to four featured documents. You can request to increase this limit by contacting Support. *
** Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact * match, then one or more specific documents are featured in the results. The exact match applies to the full * query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' * will not render the featured results. Featured results are designed for specific queries, rather than queries * that are too broad in scope. *
*/ private java.util.List* The Unix timestamp when the set of featured results was last updated. *
*/ private Long lastUpdatedTimestamp; /** ** The Unix timestamp when the set of featured results was created. *
*/ private Long creationTimestamp; /** ** The identifier of the set of featured results. *
* * @param featuredResultsSetId * The identifier of the set of featured results. */ public void setFeaturedResultsSetId(String featuredResultsSetId) { this.featuredResultsSetId = featuredResultsSetId; } /** ** The identifier of the set of featured results. *
* * @return The identifier of the set of featured results. */ public String getFeaturedResultsSetId() { return this.featuredResultsSetId; } /** ** The identifier of the set of featured results. *
* * @param featuredResultsSetId * The identifier of the set of featured results. * @return Returns a reference to this object so that method calls can be chained together. */ public FeaturedResultsSet withFeaturedResultsSetId(String featuredResultsSetId) { setFeaturedResultsSetId(featuredResultsSetId); return this; } /** ** The name for the set of featured results. *
* * @param featuredResultsSetName * The name for the set of featured results. */ public void setFeaturedResultsSetName(String featuredResultsSetName) { this.featuredResultsSetName = featuredResultsSetName; } /** ** The name for the set of featured results. *
* * @return The name for the set of featured results. */ public String getFeaturedResultsSetName() { return this.featuredResultsSetName; } /** ** The name for the set of featured results. *
* * @param featuredResultsSetName * The name for the set of featured results. * @return Returns a reference to this object so that method calls can be chained together. */ public FeaturedResultsSet withFeaturedResultsSetName(String featuredResultsSetName) { setFeaturedResultsSetName(featuredResultsSetName); return this; } /** ** The description for the set of featured results. *
* * @param description * The description for the set of featured results. */ public void setDescription(String description) { this.description = description; } /** ** The description for the set of featured results. *
* * @return The description for the set of featured results. */ public String getDescription() { return this.description; } /** ** The description for the set of featured results. *
* * @param description * The description for the set of featured results. * @return Returns a reference to this object so that method calls can be chained together. */ public FeaturedResultsSet withDescription(String description) { setDescription(description); return this; } /** *
* The current status of the set of featured results. When the value is ACTIVE
, featured results are
* ready for use. You can still configure your settings before setting the status to ACTIVE
. You can
* set the status to ACTIVE
or INACTIVE
using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured
* results set for each index, whether the status is ACTIVE
or INACTIVE
.
*
ACTIVE
, featured results
* are ready for use. You can still configure your settings before setting the status to ACTIVE
.
* You can set the status to ACTIVE
or INACTIVE
using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per
* featured results set for each index, whether the status is ACTIVE
or INACTIVE
.
* @see FeaturedResultsSetStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The current status of the set of featured results. When the value is ACTIVE
, featured results are
* ready for use. You can still configure your settings before setting the status to ACTIVE
. You can
* set the status to ACTIVE
or INACTIVE
using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured
* results set for each index, whether the status is ACTIVE
or INACTIVE
.
*
ACTIVE
, featured
* results are ready for use. You can still configure your settings before setting the status to
* ACTIVE
. You can set the status to ACTIVE
or INACTIVE
using the
* UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per
* featured results set for each index, whether the status is ACTIVE
or INACTIVE
.
* @see FeaturedResultsSetStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The current status of the set of featured results. When the value is ACTIVE
, featured results are
* ready for use. You can still configure your settings before setting the status to ACTIVE
. You can
* set the status to ACTIVE
or INACTIVE
using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured
* results set for each index, whether the status is ACTIVE
or INACTIVE
.
*
ACTIVE
, featured results
* are ready for use. You can still configure your settings before setting the status to ACTIVE
.
* You can set the status to ACTIVE
or INACTIVE
using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per
* featured results set for each index, whether the status is ACTIVE
or INACTIVE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeaturedResultsSetStatus
*/
public FeaturedResultsSet withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The current status of the set of featured results. When the value is ACTIVE
, featured results are
* ready for use. You can still configure your settings before setting the status to ACTIVE
. You can
* set the status to ACTIVE
or INACTIVE
using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured
* results set for each index, whether the status is ACTIVE
or INACTIVE
.
*
ACTIVE
, featured results
* are ready for use. You can still configure your settings before setting the status to ACTIVE
.
* You can set the status to ACTIVE
or INACTIVE
using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per
* featured results set for each index, whether the status is ACTIVE
or INACTIVE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeaturedResultsSetStatus
*/
public FeaturedResultsSet withStatus(FeaturedResultsSetStatus status) {
this.status = status.toString();
return this;
}
/**
* * The list of queries for featuring results. *
** Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact * match, then one or more specific documents are featured in the results. The exact match applies to the full * query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' * will not render the featured results. Featured results are designed for specific queries, rather than queries * that are too broad in scope. *
* * @return The list of queries for featuring results. *
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an
* exact match, then one or more specific documents are featured in the results. The exact match applies to
* the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically
* rank results?' will not render the featured results. Featured results are designed for specific queries,
* rather than queries that are too broad in scope.
*/
public java.util.List
* The list of queries for featuring results.
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact
* match, then one or more specific documents are featured in the results. The exact match applies to the full
* query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?'
* will not render the featured results. Featured results are designed for specific queries, rather than queries
* that are too broad in scope.
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an
* exact match, then one or more specific documents are featured in the results. The exact match applies to
* the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically
* rank results?' will not render the featured results. Featured results are designed for specific queries,
* rather than queries that are too broad in scope.
*/
public void setQueryTexts(java.util.Collection
* The list of queries for featuring results.
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact
* match, then one or more specific documents are featured in the results. The exact match applies to the full
* query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?'
* will not render the featured results. Featured results are designed for specific queries, rather than queries
* that are too broad in scope.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setQueryTexts(java.util.Collection)} or {@link #withQueryTexts(java.util.Collection)} if you want to
* override the existing values.
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an
* exact match, then one or more specific documents are featured in the results. The exact match applies to
* the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically
* rank results?' will not render the featured results. Featured results are designed for specific queries,
* rather than queries that are too broad in scope.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FeaturedResultsSet withQueryTexts(String... queryTexts) {
if (this.queryTexts == null) {
setQueryTexts(new java.util.ArrayList
* The list of queries for featuring results.
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact
* match, then one or more specific documents are featured in the results. The exact match applies to the full
* query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?'
* will not render the featured results. Featured results are designed for specific queries, rather than queries
* that are too broad in scope.
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an
* exact match, then one or more specific documents are featured in the results. The exact match applies to
* the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically
* rank results?' will not render the featured results. Featured results are designed for specific queries,
* rather than queries that are too broad in scope.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FeaturedResultsSet withQueryTexts(java.util.Collection
* The list of document IDs for the documents you want to feature at the top of the search results page. You can use
* the Query API to search for specific
* documents with their document IDs included in the result items, or you can use the console.
*
* You can add up to four featured documents. You can request to increase this limit by contacting Support.
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact
* match, then one or more specific documents are featured in the results. The exact match applies to the full
* query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?'
* will not render the featured results. Featured results are designed for specific queries, rather than queries
* that are too broad in scope.
*
* You can add up to four featured documents. You can request to increase this limit by contacting Support. *
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an
* exact match, then one or more specific documents are featured in the results. The exact match applies to
* the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically
* rank results?' will not render the featured results. Featured results are designed for specific queries,
* rather than queries that are too broad in scope.
*/
public java.util.List
* The list of document IDs for the documents you want to feature at the top of the search results page. You can use
* the Query API to search for specific
* documents with their document IDs included in the result items, or you can use the console.
*
* You can add up to four featured documents. You can request to increase this limit by contacting Support.
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact
* match, then one or more specific documents are featured in the results. The exact match applies to the full
* query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?'
* will not render the featured results. Featured results are designed for specific queries, rather than queries
* that are too broad in scope.
*
* You can add up to four featured documents. You can request to increase this limit by contacting Support. *
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an
* exact match, then one or more specific documents are featured in the results. The exact match applies to
* the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically
* rank results?' will not render the featured results. Featured results are designed for specific queries,
* rather than queries that are too broad in scope.
*/
public void setFeaturedDocuments(java.util.Collection
* The list of document IDs for the documents you want to feature at the top of the search results page. You can use
* the Query API to search for specific
* documents with their document IDs included in the result items, or you can use the console.
*
* You can add up to four featured documents. You can request to increase this limit by contacting Support.
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact
* match, then one or more specific documents are featured in the results. The exact match applies to the full
* query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?'
* will not render the featured results. Featured results are designed for specific queries, rather than queries
* that are too broad in scope.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFeaturedDocuments(java.util.Collection)} or {@link #withFeaturedDocuments(java.util.Collection)} if
* you want to override the existing values.
*
* You can add up to four featured documents. You can request to increase this limit by contacting Support. *
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an
* exact match, then one or more specific documents are featured in the results. The exact match applies to
* the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically
* rank results?' will not render the featured results. Featured results are designed for specific queries,
* rather than queries that are too broad in scope.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FeaturedResultsSet withFeaturedDocuments(FeaturedDocument... featuredDocuments) {
if (this.featuredDocuments == null) {
setFeaturedDocuments(new java.util.ArrayList
* The list of document IDs for the documents you want to feature at the top of the search results page. You can use
* the Query API to search for specific
* documents with their document IDs included in the result items, or you can use the console.
*
* You can add up to four featured documents. You can request to increase this limit by contacting Support.
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact
* match, then one or more specific documents are featured in the results. The exact match applies to the full
* query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?'
* will not render the featured results. Featured results are designed for specific queries, rather than queries
* that are too broad in scope.
*
* You can add up to four featured documents. You can request to increase this limit by contacting Support. *
*
* Specific queries are mapped to specific documents for featuring in the results. If a query contains an
* exact match, then one or more specific documents are featured in the results. The exact match applies to
* the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically
* rank results?' will not render the featured results. Featured results are designed for specific queries,
* rather than queries that are too broad in scope.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FeaturedResultsSet withFeaturedDocuments(java.util.Collection
* The Unix timestamp when the set of featured results was last updated.
*
* The Unix timestamp when the set of featured results was last updated.
*
* The Unix timestamp when the set of featured results was last updated.
*
* The Unix timestamp when the set of featured results was created.
*
* The Unix timestamp when the set of featured results was created.
*
* The Unix timestamp when the set of featured results was created.
*