/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the kendra-2019-02-03.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Kendra.Model
{
///
/// Container for the parameters to the CreateFeaturedResultsSet operation.
/// Creates a set of featured results to display at the top of the search results page.
/// Featured results are placed above all other results for certain queries. You map specific
/// queries 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 search results.
///
///
///
/// You can create up to 50 sets of featured results per index. You can request to increase
/// this limit by contacting Support.
///
///
public partial class CreateFeaturedResultsSetRequest : AmazonKendraRequest
{
private string _clientToken;
private string _description;
private List _featuredDocuments = new List();
private string _featuredResultsSetName;
private string _indexId;
private List _queryTexts = new List();
private FeaturedResultsSetStatus _status;
private List _tags = new List();
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Min=1, Max=100)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property Description.
///
/// A description for the set of featured results.
///
///
[AWSProperty(Min=0, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property 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 List FeaturedDocuments
{
get { return this._featuredDocuments; }
set { this._featuredDocuments = value; }
}
// Check to see if FeaturedDocuments property is set
internal bool IsSetFeaturedDocuments()
{
return this._featuredDocuments != null && this._featuredDocuments.Count > 0;
}
///
/// Gets and sets the property FeaturedResultsSetName.
///
/// A name for the set of featured results.
///
///
[AWSProperty(Required=true, Min=1, Max=1000)]
public string FeaturedResultsSetName
{
get { return this._featuredResultsSetName; }
set { this._featuredResultsSetName = value; }
}
// Check to see if FeaturedResultsSetName property is set
internal bool IsSetFeaturedResultsSetName()
{
return this._featuredResultsSetName != null;
}
///
/// Gets and sets the property IndexId.
///
/// The identifier of the index that you want to use for featuring results.
///
///
[AWSProperty(Required=true, Min=36, Max=36)]
public string IndexId
{
get { return this._indexId; }
set { this._indexId = value; }
}
// Check to see if IndexId property is set
internal bool IsSetIndexId()
{
return this._indexId != null;
}
///
/// Gets and sets the property QueryTexts.
///
/// A list of queries for featuring results. For more information on the list of queries,
/// see FeaturedResultsSet.
///
///
[AWSProperty(Min=0, Max=49)]
public List QueryTexts
{
get { return this._queryTexts; }
set { this._queryTexts = value; }
}
// Check to see if QueryTexts property is set
internal bool IsSetQueryTexts()
{
return this._queryTexts != null && this._queryTexts.Count > 0;
}
///
/// Gets and sets the property 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
.
///
///
public FeaturedResultsSetStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property 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:_ . : / = + - @.
///
///
[AWSProperty(Min=0, Max=200)]
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}