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

Determines the custom condition for an icon set.

See Also:

* AWS * API Reference

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

The expression that determines the condition of the icon set.

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

The expression that determines the condition of the icon set.

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

The expression that determines the condition of the icon set.

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

The expression that determines the condition of the icon set.

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

The expression that determines the condition of the icon set.

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

The expression that determines the condition of the icon set.

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

The expression that determines the condition of the icon set.

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

The expression that determines the condition of the icon set.

*/ inline ConditionalFormattingCustomIconCondition& WithExpression(const char* value) { SetExpression(value); return *this;} /** *

Custom icon options for an icon set.

*/ inline const ConditionalFormattingCustomIconOptions& GetIconOptions() const{ return m_iconOptions; } /** *

Custom icon options for an icon set.

*/ inline bool IconOptionsHasBeenSet() const { return m_iconOptionsHasBeenSet; } /** *

Custom icon options for an icon set.

*/ inline void SetIconOptions(const ConditionalFormattingCustomIconOptions& value) { m_iconOptionsHasBeenSet = true; m_iconOptions = value; } /** *

Custom icon options for an icon set.

*/ inline void SetIconOptions(ConditionalFormattingCustomIconOptions&& value) { m_iconOptionsHasBeenSet = true; m_iconOptions = std::move(value); } /** *

Custom icon options for an icon set.

*/ inline ConditionalFormattingCustomIconCondition& WithIconOptions(const ConditionalFormattingCustomIconOptions& value) { SetIconOptions(value); return *this;} /** *

Custom icon options for an icon set.

*/ inline ConditionalFormattingCustomIconCondition& WithIconOptions(ConditionalFormattingCustomIconOptions&& value) { SetIconOptions(std::move(value)); return *this;} /** *

Determines the color of the icon.

*/ inline const Aws::String& GetColor() const{ return m_color; } /** *

Determines the color of the icon.

*/ inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; } /** *

Determines the color of the icon.

*/ inline void SetColor(const Aws::String& value) { m_colorHasBeenSet = true; m_color = value; } /** *

Determines the color of the icon.

*/ inline void SetColor(Aws::String&& value) { m_colorHasBeenSet = true; m_color = std::move(value); } /** *

Determines the color of the icon.

*/ inline void SetColor(const char* value) { m_colorHasBeenSet = true; m_color.assign(value); } /** *

Determines the color of the icon.

*/ inline ConditionalFormattingCustomIconCondition& WithColor(const Aws::String& value) { SetColor(value); return *this;} /** *

Determines the color of the icon.

*/ inline ConditionalFormattingCustomIconCondition& WithColor(Aws::String&& value) { SetColor(std::move(value)); return *this;} /** *

Determines the color of the icon.

*/ inline ConditionalFormattingCustomIconCondition& WithColor(const char* value) { SetColor(value); return *this;} /** *

Determines the icon display configuration.

*/ inline const ConditionalFormattingIconDisplayConfiguration& GetDisplayConfiguration() const{ return m_displayConfiguration; } /** *

Determines the icon display configuration.

*/ inline bool DisplayConfigurationHasBeenSet() const { return m_displayConfigurationHasBeenSet; } /** *

Determines the icon display configuration.

*/ inline void SetDisplayConfiguration(const ConditionalFormattingIconDisplayConfiguration& value) { m_displayConfigurationHasBeenSet = true; m_displayConfiguration = value; } /** *

Determines the icon display configuration.

*/ inline void SetDisplayConfiguration(ConditionalFormattingIconDisplayConfiguration&& value) { m_displayConfigurationHasBeenSet = true; m_displayConfiguration = std::move(value); } /** *

Determines the icon display configuration.

*/ inline ConditionalFormattingCustomIconCondition& WithDisplayConfiguration(const ConditionalFormattingIconDisplayConfiguration& value) { SetDisplayConfiguration(value); return *this;} /** *

Determines the icon display configuration.

*/ inline ConditionalFormattingCustomIconCondition& WithDisplayConfiguration(ConditionalFormattingIconDisplayConfiguration&& value) { SetDisplayConfiguration(std::move(value)); return *this;} private: Aws::String m_expression; bool m_expressionHasBeenSet = false; ConditionalFormattingCustomIconOptions m_iconOptions; bool m_iconOptionsHasBeenSet = false; Aws::String m_color; bool m_colorHasBeenSet = false; ConditionalFormattingIconDisplayConfiguration m_displayConfiguration; bool m_displayConfigurationHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws