/* * 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 runtime.lex.v2-2020-08-07.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.LexRuntimeV2.Model { /// /// The individual sentiment responses for the utterance. /// public partial class SentimentScore { private double? _mixed; private double? _negative; private double? _neutral; private double? _positive; /// /// Gets and sets the property Mixed. /// /// The level of confidence that Amazon Comprehend has in the accuracy of its detection /// of the MIXED sentiment. /// /// public double Mixed { get { return this._mixed.GetValueOrDefault(); } set { this._mixed = value; } } // Check to see if Mixed property is set internal bool IsSetMixed() { return this._mixed.HasValue; } /// /// Gets and sets the property Negative. /// /// The level of confidence that Amazon Comprehend has in the accuracy of its detection /// of the NEGATIVE sentiment. /// /// public double Negative { get { return this._negative.GetValueOrDefault(); } set { this._negative = value; } } // Check to see if Negative property is set internal bool IsSetNegative() { return this._negative.HasValue; } /// /// Gets and sets the property Neutral. /// /// The level of confidence that Amazon Comprehend has in the accuracy of its detection /// of the NEUTRAL sentiment. /// /// public double Neutral { get { return this._neutral.GetValueOrDefault(); } set { this._neutral = value; } } // Check to see if Neutral property is set internal bool IsSetNeutral() { return this._neutral.HasValue; } /// /// Gets and sets the property Positive. /// /// The level of confidence that Amazon Comprehend has in the accuracy of its detection /// of the POSITIVE sentiment. /// /// public double Positive { get { return this._positive.GetValueOrDefault(); } set { this._positive = value; } } // Check to see if Positive property is set internal bool IsSetPositive() { return this._positive.HasValue; } } }