/** * 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 metric comparison computation configuration.

See Also:

* AWS * API Reference

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

The ID for a computation.

*/ inline const Aws::String& GetComputationId() const{ return m_computationId; } /** *

The ID for a computation.

*/ inline bool ComputationIdHasBeenSet() const { return m_computationIdHasBeenSet; } /** *

The ID for a computation.

*/ inline void SetComputationId(const Aws::String& value) { m_computationIdHasBeenSet = true; m_computationId = value; } /** *

The ID for a computation.

*/ inline void SetComputationId(Aws::String&& value) { m_computationIdHasBeenSet = true; m_computationId = std::move(value); } /** *

The ID for a computation.

*/ inline void SetComputationId(const char* value) { m_computationIdHasBeenSet = true; m_computationId.assign(value); } /** *

The ID for a computation.

*/ inline MetricComparisonComputation& WithComputationId(const Aws::String& value) { SetComputationId(value); return *this;} /** *

The ID for a computation.

*/ inline MetricComparisonComputation& WithComputationId(Aws::String&& value) { SetComputationId(std::move(value)); return *this;} /** *

The ID for a computation.

*/ inline MetricComparisonComputation& WithComputationId(const char* value) { SetComputationId(value); return *this;} /** *

The name of a computation.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of a computation.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of a computation.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of a computation.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of a computation.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of a computation.

*/ inline MetricComparisonComputation& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of a computation.

*/ inline MetricComparisonComputation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of a computation.

*/ inline MetricComparisonComputation& WithName(const char* value) { SetName(value); return *this;} /** *

The time field that is used in a computation.

*/ inline const DimensionField& GetTime() const{ return m_time; } /** *

The time field that is used in a computation.

*/ inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; } /** *

The time field that is used in a computation.

*/ inline void SetTime(const DimensionField& value) { m_timeHasBeenSet = true; m_time = value; } /** *

The time field that is used in a computation.

*/ inline void SetTime(DimensionField&& value) { m_timeHasBeenSet = true; m_time = std::move(value); } /** *

The time field that is used in a computation.

*/ inline MetricComparisonComputation& WithTime(const DimensionField& value) { SetTime(value); return *this;} /** *

The time field that is used in a computation.

*/ inline MetricComparisonComputation& WithTime(DimensionField&& value) { SetTime(std::move(value)); return *this;} /** *

The field that is used in a metric comparison from value setup.

*/ inline const MeasureField& GetFromValue() const{ return m_fromValue; } /** *

The field that is used in a metric comparison from value setup.

*/ inline bool FromValueHasBeenSet() const { return m_fromValueHasBeenSet; } /** *

The field that is used in a metric comparison from value setup.

*/ inline void SetFromValue(const MeasureField& value) { m_fromValueHasBeenSet = true; m_fromValue = value; } /** *

The field that is used in a metric comparison from value setup.

*/ inline void SetFromValue(MeasureField&& value) { m_fromValueHasBeenSet = true; m_fromValue = std::move(value); } /** *

The field that is used in a metric comparison from value setup.

*/ inline MetricComparisonComputation& WithFromValue(const MeasureField& value) { SetFromValue(value); return *this;} /** *

The field that is used in a metric comparison from value setup.

*/ inline MetricComparisonComputation& WithFromValue(MeasureField&& value) { SetFromValue(std::move(value)); return *this;} /** *

The field that is used in a metric comparison to value setup.

*/ inline const MeasureField& GetTargetValue() const{ return m_targetValue; } /** *

The field that is used in a metric comparison to value setup.

*/ inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; } /** *

The field that is used in a metric comparison to value setup.

*/ inline void SetTargetValue(const MeasureField& value) { m_targetValueHasBeenSet = true; m_targetValue = value; } /** *

The field that is used in a metric comparison to value setup.

*/ inline void SetTargetValue(MeasureField&& value) { m_targetValueHasBeenSet = true; m_targetValue = std::move(value); } /** *

The field that is used in a metric comparison to value setup.

*/ inline MetricComparisonComputation& WithTargetValue(const MeasureField& value) { SetTargetValue(value); return *this;} /** *

The field that is used in a metric comparison to value setup.

*/ inline MetricComparisonComputation& WithTargetValue(MeasureField&& value) { SetTargetValue(std::move(value)); return *this;} private: Aws::String m_computationId; bool m_computationIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; DimensionField m_time; bool m_timeHasBeenSet = false; MeasureField m_fromValue; bool m_fromValueHasBeenSet = false; MeasureField m_targetValue; bool m_targetValueHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws