/** * 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 LexModelsV2 { namespace Model { /** *

An object specifying the measure and method by which to sort the utterance * data.

See Also:

AWS * API Reference

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

The measure by which to sort the utterance analytics data.

  • * Count – The number of utterances.

  • * UtteranceTimestamp – The date and time of the utterance.

  • *
*/ inline const AnalyticsUtteranceSortByName& GetName() const{ return m_name; } /** *

The measure by which to sort the utterance analytics data.

  • * Count – The number of utterances.

  • * UtteranceTimestamp – The date and time of the utterance.

  • *
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The measure by which to sort the utterance analytics data.

  • * Count – The number of utterances.

  • * UtteranceTimestamp – The date and time of the utterance.

  • *
*/ inline void SetName(const AnalyticsUtteranceSortByName& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The measure by which to sort the utterance analytics data.

  • * Count – The number of utterances.

  • * UtteranceTimestamp – The date and time of the utterance.

  • *
*/ inline void SetName(AnalyticsUtteranceSortByName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The measure by which to sort the utterance analytics data.

  • * Count – The number of utterances.

  • * UtteranceTimestamp – The date and time of the utterance.

  • *
*/ inline UtteranceDataSortBy& WithName(const AnalyticsUtteranceSortByName& value) { SetName(value); return *this;} /** *

The measure by which to sort the utterance analytics data.

  • * Count – The number of utterances.

  • * UtteranceTimestamp – The date and time of the utterance.

  • *
*/ inline UtteranceDataSortBy& WithName(AnalyticsUtteranceSortByName&& value) { SetName(std::move(value)); return *this;} /** *

Specifies whether to sort the results in ascending or descending order.

*/ inline const AnalyticsSortOrder& GetOrder() const{ return m_order; } /** *

Specifies whether to sort the results in ascending or descending order.

*/ inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; } /** *

Specifies whether to sort the results in ascending or descending order.

*/ inline void SetOrder(const AnalyticsSortOrder& value) { m_orderHasBeenSet = true; m_order = value; } /** *

Specifies whether to sort the results in ascending or descending order.

*/ inline void SetOrder(AnalyticsSortOrder&& value) { m_orderHasBeenSet = true; m_order = std::move(value); } /** *

Specifies whether to sort the results in ascending or descending order.

*/ inline UtteranceDataSortBy& WithOrder(const AnalyticsSortOrder& value) { SetOrder(value); return *this;} /** *

Specifies whether to sort the results in ascending or descending order.

*/ inline UtteranceDataSortBy& WithOrder(AnalyticsSortOrder&& value) { SetOrder(std::move(value)); return *this;} private: AnalyticsUtteranceSortByName m_name; bool m_nameHasBeenSet = false; AnalyticsSortOrder m_order; bool m_orderHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws