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

The table calculation measure field for pivot tables.

See * Also:

AWS * API Reference

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

The custom field ID.

*/ inline const Aws::String& GetFieldId() const{ return m_fieldId; } /** *

The custom field ID.

*/ inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; } /** *

The custom field ID.

*/ inline void SetFieldId(const Aws::String& value) { m_fieldIdHasBeenSet = true; m_fieldId = value; } /** *

The custom field ID.

*/ inline void SetFieldId(Aws::String&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::move(value); } /** *

The custom field ID.

*/ inline void SetFieldId(const char* value) { m_fieldIdHasBeenSet = true; m_fieldId.assign(value); } /** *

The custom field ID.

*/ inline CalculatedMeasureField& WithFieldId(const Aws::String& value) { SetFieldId(value); return *this;} /** *

The custom field ID.

*/ inline CalculatedMeasureField& WithFieldId(Aws::String&& value) { SetFieldId(std::move(value)); return *this;} /** *

The custom field ID.

*/ inline CalculatedMeasureField& WithFieldId(const char* value) { SetFieldId(value); return *this;} /** *

The expression in the table calculation.

*/ inline const Aws::String& GetExpression() const{ return m_expression; } /** *

The expression in the table calculation.

*/ inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } /** *

The expression in the table calculation.

*/ inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } /** *

The expression in the table calculation.

*/ inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } /** *

The expression in the table calculation.

*/ inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } /** *

The expression in the table calculation.

*/ inline CalculatedMeasureField& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} /** *

The expression in the table calculation.

*/ inline CalculatedMeasureField& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} /** *

The expression in the table calculation.

*/ inline CalculatedMeasureField& WithExpression(const char* value) { SetExpression(value); return *this;} private: Aws::String m_fieldId; bool m_fieldIdHasBeenSet = false; Aws::String m_expression; bool m_expressionHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws