/*
* 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
{
///
/// A single retrieved relevant passage result.
///
public partial class RetrieveResultItem
{
private string _content;
private List _documentAttributes = new List();
private string _documentId;
private string _documentTitle;
private string _documentURI;
private string _id;
///
/// Gets and sets the property Content.
///
/// The contents of the relevant passage.
///
///
public string Content
{
get { return this._content; }
set { this._content = value; }
}
// Check to see if Content property is set
internal bool IsSetContent()
{
return this._content != null;
}
///
/// Gets and sets the property DocumentAttributes.
///
/// An array of document fields/attributes assigned to a document in the search results.
/// For example, the document author (_author
) or the source URI (_source_uri
)
/// of the document.
///
///
public List DocumentAttributes
{
get { return this._documentAttributes; }
set { this._documentAttributes = value; }
}
// Check to see if DocumentAttributes property is set
internal bool IsSetDocumentAttributes()
{
return this._documentAttributes != null && this._documentAttributes.Count > 0;
}
///
/// Gets and sets the property DocumentId.
///
/// The identifier of the document.
///
///
[AWSProperty(Min=1, Max=2048)]
public string DocumentId
{
get { return this._documentId; }
set { this._documentId = value; }
}
// Check to see if DocumentId property is set
internal bool IsSetDocumentId()
{
return this._documentId != null;
}
///
/// Gets and sets the property DocumentTitle.
///
/// The title of the document.
///
///
public string DocumentTitle
{
get { return this._documentTitle; }
set { this._documentTitle = value; }
}
// Check to see if DocumentTitle property is set
internal bool IsSetDocumentTitle()
{
return this._documentTitle != null;
}
///
/// Gets and sets the property DocumentURI.
///
/// The URI of the original location of the document.
///
///
[AWSProperty(Min=1, Max=2048)]
public string DocumentURI
{
get { return this._documentURI; }
set { this._documentURI = value; }
}
// Check to see if DocumentURI property is set
internal bool IsSetDocumentURI()
{
return this._documentURI != null;
}
///
/// Gets and sets the property Id.
///
/// The identifier of the relevant passage result.
///
///
[AWSProperty(Min=1, Max=73)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
}
}