/*
* 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 UpdateFeaturedResultsSet operation.
/// Updates a set of featured results. Features 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 of a query, then one or more specific
/// documents are featured in the search results.
///
public partial class UpdateFeaturedResultsSetRequest : AmazonKendraRequest
{
private string _description;
private List _featuredDocuments = new List();
private string _featuredResultsSetId;
private string _featuredResultsSetName;
private string _indexId;
private List _queryTexts = new List();
private FeaturedResultsSetStatus _status;
///
/// Gets and sets the property Description.
///
/// A new 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 featured 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 FeaturedResultsSetId.
///
/// The identifier of the set of featured results that you want to update.
///
///
[AWSProperty(Required=true, Min=36, Max=36)]
public string FeaturedResultsSetId
{
get { return this._featuredResultsSetId; }
set { this._featuredResultsSetId = value; }
}
// Check to see if FeaturedResultsSetId property is set
internal bool IsSetFeaturedResultsSetId()
{
return this._featuredResultsSetId != null;
}
///
/// Gets and sets the property FeaturedResultsSetName.
///
/// A new name for the set of featured results.
///
///
[AWSProperty(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 used 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.
///
/// 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
.
///
///
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;
}
}
}