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

Provides information about a single utterance that was made to your bot. *

See Also:

AWS * API Reference

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

The text that was entered by the user or the text representation of an audio * clip.

*/ inline const Aws::String& GetUtteranceString() const{ return m_utteranceString; } /** *

The text that was entered by the user or the text representation of an audio * clip.

*/ inline bool UtteranceStringHasBeenSet() const { return m_utteranceStringHasBeenSet; } /** *

The text that was entered by the user or the text representation of an audio * clip.

*/ inline void SetUtteranceString(const Aws::String& value) { m_utteranceStringHasBeenSet = true; m_utteranceString = value; } /** *

The text that was entered by the user or the text representation of an audio * clip.

*/ inline void SetUtteranceString(Aws::String&& value) { m_utteranceStringHasBeenSet = true; m_utteranceString = std::move(value); } /** *

The text that was entered by the user or the text representation of an audio * clip.

*/ inline void SetUtteranceString(const char* value) { m_utteranceStringHasBeenSet = true; m_utteranceString.assign(value); } /** *

The text that was entered by the user or the text representation of an audio * clip.

*/ inline UtteranceData& WithUtteranceString(const Aws::String& value) { SetUtteranceString(value); return *this;} /** *

The text that was entered by the user or the text representation of an audio * clip.

*/ inline UtteranceData& WithUtteranceString(Aws::String&& value) { SetUtteranceString(std::move(value)); return *this;} /** *

The text that was entered by the user or the text representation of an audio * clip.

*/ inline UtteranceData& WithUtteranceString(const char* value) { SetUtteranceString(value); return *this;} /** *

The number of times that the utterance was processed.

*/ inline int GetCount() const{ return m_count; } /** *

The number of times that the utterance was processed.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The number of times that the utterance was processed.

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *

The number of times that the utterance was processed.

*/ inline UtteranceData& WithCount(int value) { SetCount(value); return *this;} /** *

The total number of individuals that used the utterance.

*/ inline int GetDistinctUsers() const{ return m_distinctUsers; } /** *

The total number of individuals that used the utterance.

*/ inline bool DistinctUsersHasBeenSet() const { return m_distinctUsersHasBeenSet; } /** *

The total number of individuals that used the utterance.

*/ inline void SetDistinctUsers(int value) { m_distinctUsersHasBeenSet = true; m_distinctUsers = value; } /** *

The total number of individuals that used the utterance.

*/ inline UtteranceData& WithDistinctUsers(int value) { SetDistinctUsers(value); return *this;} /** *

The date that the utterance was first recorded.

*/ inline const Aws::Utils::DateTime& GetFirstUtteredDate() const{ return m_firstUtteredDate; } /** *

The date that the utterance was first recorded.

*/ inline bool FirstUtteredDateHasBeenSet() const { return m_firstUtteredDateHasBeenSet; } /** *

The date that the utterance was first recorded.

*/ inline void SetFirstUtteredDate(const Aws::Utils::DateTime& value) { m_firstUtteredDateHasBeenSet = true; m_firstUtteredDate = value; } /** *

The date that the utterance was first recorded.

*/ inline void SetFirstUtteredDate(Aws::Utils::DateTime&& value) { m_firstUtteredDateHasBeenSet = true; m_firstUtteredDate = std::move(value); } /** *

The date that the utterance was first recorded.

*/ inline UtteranceData& WithFirstUtteredDate(const Aws::Utils::DateTime& value) { SetFirstUtteredDate(value); return *this;} /** *

The date that the utterance was first recorded.

*/ inline UtteranceData& WithFirstUtteredDate(Aws::Utils::DateTime&& value) { SetFirstUtteredDate(std::move(value)); return *this;} /** *

The date that the utterance was last recorded.

*/ inline const Aws::Utils::DateTime& GetLastUtteredDate() const{ return m_lastUtteredDate; } /** *

The date that the utterance was last recorded.

*/ inline bool LastUtteredDateHasBeenSet() const { return m_lastUtteredDateHasBeenSet; } /** *

The date that the utterance was last recorded.

*/ inline void SetLastUtteredDate(const Aws::Utils::DateTime& value) { m_lastUtteredDateHasBeenSet = true; m_lastUtteredDate = value; } /** *

The date that the utterance was last recorded.

*/ inline void SetLastUtteredDate(Aws::Utils::DateTime&& value) { m_lastUtteredDateHasBeenSet = true; m_lastUtteredDate = std::move(value); } /** *

The date that the utterance was last recorded.

*/ inline UtteranceData& WithLastUtteredDate(const Aws::Utils::DateTime& value) { SetLastUtteredDate(value); return *this;} /** *

The date that the utterance was last recorded.

*/ inline UtteranceData& WithLastUtteredDate(Aws::Utils::DateTime&& value) { SetLastUtteredDate(std::move(value)); return *this;} private: Aws::String m_utteranceString; bool m_utteranceStringHasBeenSet = false; int m_count; bool m_countHasBeenSet = false; int m_distinctUsers; bool m_distinctUsersHasBeenSet = false; Aws::Utils::DateTime m_firstUtteredDate; bool m_firstUtteredDateHasBeenSet = false; Aws::Utils::DateTime m_lastUtteredDate; bool m_lastUtteredDateHasBeenSet = false; }; } // namespace Model } // namespace LexModelBuildingService } // namespace Aws