/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Redshift { namespace Model { /** *

Describes a sorting entity

See Also:

AWS * API Reference

*/ class SnapshotSortingEntity { public: AWS_REDSHIFT_API SnapshotSortingEntity(); AWS_REDSHIFT_API SnapshotSortingEntity(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API SnapshotSortingEntity& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

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