/** * 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 scope of the cell for conditional formatting.

See Also:

* AWS * API Reference

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

The role (field, field total, grand total) of the cell for conditional * formatting.

*/ inline const PivotTableConditionalFormattingScopeRole& GetRole() const{ return m_role; } /** *

The role (field, field total, grand total) of the cell for conditional * formatting.

*/ inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; } /** *

The role (field, field total, grand total) of the cell for conditional * formatting.

*/ inline void SetRole(const PivotTableConditionalFormattingScopeRole& value) { m_roleHasBeenSet = true; m_role = value; } /** *

The role (field, field total, grand total) of the cell for conditional * formatting.

*/ inline void SetRole(PivotTableConditionalFormattingScopeRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); } /** *

The role (field, field total, grand total) of the cell for conditional * formatting.

*/ inline PivotTableConditionalFormattingScope& WithRole(const PivotTableConditionalFormattingScopeRole& value) { SetRole(value); return *this;} /** *

The role (field, field total, grand total) of the cell for conditional * formatting.

*/ inline PivotTableConditionalFormattingScope& WithRole(PivotTableConditionalFormattingScopeRole&& value) { SetRole(std::move(value)); return *this;} private: PivotTableConditionalFormattingScopeRole m_role; bool m_roleHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws