/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** *

The sort configuration of a sankey diagram.

See Also:

AWS * API Reference

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

The sort configuration of the weight fields.

*/ inline const Aws::Vector& GetWeightSort() const{ return m_weightSort; } /** *

The sort configuration of the weight fields.

*/ inline bool WeightSortHasBeenSet() const { return m_weightSortHasBeenSet; } /** *

The sort configuration of the weight fields.

*/ inline void SetWeightSort(const Aws::Vector& value) { m_weightSortHasBeenSet = true; m_weightSort = value; } /** *

The sort configuration of the weight fields.

*/ inline void SetWeightSort(Aws::Vector&& value) { m_weightSortHasBeenSet = true; m_weightSort = std::move(value); } /** *

The sort configuration of the weight fields.

*/ inline SankeyDiagramSortConfiguration& WithWeightSort(const Aws::Vector& value) { SetWeightSort(value); return *this;} /** *

The sort configuration of the weight fields.

*/ inline SankeyDiagramSortConfiguration& WithWeightSort(Aws::Vector&& value) { SetWeightSort(std::move(value)); return *this;} /** *

The sort configuration of the weight fields.

*/ inline SankeyDiagramSortConfiguration& AddWeightSort(const FieldSortOptions& value) { m_weightSortHasBeenSet = true; m_weightSort.push_back(value); return *this; } /** *

The sort configuration of the weight fields.

*/ inline SankeyDiagramSortConfiguration& AddWeightSort(FieldSortOptions&& value) { m_weightSortHasBeenSet = true; m_weightSort.push_back(std::move(value)); return *this; } /** *

The limit on the number of source nodes that are displayed in a sankey * diagram.

*/ inline const ItemsLimitConfiguration& GetSourceItemsLimit() const{ return m_sourceItemsLimit; } /** *

The limit on the number of source nodes that are displayed in a sankey * diagram.

*/ inline bool SourceItemsLimitHasBeenSet() const { return m_sourceItemsLimitHasBeenSet; } /** *

The limit on the number of source nodes that are displayed in a sankey * diagram.

*/ inline void SetSourceItemsLimit(const ItemsLimitConfiguration& value) { m_sourceItemsLimitHasBeenSet = true; m_sourceItemsLimit = value; } /** *

The limit on the number of source nodes that are displayed in a sankey * diagram.

*/ inline void SetSourceItemsLimit(ItemsLimitConfiguration&& value) { m_sourceItemsLimitHasBeenSet = true; m_sourceItemsLimit = std::move(value); } /** *

The limit on the number of source nodes that are displayed in a sankey * diagram.

*/ inline SankeyDiagramSortConfiguration& WithSourceItemsLimit(const ItemsLimitConfiguration& value) { SetSourceItemsLimit(value); return *this;} /** *

The limit on the number of source nodes that are displayed in a sankey * diagram.

*/ inline SankeyDiagramSortConfiguration& WithSourceItemsLimit(ItemsLimitConfiguration&& value) { SetSourceItemsLimit(std::move(value)); return *this;} /** *

The limit on the number of destination nodes that are displayed in a sankey * diagram.

*/ inline const ItemsLimitConfiguration& GetDestinationItemsLimit() const{ return m_destinationItemsLimit; } /** *

The limit on the number of destination nodes that are displayed in a sankey * diagram.

*/ inline bool DestinationItemsLimitHasBeenSet() const { return m_destinationItemsLimitHasBeenSet; } /** *

The limit on the number of destination nodes that are displayed in a sankey * diagram.

*/ inline void SetDestinationItemsLimit(const ItemsLimitConfiguration& value) { m_destinationItemsLimitHasBeenSet = true; m_destinationItemsLimit = value; } /** *

The limit on the number of destination nodes that are displayed in a sankey * diagram.

*/ inline void SetDestinationItemsLimit(ItemsLimitConfiguration&& value) { m_destinationItemsLimitHasBeenSet = true; m_destinationItemsLimit = std::move(value); } /** *

The limit on the number of destination nodes that are displayed in a sankey * diagram.

*/ inline SankeyDiagramSortConfiguration& WithDestinationItemsLimit(const ItemsLimitConfiguration& value) { SetDestinationItemsLimit(value); return *this;} /** *

The limit on the number of destination nodes that are displayed in a sankey * diagram.

*/ inline SankeyDiagramSortConfiguration& WithDestinationItemsLimit(ItemsLimitConfiguration&& value) { SetDestinationItemsLimit(std::move(value)); return *this;} private: Aws::Vector m_weightSort; bool m_weightSortHasBeenSet = false; ItemsLimitConfiguration m_sourceItemsLimit; bool m_sourceItemsLimitHasBeenSet = false; ItemsLimitConfiguration m_destinationItemsLimit; bool m_destinationItemsLimitHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws