/** * 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 { /** *

Contains information about the method by which to sort the instances of test * executions you have carried out.

See Also:

AWS * API Reference

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

Specifies whether to sort the test set executions by the date and time at * which the test sets were created.

*/ inline const TestExecutionSortAttribute& GetAttribute() const{ return m_attribute; } /** *

Specifies whether to sort the test set executions by the date and time at * which the test sets were created.

*/ inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } /** *

Specifies whether to sort the test set executions by the date and time at * which the test sets were created.

*/ inline void SetAttribute(const TestExecutionSortAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } /** *

Specifies whether to sort the test set executions by the date and time at * which the test sets were created.

*/ inline void SetAttribute(TestExecutionSortAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } /** *

Specifies whether to sort the test set executions by the date and time at * which the test sets were created.

*/ inline TestExecutionSortBy& WithAttribute(const TestExecutionSortAttribute& value) { SetAttribute(value); return *this;} /** *

Specifies whether to sort the test set executions by the date and time at * which the test sets were created.

*/ inline TestExecutionSortBy& WithAttribute(TestExecutionSortAttribute&& value) { SetAttribute(std::move(value)); return *this;} /** *

Specifies whether to sort in ascending or descending order.

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

Specifies whether to sort in ascending or descending order.

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

Specifies whether to sort in ascending or descending order.

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

Specifies whether to sort in ascending or descending order.

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

Specifies whether to sort in ascending or descending order.

*/ inline TestExecutionSortBy& WithOrder(const SortOrder& value) { SetOrder(value); return *this;} /** *

Specifies whether to sort in ascending or descending order.

*/ inline TestExecutionSortBy& WithOrder(SortOrder&& value) { SetOrder(std::move(value)); return *this;} private: TestExecutionSortAttribute m_attribute; bool m_attributeHasBeenSet = false; SortOrder m_order; bool m_orderHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws