/** * 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 calculated field of an analysis.

See Also:

AWS * API Reference

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

The data set that is used in this calculated field.

*/ inline const Aws::String& GetDataSetIdentifier() const{ return m_dataSetIdentifier; } /** *

The data set that is used in this calculated field.

*/ inline bool DataSetIdentifierHasBeenSet() const { return m_dataSetIdentifierHasBeenSet; } /** *

The data set that is used in this calculated field.

*/ inline void SetDataSetIdentifier(const Aws::String& value) { m_dataSetIdentifierHasBeenSet = true; m_dataSetIdentifier = value; } /** *

The data set that is used in this calculated field.

*/ inline void SetDataSetIdentifier(Aws::String&& value) { m_dataSetIdentifierHasBeenSet = true; m_dataSetIdentifier = std::move(value); } /** *

The data set that is used in this calculated field.

*/ inline void SetDataSetIdentifier(const char* value) { m_dataSetIdentifierHasBeenSet = true; m_dataSetIdentifier.assign(value); } /** *

The data set that is used in this calculated field.

*/ inline CalculatedField& WithDataSetIdentifier(const Aws::String& value) { SetDataSetIdentifier(value); return *this;} /** *

The data set that is used in this calculated field.

*/ inline CalculatedField& WithDataSetIdentifier(Aws::String&& value) { SetDataSetIdentifier(std::move(value)); return *this;} /** *

The data set that is used in this calculated field.

*/ inline CalculatedField& WithDataSetIdentifier(const char* value) { SetDataSetIdentifier(value); return *this;} /** *

The name of the calculated field.

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

The name of the calculated field.

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

The name of the calculated field.

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

The name of the calculated field.

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

The name of the calculated field.

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

The name of the calculated field.

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

The name of the calculated field.

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

The name of the calculated field.

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

The expression of the calculated field.

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

The expression of the calculated field.

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

The expression of the calculated field.

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

The expression of the calculated field.

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

The expression of the calculated field.

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

The expression of the calculated field.

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

The expression of the calculated field.

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

The expression of the calculated field.

*/ inline CalculatedField& WithExpression(const char* value) { SetExpression(value); return *this;} private: Aws::String m_dataSetIdentifier; bool m_dataSetIdentifierHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_expression; bool m_expressionHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws