/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a sorting entitySee Also:
AWS
* API Reference
The category for sorting the snapshots.
*/ inline const SnapshotAttributeToSortBy& GetAttribute() const{ return m_attribute; } /** *The category for sorting the snapshots.
*/ inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } /** *The category for sorting the snapshots.
*/ inline void SetAttribute(const SnapshotAttributeToSortBy& value) { m_attributeHasBeenSet = true; m_attribute = value; } /** *The category for sorting the snapshots.
*/ inline void SetAttribute(SnapshotAttributeToSortBy&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } /** *The category for sorting the snapshots.
*/ inline SnapshotSortingEntity& WithAttribute(const SnapshotAttributeToSortBy& value) { SetAttribute(value); return *this;} /** *The category for sorting the snapshots.
*/ inline SnapshotSortingEntity& WithAttribute(SnapshotAttributeToSortBy&& value) { SetAttribute(std::move(value)); return *this;} /** *The order for listing the attributes.
*/ inline const SortByOrder& GetSortOrder() const{ return m_sortOrder; } /** *The order for listing the attributes.
*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *The order for listing the attributes.
*/ inline void SetSortOrder(const SortByOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *The order for listing the attributes.
*/ inline void SetSortOrder(SortByOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *The order for listing the attributes.
*/ inline SnapshotSortingEntity& WithSortOrder(const SortByOrder& value) { SetSortOrder(value); return *this;} /** *The order for listing the attributes.
*/ inline SnapshotSortingEntity& WithSortOrder(SortByOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: SnapshotAttributeToSortBy m_attribute; bool m_attributeHasBeenSet = false; SortByOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws