/** * 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 session * analytics data.

See Also:

AWS * API Reference

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

The measure by which to sort the session analytics data.

  • * conversationStartTime – The date and time when the conversation * began. A conversation is defined as a unique combination of a * sessionId and an originatingRequestId.

  • *

    numberOfTurns – The number of turns that the session took.

    *
  • conversationDurationSeconds – The duration of the * conversation in seconds.

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

The measure by which to sort the session analytics data.

  • * conversationStartTime – The date and time when the conversation * began. A conversation is defined as a unique combination of a * sessionId and an originatingRequestId.

  • *

    numberOfTurns – The number of turns that the session took.

    *
  • conversationDurationSeconds – The duration of the * conversation in seconds.

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

The measure by which to sort the session analytics data.

  • * conversationStartTime – The date and time when the conversation * began. A conversation is defined as a unique combination of a * sessionId and an originatingRequestId.

  • *

    numberOfTurns – The number of turns that the session took.

    *
  • conversationDurationSeconds – The duration of the * conversation in seconds.

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

The measure by which to sort the session analytics data.

  • * conversationStartTime – The date and time when the conversation * began. A conversation is defined as a unique combination of a * sessionId and an originatingRequestId.

  • *

    numberOfTurns – The number of turns that the session took.

    *
  • conversationDurationSeconds – The duration of the * conversation in seconds.

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

The measure by which to sort the session analytics data.

  • * conversationStartTime – The date and time when the conversation * began. A conversation is defined as a unique combination of a * sessionId and an originatingRequestId.

  • *

    numberOfTurns – The number of turns that the session took.

    *
  • conversationDurationSeconds – The duration of the * conversation in seconds.

*/ inline SessionDataSortBy& WithName(const AnalyticsSessionSortByName& value) { SetName(value); return *this;} /** *

The measure by which to sort the session analytics data.

  • * conversationStartTime – The date and time when the conversation * began. A conversation is defined as a unique combination of a * sessionId and an originatingRequestId.

  • *

    numberOfTurns – The number of turns that the session took.

    *
  • conversationDurationSeconds – The duration of the * conversation in seconds.

*/ inline SessionDataSortBy& WithName(AnalyticsSessionSortByName&& 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 SessionDataSortBy& WithOrder(const AnalyticsSortOrder& value) { SetOrder(value); return *this;} /** *

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

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