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

A gauge chart.

For more information, see Using * gauge charts in the Amazon QuickSight User Guide.

See * Also:

AWS * API Reference

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

The unique identifier of a visual. This identifier must be unique within the * context of a dashboard, template, or analysis. Two dashboards, analyses, or * templates can have visuals with the same identifiers.

*/ inline const Aws::String& GetVisualId() const{ return m_visualId; } /** *

The unique identifier of a visual. This identifier must be unique within the * context of a dashboard, template, or analysis. Two dashboards, analyses, or * templates can have visuals with the same identifiers.

*/ inline bool VisualIdHasBeenSet() const { return m_visualIdHasBeenSet; } /** *

The unique identifier of a visual. This identifier must be unique within the * context of a dashboard, template, or analysis. Two dashboards, analyses, or * templates can have visuals with the same identifiers.

*/ inline void SetVisualId(const Aws::String& value) { m_visualIdHasBeenSet = true; m_visualId = value; } /** *

The unique identifier of a visual. This identifier must be unique within the * context of a dashboard, template, or analysis. Two dashboards, analyses, or * templates can have visuals with the same identifiers.

*/ inline void SetVisualId(Aws::String&& value) { m_visualIdHasBeenSet = true; m_visualId = std::move(value); } /** *

The unique identifier of a visual. This identifier must be unique within the * context of a dashboard, template, or analysis. Two dashboards, analyses, or * templates can have visuals with the same identifiers.

*/ inline void SetVisualId(const char* value) { m_visualIdHasBeenSet = true; m_visualId.assign(value); } /** *

The unique identifier of a visual. This identifier must be unique within the * context of a dashboard, template, or analysis. Two dashboards, analyses, or * templates can have visuals with the same identifiers.

*/ inline GaugeChartVisual& WithVisualId(const Aws::String& value) { SetVisualId(value); return *this;} /** *

The unique identifier of a visual. This identifier must be unique within the * context of a dashboard, template, or analysis. Two dashboards, analyses, or * templates can have visuals with the same identifiers.

*/ inline GaugeChartVisual& WithVisualId(Aws::String&& value) { SetVisualId(std::move(value)); return *this;} /** *

The unique identifier of a visual. This identifier must be unique within the * context of a dashboard, template, or analysis. Two dashboards, analyses, or * templates can have visuals with the same identifiers.

*/ inline GaugeChartVisual& WithVisualId(const char* value) { SetVisualId(value); return *this;} /** *

The title that is displayed on the visual.

*/ inline const VisualTitleLabelOptions& GetTitle() const{ return m_title; } /** *

The title that is displayed on the visual.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

The title that is displayed on the visual.

*/ inline void SetTitle(const VisualTitleLabelOptions& value) { m_titleHasBeenSet = true; m_title = value; } /** *

The title that is displayed on the visual.

*/ inline void SetTitle(VisualTitleLabelOptions&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

The title that is displayed on the visual.

*/ inline GaugeChartVisual& WithTitle(const VisualTitleLabelOptions& value) { SetTitle(value); return *this;} /** *

The title that is displayed on the visual.

*/ inline GaugeChartVisual& WithTitle(VisualTitleLabelOptions&& value) { SetTitle(std::move(value)); return *this;} /** *

The subtitle that is displayed on the visual.

*/ inline const VisualSubtitleLabelOptions& GetSubtitle() const{ return m_subtitle; } /** *

The subtitle that is displayed on the visual.

*/ inline bool SubtitleHasBeenSet() const { return m_subtitleHasBeenSet; } /** *

The subtitle that is displayed on the visual.

*/ inline void SetSubtitle(const VisualSubtitleLabelOptions& value) { m_subtitleHasBeenSet = true; m_subtitle = value; } /** *

The subtitle that is displayed on the visual.

*/ inline void SetSubtitle(VisualSubtitleLabelOptions&& value) { m_subtitleHasBeenSet = true; m_subtitle = std::move(value); } /** *

The subtitle that is displayed on the visual.

*/ inline GaugeChartVisual& WithSubtitle(const VisualSubtitleLabelOptions& value) { SetSubtitle(value); return *this;} /** *

The subtitle that is displayed on the visual.

*/ inline GaugeChartVisual& WithSubtitle(VisualSubtitleLabelOptions&& value) { SetSubtitle(std::move(value)); return *this;} /** *

The configuration of a GaugeChartVisual.

*/ inline const GaugeChartConfiguration& GetChartConfiguration() const{ return m_chartConfiguration; } /** *

The configuration of a GaugeChartVisual.

*/ inline bool ChartConfigurationHasBeenSet() const { return m_chartConfigurationHasBeenSet; } /** *

The configuration of a GaugeChartVisual.

*/ inline void SetChartConfiguration(const GaugeChartConfiguration& value) { m_chartConfigurationHasBeenSet = true; m_chartConfiguration = value; } /** *

The configuration of a GaugeChartVisual.

*/ inline void SetChartConfiguration(GaugeChartConfiguration&& value) { m_chartConfigurationHasBeenSet = true; m_chartConfiguration = std::move(value); } /** *

The configuration of a GaugeChartVisual.

*/ inline GaugeChartVisual& WithChartConfiguration(const GaugeChartConfiguration& value) { SetChartConfiguration(value); return *this;} /** *

The configuration of a GaugeChartVisual.

*/ inline GaugeChartVisual& WithChartConfiguration(GaugeChartConfiguration&& value) { SetChartConfiguration(std::move(value)); return *this;} /** *

The conditional formatting of a GaugeChartVisual.

*/ inline const GaugeChartConditionalFormatting& GetConditionalFormatting() const{ return m_conditionalFormatting; } /** *

The conditional formatting of a GaugeChartVisual.

*/ inline bool ConditionalFormattingHasBeenSet() const { return m_conditionalFormattingHasBeenSet; } /** *

The conditional formatting of a GaugeChartVisual.

*/ inline void SetConditionalFormatting(const GaugeChartConditionalFormatting& value) { m_conditionalFormattingHasBeenSet = true; m_conditionalFormatting = value; } /** *

The conditional formatting of a GaugeChartVisual.

*/ inline void SetConditionalFormatting(GaugeChartConditionalFormatting&& value) { m_conditionalFormattingHasBeenSet = true; m_conditionalFormatting = std::move(value); } /** *

The conditional formatting of a GaugeChartVisual.

*/ inline GaugeChartVisual& WithConditionalFormatting(const GaugeChartConditionalFormatting& value) { SetConditionalFormatting(value); return *this;} /** *

The conditional formatting of a GaugeChartVisual.

*/ inline GaugeChartVisual& WithConditionalFormatting(GaugeChartConditionalFormatting&& value) { SetConditionalFormatting(std::move(value)); return *this;} /** *

The list of custom actions that are configured for a visual.

*/ inline const Aws::Vector& GetActions() const{ return m_actions; } /** *

The list of custom actions that are configured for a visual.

*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *

The list of custom actions that are configured for a visual.

*/ inline void SetActions(const Aws::Vector& value) { m_actionsHasBeenSet = true; m_actions = value; } /** *

The list of custom actions that are configured for a visual.

*/ inline void SetActions(Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } /** *

The list of custom actions that are configured for a visual.

*/ inline GaugeChartVisual& WithActions(const Aws::Vector& value) { SetActions(value); return *this;} /** *

The list of custom actions that are configured for a visual.

*/ inline GaugeChartVisual& WithActions(Aws::Vector&& value) { SetActions(std::move(value)); return *this;} /** *

The list of custom actions that are configured for a visual.

*/ inline GaugeChartVisual& AddActions(const VisualCustomAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } /** *

The list of custom actions that are configured for a visual.

*/ inline GaugeChartVisual& AddActions(VisualCustomAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } private: Aws::String m_visualId; bool m_visualIdHasBeenSet = false; VisualTitleLabelOptions m_title; bool m_titleHasBeenSet = false; VisualSubtitleLabelOptions m_subtitle; bool m_subtitleHasBeenSet = false; GaugeChartConfiguration m_chartConfiguration; bool m_chartConfigurationHasBeenSet = false; GaugeChartConditionalFormatting m_conditionalFormatting; bool m_conditionalFormattingHasBeenSet = false; Aws::Vector m_actions; bool m_actionsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws