/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Connect { namespace Model { /** *

Information about answer data for a contact evaluation. Answer data must be * either string, numeric, or not applicable.

See Also:

AWS * API Reference

*/ class EvaluationAnswerData { public: AWS_CONNECT_API EvaluationAnswerData(); AWS_CONNECT_API EvaluationAnswerData(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API EvaluationAnswerData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The string value for an answer in a contact evaluation.

*/ inline const Aws::String& GetStringValue() const{ return m_stringValue; } /** *

The string value for an answer in a contact evaluation.

*/ inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; } /** *

The string value for an answer in a contact evaluation.

*/ inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; } /** *

The string value for an answer in a contact evaluation.

*/ inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); } /** *

The string value for an answer in a contact evaluation.

*/ inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); } /** *

The string value for an answer in a contact evaluation.

*/ inline EvaluationAnswerData& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;} /** *

The string value for an answer in a contact evaluation.

*/ inline EvaluationAnswerData& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;} /** *

The string value for an answer in a contact evaluation.

*/ inline EvaluationAnswerData& WithStringValue(const char* value) { SetStringValue(value); return *this;} /** *

The numeric value for an answer in a contact evaluation.

*/ inline double GetNumericValue() const{ return m_numericValue; } /** *

The numeric value for an answer in a contact evaluation.

*/ inline bool NumericValueHasBeenSet() const { return m_numericValueHasBeenSet; } /** *

The numeric value for an answer in a contact evaluation.

*/ inline void SetNumericValue(double value) { m_numericValueHasBeenSet = true; m_numericValue = value; } /** *

The numeric value for an answer in a contact evaluation.

*/ inline EvaluationAnswerData& WithNumericValue(double value) { SetNumericValue(value); return *this;} /** *

The flag to mark the question as not applicable.

*/ inline bool GetNotApplicable() const{ return m_notApplicable; } /** *

The flag to mark the question as not applicable.

*/ inline bool NotApplicableHasBeenSet() const { return m_notApplicableHasBeenSet; } /** *

The flag to mark the question as not applicable.

*/ inline void SetNotApplicable(bool value) { m_notApplicableHasBeenSet = true; m_notApplicable = value; } /** *

The flag to mark the question as not applicable.

*/ inline EvaluationAnswerData& WithNotApplicable(bool value) { SetNotApplicable(value); return *this;} private: Aws::String m_stringValue; bool m_stringValueHasBeenSet = false; double m_numericValue; bool m_numericValueHasBeenSet = false; bool m_notApplicable; bool m_notApplicableHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws