/*
* 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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model
{
///
/// The statistics for a field calculated in the request.
///
public partial class FieldStats
{
private long? _count;
private string _max;
private string _mean;
private string _min;
private long? _missing;
private double? _stddev;
private double? _sum;
private double? _sumOfSquares;
///
/// Gets and sets the property Count.
///
/// The number of documents that contain a value in the specified field in the result
/// set.
///
///
public long Count
{
get { return this._count.GetValueOrDefault(); }
set { this._count = value; }
}
// Check to see if Count property is set
internal bool IsSetCount()
{
return this._count.HasValue;
}
///
/// Gets and sets the property Max.
///
/// The maximum value found in the specified field in the result set.
///
///
///
/// If the field is numeric (int
, int-array
, double
,
/// or double-array
), max
is the string representation of a
/// double-precision 64-bit floating point value. If the field is date
or
/// date-array
, max
is the string representation of a date with
/// the format specified in IETF RFC3339:
/// yyyy-mm-ddTHH:mm:ss.SSSZ.
///
///
public string Max
{
get { return this._max; }
set { this._max = value; }
}
// Check to see if Max property is set
internal bool IsSetMax()
{
return this._max != null;
}
///
/// Gets and sets the property Mean.
///
/// The average of the values found in the specified field in the result set.
///
///
///
/// If the field is numeric (int
, int-array
, double
,
/// or double-array
), mean
is the string representation of a
/// double-precision 64-bit floating point value. If the field is date
or
/// date-array
, mean
is the string representation of a date
/// with the format specified in IETF RFC3339:
/// yyyy-mm-ddTHH:mm:ss.SSSZ.
///
///
public string Mean
{
get { return this._mean; }
set { this._mean = value; }
}
// Check to see if Mean property is set
internal bool IsSetMean()
{
return this._mean != null;
}
///
/// Gets and sets the property Min.
///
/// The minimum value found in the specified field in the result set.
///
///
///
/// If the field is numeric (int
, int-array
, double
,
/// or double-array
), min
is the string representation of a
/// double-precision 64-bit floating point value. If the field is date
or
/// date-array
, min
is the string representation of a date with
/// the format specified in IETF RFC3339:
/// yyyy-mm-ddTHH:mm:ss.SSSZ.
///
///
public string Min
{
get { return this._min; }
set { this._min = value; }
}
// Check to see if Min property is set
internal bool IsSetMin()
{
return this._min != null;
}
///
/// Gets and sets the property Missing.
///
/// The number of documents that do not contain a value in the specified field in the
/// result set.
///
///
public long Missing
{
get { return this._missing.GetValueOrDefault(); }
set { this._missing = value; }
}
// Check to see if Missing property is set
internal bool IsSetMissing()
{
return this._missing.HasValue;
}
///
/// Gets and sets the property Stddev.
///
/// The standard deviation of the values in the specified field in the result set.
///
///
public double Stddev
{
get { return this._stddev.GetValueOrDefault(); }
set { this._stddev = value; }
}
// Check to see if Stddev property is set
internal bool IsSetStddev()
{
return this._stddev.HasValue;
}
///
/// Gets and sets the property Sum.
///
/// The sum of the field values across the documents in the result set. null
/// for date fields.
///
///
public double Sum
{
get { return this._sum.GetValueOrDefault(); }
set { this._sum = value; }
}
// Check to see if Sum property is set
internal bool IsSetSum()
{
return this._sum.HasValue;
}
///
/// Gets and sets the property SumOfSquares.
///
/// The sum of all field values in the result set squared.
///
///
public double SumOfSquares
{
get { return this._sumOfSquares.GetValueOrDefault(); }
set { this._sumOfSquares = value; }
}
// Check to see if SumOfSquares property is set
internal bool IsSetSumOfSquares()
{
return this._sumOfSquares.HasValue;
}
}
}