/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The details for how to sort the data.See Also:
AWS
* API Reference
The key that's used to sort the data.
*/ inline const Aws::String& GetKey() const{ return m_key; } /** *The key that's used to sort the data.
*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *The key that's used to sort the data.
*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *The key that's used to sort the data.
*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *The key that's used to sort the data.
*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *The key that's used to sort the data.
*/ inline SortDefinition& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *The key that's used to sort the data.
*/ inline SortDefinition& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *The key that's used to sort the data.
*/ inline SortDefinition& WithKey(const char* value) { SetKey(value); return *this;} /** *The order that's used to sort the data.
*/ inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } /** *The order that's used to sort the data.
*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *The order that's used to sort the data.
*/ inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *The order that's used to sort the data.
*/ inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *The order that's used to sort the data.
*/ inline SortDefinition& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *The order that's used to sort the data.
*/ inline SortDefinition& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws