/* * 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 UpdateFeaturedResultsSetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The identifier of the index used for featuring results. *
*/ private String indexId; /** ** The identifier of the set of featured results that you want to update. *
*/ private String featuredResultsSetId; /** ** A new name for the set of featured results. *
*/ private String featuredResultsSetName; /** ** A new description for the set of featured results. *
*/ private String description; /** *
* You can set the status to ACTIVE
or INACTIVE
. When the value is ACTIVE
,
* featured results are ready for use. You can still configure your settings before setting the status to
* ACTIVE
. 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 featured documents, see FeaturedResultsSet. *
*/ private java.util.List* The identifier of the index used for featuring results. *
* * @param indexId * The identifier of the index used for featuring results. */ public void setIndexId(String indexId) { this.indexId = indexId; } /** ** The identifier of the index used for featuring results. *
* * @return The identifier of the index used for featuring results. */ public String getIndexId() { return this.indexId; } /** ** The identifier of the index used for featuring results. *
* * @param indexId * The identifier of the index used for featuring results. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withIndexId(String indexId) { setIndexId(indexId); return this; } /** ** The identifier of the set of featured results that you want to update. *
* * @param featuredResultsSetId * The identifier of the set of featured results that you want to update. */ public void setFeaturedResultsSetId(String featuredResultsSetId) { this.featuredResultsSetId = featuredResultsSetId; } /** ** The identifier of the set of featured results that you want to update. *
* * @return The identifier of the set of featured results that you want to update. */ public String getFeaturedResultsSetId() { return this.featuredResultsSetId; } /** ** The identifier of the set of featured results that you want to update. *
* * @param featuredResultsSetId * The identifier of the set of featured results that you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withFeaturedResultsSetId(String featuredResultsSetId) { setFeaturedResultsSetId(featuredResultsSetId); return this; } /** ** A new name for the set of featured results. *
* * @param featuredResultsSetName * A new name for the set of featured results. */ public void setFeaturedResultsSetName(String featuredResultsSetName) { this.featuredResultsSetName = featuredResultsSetName; } /** ** A new name for the set of featured results. *
* * @return A new name for the set of featured results. */ public String getFeaturedResultsSetName() { return this.featuredResultsSetName; } /** ** A new name for the set of featured results. *
* * @param featuredResultsSetName * A new name for the set of featured results. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withFeaturedResultsSetName(String featuredResultsSetName) { setFeaturedResultsSetName(featuredResultsSetName); return this; } /** ** A new description for the set of featured results. *
* * @param description * A new description for the set of featured results. */ public void setDescription(String description) { this.description = description; } /** ** A new description for the set of featured results. *
* * @return A new description for the set of featured results. */ public String getDescription() { return this.description; } /** ** A new description for the set of featured results. *
* * @param description * A new description for the set of featured results. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withDescription(String description) { setDescription(description); return this; } /** *
* You can set the status to ACTIVE
or INACTIVE
. When the value is ACTIVE
,
* featured results are ready for use. You can still configure your settings before setting the status to
* ACTIVE
. 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
or INACTIVE
. When the value is
* ACTIVE
, featured results are ready for use. You can still configure your settings before
* setting the status to ACTIVE
. 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;
}
/**
*
* You can set the status to ACTIVE
or INACTIVE
. When the value is ACTIVE
,
* featured results are ready for use. You can still configure your settings before setting the status to
* ACTIVE
. 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
or INACTIVE
. When the value is
* ACTIVE
, featured results are ready for use. You can still configure your settings before
* setting the status to ACTIVE
. 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;
}
/**
*
* You can set the status to ACTIVE
or INACTIVE
. When the value is ACTIVE
,
* featured results are ready for use. You can still configure your settings before setting the status to
* ACTIVE
. 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
or INACTIVE
. When the value is
* ACTIVE
, featured results are ready for use. You can still configure your settings before
* setting the status to ACTIVE
. 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 UpdateFeaturedResultsSetRequest withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* You can set the status to ACTIVE
or INACTIVE
. When the value is ACTIVE
,
* featured results are ready for use. You can still configure your settings before setting the status to
* ACTIVE
. 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
or INACTIVE
. When the value is
* ACTIVE
, featured results are ready for use. You can still configure your settings before
* setting the status to ACTIVE
. 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 UpdateFeaturedResultsSetRequest 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 UpdateFeaturedResultsSetRequest 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 UpdateFeaturedResultsSetRequest 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 featured 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 featured 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 featured 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 featured 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 featured 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 featured documents, see FeaturedResultsSet. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest 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 featured 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 featured documents, see FeaturedResultsSet. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withFeaturedDocuments(java.util.Collection