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

A structure that represents a comparative order.

See Also:

* AWS * API Reference

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

The ordering type for a column. Valid values for this structure are * GREATER_IS_BETTER, LESSER_IS_BETTER and * SPECIFIED.

*/ inline const ColumnOrderingType& GetUseOrdering() const{ return m_useOrdering; } /** *

The ordering type for a column. Valid values for this structure are * GREATER_IS_BETTER, LESSER_IS_BETTER and * SPECIFIED.

*/ inline bool UseOrderingHasBeenSet() const { return m_useOrderingHasBeenSet; } /** *

The ordering type for a column. Valid values for this structure are * GREATER_IS_BETTER, LESSER_IS_BETTER and * SPECIFIED.

*/ inline void SetUseOrdering(const ColumnOrderingType& value) { m_useOrderingHasBeenSet = true; m_useOrdering = value; } /** *

The ordering type for a column. Valid values for this structure are * GREATER_IS_BETTER, LESSER_IS_BETTER and * SPECIFIED.

*/ inline void SetUseOrdering(ColumnOrderingType&& value) { m_useOrderingHasBeenSet = true; m_useOrdering = std::move(value); } /** *

The ordering type for a column. Valid values for this structure are * GREATER_IS_BETTER, LESSER_IS_BETTER and * SPECIFIED.

*/ inline ComparativeOrder& WithUseOrdering(const ColumnOrderingType& value) { SetUseOrdering(value); return *this;} /** *

The ordering type for a column. Valid values for this structure are * GREATER_IS_BETTER, LESSER_IS_BETTER and * SPECIFIED.

*/ inline ComparativeOrder& WithUseOrdering(ColumnOrderingType&& value) { SetUseOrdering(std::move(value)); return *this;} /** *

The list of columns to be used in the ordering.

*/ inline const Aws::Vector& GetSpecifedOrder() const{ return m_specifedOrder; } /** *

The list of columns to be used in the ordering.

*/ inline bool SpecifedOrderHasBeenSet() const { return m_specifedOrderHasBeenSet; } /** *

The list of columns to be used in the ordering.

*/ inline void SetSpecifedOrder(const Aws::Vector& value) { m_specifedOrderHasBeenSet = true; m_specifedOrder = value; } /** *

The list of columns to be used in the ordering.

*/ inline void SetSpecifedOrder(Aws::Vector&& value) { m_specifedOrderHasBeenSet = true; m_specifedOrder = std::move(value); } /** *

The list of columns to be used in the ordering.

*/ inline ComparativeOrder& WithSpecifedOrder(const Aws::Vector& value) { SetSpecifedOrder(value); return *this;} /** *

The list of columns to be used in the ordering.

*/ inline ComparativeOrder& WithSpecifedOrder(Aws::Vector&& value) { SetSpecifedOrder(std::move(value)); return *this;} /** *

The list of columns to be used in the ordering.

*/ inline ComparativeOrder& AddSpecifedOrder(const Aws::String& value) { m_specifedOrderHasBeenSet = true; m_specifedOrder.push_back(value); return *this; } /** *

The list of columns to be used in the ordering.

*/ inline ComparativeOrder& AddSpecifedOrder(Aws::String&& value) { m_specifedOrderHasBeenSet = true; m_specifedOrder.push_back(std::move(value)); return *this; } /** *

The list of columns to be used in the ordering.

*/ inline ComparativeOrder& AddSpecifedOrder(const char* value) { m_specifedOrderHasBeenSet = true; m_specifedOrder.push_back(value); return *this; } /** *

The treat of undefined specified values. Valid values for this structure are * LEAST and MOST.

*/ inline const UndefinedSpecifiedValueType& GetTreatUndefinedSpecifiedValues() const{ return m_treatUndefinedSpecifiedValues; } /** *

The treat of undefined specified values. Valid values for this structure are * LEAST and MOST.

*/ inline bool TreatUndefinedSpecifiedValuesHasBeenSet() const { return m_treatUndefinedSpecifiedValuesHasBeenSet; } /** *

The treat of undefined specified values. Valid values for this structure are * LEAST and MOST.

*/ inline void SetTreatUndefinedSpecifiedValues(const UndefinedSpecifiedValueType& value) { m_treatUndefinedSpecifiedValuesHasBeenSet = true; m_treatUndefinedSpecifiedValues = value; } /** *

The treat of undefined specified values. Valid values for this structure are * LEAST and MOST.

*/ inline void SetTreatUndefinedSpecifiedValues(UndefinedSpecifiedValueType&& value) { m_treatUndefinedSpecifiedValuesHasBeenSet = true; m_treatUndefinedSpecifiedValues = std::move(value); } /** *

The treat of undefined specified values. Valid values for this structure are * LEAST and MOST.

*/ inline ComparativeOrder& WithTreatUndefinedSpecifiedValues(const UndefinedSpecifiedValueType& value) { SetTreatUndefinedSpecifiedValues(value); return *this;} /** *

The treat of undefined specified values. Valid values for this structure are * LEAST and MOST.

*/ inline ComparativeOrder& WithTreatUndefinedSpecifiedValues(UndefinedSpecifiedValueType&& value) { SetTreatUndefinedSpecifiedValues(std::move(value)); return *this;} private: ColumnOrderingType m_useOrdering; bool m_useOrderingHasBeenSet = false; Aws::Vector m_specifedOrder; bool m_specifedOrderHasBeenSet = false; UndefinedSpecifiedValueType m_treatUndefinedSpecifiedValues; bool m_treatUndefinedSpecifiedValuesHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws