/* * 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 { /// /// This is the response object from the DescribeFeaturedResultsSet operation. /// public partial class DescribeFeaturedResultsSetResponse : AmazonWebServiceResponse { private long? _creationTimestamp; private string _description; private List _featuredDocumentsMissing = new List(); private List _featuredDocumentsWithMetadata = new List(); private string _featuredResultsSetId; private string _featuredResultsSetName; private long? _lastUpdatedTimestamp; private List _queryTexts = new List(); private FeaturedResultsSetStatus _status; /// /// Gets and sets the property CreationTimestamp. /// /// The Unix timestamp when the set of the featured results was created. /// /// public long CreationTimestamp { get { return this._creationTimestamp.GetValueOrDefault(); } set { this._creationTimestamp = value; } } // Check to see if CreationTimestamp property is set internal bool IsSetCreationTimestamp() { return this._creationTimestamp.HasValue; } /// /// Gets and sets the property Description. /// /// The 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 FeaturedDocumentsMissing. /// /// The list of document IDs that don't exist but you have specified as featured documents. /// Amazon Kendra cannot feature these documents if they don't exist in the index. You /// can check the status of a document and its ID or check for documents with status errors /// using the BatchGetDocumentStatus /// API. /// /// public List FeaturedDocumentsMissing { get { return this._featuredDocumentsMissing; } set { this._featuredDocumentsMissing = value; } } // Check to see if FeaturedDocumentsMissing property is set internal bool IsSetFeaturedDocumentsMissing() { return this._featuredDocumentsMissing != null && this._featuredDocumentsMissing.Count > 0; } /// /// Gets and sets the property FeaturedDocumentsWithMetadata. /// /// The list of document IDs for the documents you want to feature with their metadata /// information. For more information on the list of featured documents, see FeaturedResultsSet. /// /// public List FeaturedDocumentsWithMetadata { get { return this._featuredDocumentsWithMetadata; } set { this._featuredDocumentsWithMetadata = value; } } // Check to see if FeaturedDocumentsWithMetadata property is set internal bool IsSetFeaturedDocumentsWithMetadata() { return this._featuredDocumentsWithMetadata != null && this._featuredDocumentsWithMetadata.Count > 0; } /// /// Gets and sets the property FeaturedResultsSetId. /// /// The identifier of the set of featured results. /// /// [AWSProperty(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. /// /// The 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 LastUpdatedTimestamp. /// /// The timestamp when the set of featured results was last updated. /// /// public long LastUpdatedTimestamp { get { return this._lastUpdatedTimestamp.GetValueOrDefault(); } set { this._lastUpdatedTimestamp = value; } } // Check to see if LastUpdatedTimestamp property is set internal bool IsSetLastUpdatedTimestamp() { return this._lastUpdatedTimestamp.HasValue; } /// /// Gets and sets the property QueryTexts. /// /// The 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; } } }