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

The selected field options for the pivot table field options.

See * Also:

AWS * API Reference

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

The field ID of the pivot table field.

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

The field ID of the pivot table field.

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

The field ID of the pivot table field.

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

The field ID of the pivot table field.

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

The field ID of the pivot table field.

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

The field ID of the pivot table field.

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

The field ID of the pivot table field.

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

The field ID of the pivot table field.

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

The custom label of the pivot table field.

*/ inline const Aws::String& GetCustomLabel() const{ return m_customLabel; } /** *

The custom label of the pivot table field.

*/ inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; } /** *

The custom label of the pivot table field.

*/ inline void SetCustomLabel(const Aws::String& value) { m_customLabelHasBeenSet = true; m_customLabel = value; } /** *

The custom label of the pivot table field.

*/ inline void SetCustomLabel(Aws::String&& value) { m_customLabelHasBeenSet = true; m_customLabel = std::move(value); } /** *

The custom label of the pivot table field.

*/ inline void SetCustomLabel(const char* value) { m_customLabelHasBeenSet = true; m_customLabel.assign(value); } /** *

The custom label of the pivot table field.

*/ inline PivotTableFieldOption& WithCustomLabel(const Aws::String& value) { SetCustomLabel(value); return *this;} /** *

The custom label of the pivot table field.

*/ inline PivotTableFieldOption& WithCustomLabel(Aws::String&& value) { SetCustomLabel(std::move(value)); return *this;} /** *

The custom label of the pivot table field.

*/ inline PivotTableFieldOption& WithCustomLabel(const char* value) { SetCustomLabel(value); return *this;} /** *

The visibility of the pivot table field.

*/ inline const Visibility& GetVisibility() const{ return m_visibility; } /** *

The visibility of the pivot table field.

*/ inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; } /** *

The visibility of the pivot table field.

*/ inline void SetVisibility(const Visibility& value) { m_visibilityHasBeenSet = true; m_visibility = value; } /** *

The visibility of the pivot table field.

*/ inline void SetVisibility(Visibility&& value) { m_visibilityHasBeenSet = true; m_visibility = std::move(value); } /** *

The visibility of the pivot table field.

*/ inline PivotTableFieldOption& WithVisibility(const Visibility& value) { SetVisibility(value); return *this;} /** *

The visibility of the pivot table field.

*/ inline PivotTableFieldOption& WithVisibility(Visibility&& value) { SetVisibility(std::move(value)); return *this;} private: Aws::String m_fieldId; bool m_fieldIdHasBeenSet = false; Aws::String m_customLabel; bool m_customLabelHasBeenSet = false; Visibility m_visibility; bool m_visibilityHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws