/** * 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 { /** *

The maximum and minimum computation configuration.

See Also:

* AWS * API Reference

*/ class MaximumMinimumComputation { public: AWS_QUICKSIGHT_API MaximumMinimumComputation(); AWS_QUICKSIGHT_API MaximumMinimumComputation(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API MaximumMinimumComputation& 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 MaximumMinimumComputation& WithComputationId(const Aws::String& value) { SetComputationId(value); return *this;} /** *

The ID for a computation.

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

The ID for a computation.

*/ inline MaximumMinimumComputation& 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 MaximumMinimumComputation& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of a computation.

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

The name of a computation.

*/ inline MaximumMinimumComputation& 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 MaximumMinimumComputation& WithTime(const DimensionField& value) { SetTime(value); return *this;} /** *

The time field that is used in a computation.

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

The value field that is used in a computation.

*/ inline const MeasureField& GetValue() const{ return m_value; } /** *

The value field that is used in a computation.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value field that is used in a computation.

*/ inline void SetValue(const MeasureField& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value field that is used in a computation.

*/ inline void SetValue(MeasureField&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value field that is used in a computation.

*/ inline MaximumMinimumComputation& WithValue(const MeasureField& value) { SetValue(value); return *this;} /** *

The value field that is used in a computation.

*/ inline MaximumMinimumComputation& WithValue(MeasureField&& value) { SetValue(std::move(value)); return *this;} /** *

The type of computation. Choose one of the following options:

  • *

    MAXIMUM: A maximum computation.

  • MINIMUM: A minimum * computation.

*/ inline const MaximumMinimumComputationType& GetType() const{ return m_type; } /** *

The type of computation. Choose one of the following options:

  • *

    MAXIMUM: A maximum computation.

  • MINIMUM: A minimum * computation.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of computation. Choose one of the following options:

  • *

    MAXIMUM: A maximum computation.

  • MINIMUM: A minimum * computation.

*/ inline void SetType(const MaximumMinimumComputationType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of computation. Choose one of the following options:

  • *

    MAXIMUM: A maximum computation.

  • MINIMUM: A minimum * computation.

*/ inline void SetType(MaximumMinimumComputationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of computation. Choose one of the following options:

  • *

    MAXIMUM: A maximum computation.

  • MINIMUM: A minimum * computation.

*/ inline MaximumMinimumComputation& WithType(const MaximumMinimumComputationType& value) { SetType(value); return *this;} /** *

The type of computation. Choose one of the following options:

  • *

    MAXIMUM: A maximum computation.

  • MINIMUM: A minimum * computation.

*/ inline MaximumMinimumComputation& WithType(MaximumMinimumComputationType&& value) { SetType(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_value; bool m_valueHasBeenSet = false; MaximumMinimumComputationType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws