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

The way to sort the resulting response based on metrics. By default resources * are sorted based on AGENTS_ONLINE, DESCENDING. The * metric collection is sorted based on the input metrics.

See Also:

* AWS * API Reference

*/ class CurrentMetricSortCriteria { public: AWS_CONNECT_API CurrentMetricSortCriteria(); AWS_CONNECT_API CurrentMetricSortCriteria(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API CurrentMetricSortCriteria& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; inline const CurrentMetricName& GetSortByMetric() const{ return m_sortByMetric; } inline bool SortByMetricHasBeenSet() const { return m_sortByMetricHasBeenSet; } inline void SetSortByMetric(const CurrentMetricName& value) { m_sortByMetricHasBeenSet = true; m_sortByMetric = value; } inline void SetSortByMetric(CurrentMetricName&& value) { m_sortByMetricHasBeenSet = true; m_sortByMetric = std::move(value); } inline CurrentMetricSortCriteria& WithSortByMetric(const CurrentMetricName& value) { SetSortByMetric(value); return *this;} inline CurrentMetricSortCriteria& WithSortByMetric(CurrentMetricName&& value) { SetSortByMetric(std::move(value)); return *this;} /** *

The way to sort.

*/ inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } /** *

The way to sort.

*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *

The way to sort.

*/ inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

The way to sort.

*/ inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *

The way to sort.

*/ inline CurrentMetricSortCriteria& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *

The way to sort.

*/ inline CurrentMetricSortCriteria& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: CurrentMetricName m_sortByMetric; bool m_sortByMetricHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws