/*
* 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
{
///
/// The facet values for the documents in the response.
///
public partial class FacetResult
{
private string _documentAttributeKey;
private List _documentAttributeValueCountPairs = new List();
private DocumentAttributeValueType _documentAttributeValueType;
///
/// Gets and sets the property DocumentAttributeKey.
///
/// The key for the facet values. This is the same as the DocumentAttributeKey
/// provided in the query.
///
///
[AWSProperty(Min=1, Max=200)]
public string DocumentAttributeKey
{
get { return this._documentAttributeKey; }
set { this._documentAttributeKey = value; }
}
// Check to see if DocumentAttributeKey property is set
internal bool IsSetDocumentAttributeKey()
{
return this._documentAttributeKey != null;
}
///
/// Gets and sets the property DocumentAttributeValueCountPairs.
///
/// An array of key/value pairs, where the key is the value of the attribute and the count
/// is the number of documents that share the key value.
///
///
public List DocumentAttributeValueCountPairs
{
get { return this._documentAttributeValueCountPairs; }
set { this._documentAttributeValueCountPairs = value; }
}
// Check to see if DocumentAttributeValueCountPairs property is set
internal bool IsSetDocumentAttributeValueCountPairs()
{
return this._documentAttributeValueCountPairs != null && this._documentAttributeValueCountPairs.Count > 0;
}
///
/// Gets and sets the property DocumentAttributeValueType.
///
/// The data type of the facet value. This is the same as the type defined for the index
/// field when it was created.
///
///
public DocumentAttributeValueType DocumentAttributeValueType
{
get { return this._documentAttributeValueType; }
set { this._documentAttributeValueType = value; }
}
// Check to see if DocumentAttributeValueType property is set
internal bool IsSetDocumentAttributeValueType()
{
return this._documentAttributeValueType != null;
}
}
}