/* * 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 CreateFeaturedResultsSetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The identifier of the index that you want to use for featuring results. *
*/ private String indexId; /** ** A name for the set of featured results. *
*/ private String featuredResultsSetName; /** ** A description for the set of featured results. *
*/ private String description; /** *
* A token that you provide to identify the request to create a set of featured results. Multiple calls to the
* CreateFeaturedResultsSet
API with the same client token will create only one featured results set.
*
* 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
.
*
* A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. *
*/ private java.util.List* A list of document IDs for the documents you want to feature at the top of the search results page. For more * information on the list of documents, see FeaturedResultsSet. *
*/ private java.util.List* A list of key-value pairs that identify or categorize the featured results set. You can also use tags to help * control access to the featured results set. Tag keys and values can consist of Unicode letters, digits, white * space, and any of the following symbols:_ . : / = + - @. *
*/ private java.util.List* The identifier of the index that you want to use for featuring results. *
* * @param indexId * The identifier of the index that you want to use for featuring results. */ public void setIndexId(String indexId) { this.indexId = indexId; } /** ** The identifier of the index that you want to use for featuring results. *
* * @return The identifier of the index that you want to use for featuring results. */ public String getIndexId() { return this.indexId; } /** ** The identifier of the index that you want to use for featuring results. *
* * @param indexId * The identifier of the index that you want to use for featuring results. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFeaturedResultsSetRequest withIndexId(String indexId) { setIndexId(indexId); return this; } /** ** A name for the set of featured results. *
* * @param featuredResultsSetName * A name for the set of featured results. */ public void setFeaturedResultsSetName(String featuredResultsSetName) { this.featuredResultsSetName = featuredResultsSetName; } /** ** A name for the set of featured results. *
* * @return A name for the set of featured results. */ public String getFeaturedResultsSetName() { return this.featuredResultsSetName; } /** ** A name for the set of featured results. *
* * @param featuredResultsSetName * A name for the set of featured results. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFeaturedResultsSetRequest withFeaturedResultsSetName(String featuredResultsSetName) { setFeaturedResultsSetName(featuredResultsSetName); return this; } /** ** A description for the set of featured results. *
* * @param description * A description for the set of featured results. */ public void setDescription(String description) { this.description = description; } /** ** A description for the set of featured results. *
* * @return A description for the set of featured results. */ public String getDescription() { return this.description; } /** ** A description for the set of featured results. *
* * @param description * A description for the set of featured results. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFeaturedResultsSetRequest withDescription(String description) { setDescription(description); return this; } /** *
* A token that you provide to identify the request to create a set of featured results. Multiple calls to the
* CreateFeaturedResultsSet
API with the same client token will create only one featured results set.
*
CreateFeaturedResultsSet
API with the same client token will create only one featured
* results set.
*/
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
}
/**
*
* A token that you provide to identify the request to create a set of featured results. Multiple calls to the
* CreateFeaturedResultsSet
API with the same client token will create only one featured results set.
*
CreateFeaturedResultsSet
API with the same client token will create only one featured
* results set.
*/
public String getClientToken() {
return this.clientToken;
}
/**
*
* A token that you provide to identify the request to create a set of featured results. Multiple calls to the
* CreateFeaturedResultsSet
API with the same client token will create only one featured results set.
*
CreateFeaturedResultsSet
API with the same client token will create only one featured
* results set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFeaturedResultsSetRequest withClientToken(String clientToken) {
setClientToken(clientToken);
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 CreateFeaturedResultsSetRequest 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 CreateFeaturedResultsSetRequest withStatus(FeaturedResultsSetStatus status) {
this.status = status.toString();
return this;
}
/**
* * A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. *
* * @return A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. */ public java.util.List* A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. *
* * @param queryTexts * A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. */ public void setQueryTexts(java.util.Collection* A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. *
** 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. *
* * @param queryTexts * A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFeaturedResultsSetRequest withQueryTexts(String... queryTexts) { if (this.queryTexts == null) { setQueryTexts(new java.util.ArrayList* A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. *
* * @param queryTexts * A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFeaturedResultsSetRequest withQueryTexts(java.util.Collection* A list of document IDs for the documents you want to feature at the top of the search results page. For more * information on the list of documents, see FeaturedResultsSet. *
* * @return A list of document IDs for the documents you want to feature at the top of the search results page. For * more information on the list of documents, see FeaturedResultsSet. */ public java.util.List* A list of document IDs for the documents you want to feature at the top of the search results page. For more * information on the list of documents, see FeaturedResultsSet. *
* * @param featuredDocuments * A list of document IDs for the documents you want to feature at the top of the search results page. For * more information on the list of documents, see FeaturedResultsSet. */ public void setFeaturedDocuments(java.util.Collection* A list of document IDs for the documents you want to feature at the top of the search results page. For more * information on the list of documents, see FeaturedResultsSet. *
** 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. *
* * @param featuredDocuments * A list of document IDs for the documents you want to feature at the top of the search results page. For * more information on the list of documents, see FeaturedResultsSet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFeaturedResultsSetRequest withFeaturedDocuments(FeaturedDocument... featuredDocuments) { if (this.featuredDocuments == null) { setFeaturedDocuments(new java.util.ArrayList* A list of document IDs for the documents you want to feature at the top of the search results page. For more * information on the list of documents, see FeaturedResultsSet. *
* * @param featuredDocuments * A list of document IDs for the documents you want to feature at the top of the search results page. For * more information on the list of documents, see FeaturedResultsSet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFeaturedResultsSetRequest withFeaturedDocuments(java.util.Collection* A list of key-value pairs that identify or categorize the featured results set. You can also use tags to help * control access to the featured results set. Tag keys and values can consist of Unicode letters, digits, white * space, and any of the following symbols:_ . : / = + - @. *
* * @return A list of key-value pairs that identify or categorize the featured results set. You can also use tags to * help control access to the featured results set. Tag keys and values can consist of Unicode letters, * digits, white space, and any of the following symbols:_ . : / = + - @. */ public java.util.List* A list of key-value pairs that identify or categorize the featured results set. You can also use tags to help * control access to the featured results set. Tag keys and values can consist of Unicode letters, digits, white * space, and any of the following symbols:_ . : / = + - @. *
* * @param tags * A list of key-value pairs that identify or categorize the featured results set. You can also use tags to * help control access to the featured results set. Tag keys and values can consist of Unicode letters, * digits, white space, and any of the following symbols:_ . : / = + - @. */ public void setTags(java.util.Collection* A list of key-value pairs that identify or categorize the featured results set. You can also use tags to help * control access to the featured results set. Tag keys and values can consist of Unicode letters, digits, white * space, and any of the following symbols:_ . : / = + - @. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of key-value pairs that identify or categorize the featured results set. You can also use tags to * help control access to the featured results set. Tag keys and values can consist of Unicode letters, * digits, white space, and any of the following symbols:_ . : / = + - @. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFeaturedResultsSetRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of key-value pairs that identify or categorize the featured results set. You can also use tags to help * control access to the featured results set. Tag keys and values can consist of Unicode letters, digits, white * space, and any of the following symbols:_ . : / = + - @. *
* * @param tags * A list of key-value pairs that identify or categorize the featured results set. You can also use tags to * help control access to the featured results set. Tag keys and values can consist of Unicode letters, * digits, white space, and any of the following symbols:_ . : / = + - @. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFeaturedResultsSetRequest withTags(java.util.Collection