/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** *

An insight visual.

For more information, see Working * with insights in the Amazon QuickSight User Guide.

See * Also:

AWS * API Reference

*/ class InsightVisual { public: AWS_QUICKSIGHT_API InsightVisual(); AWS_QUICKSIGHT_API InsightVisual(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API InsightVisual& 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 InsightVisual& 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 InsightVisual& 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 InsightVisual& 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 InsightVisual& WithTitle(const VisualTitleLabelOptions& value) { SetTitle(value); return *this;} /** *

The title that is displayed on the visual.

*/ inline InsightVisual& 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 InsightVisual& WithSubtitle(const VisualSubtitleLabelOptions& value) { SetSubtitle(value); return *this;} /** *

The subtitle that is displayed on the visual.

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

The configuration of an insight visual.

*/ inline const InsightConfiguration& GetInsightConfiguration() const{ return m_insightConfiguration; } /** *

The configuration of an insight visual.

*/ inline bool InsightConfigurationHasBeenSet() const { return m_insightConfigurationHasBeenSet; } /** *

The configuration of an insight visual.

*/ inline void SetInsightConfiguration(const InsightConfiguration& value) { m_insightConfigurationHasBeenSet = true; m_insightConfiguration = value; } /** *

The configuration of an insight visual.

*/ inline void SetInsightConfiguration(InsightConfiguration&& value) { m_insightConfigurationHasBeenSet = true; m_insightConfiguration = std::move(value); } /** *

The configuration of an insight visual.

*/ inline InsightVisual& WithInsightConfiguration(const InsightConfiguration& value) { SetInsightConfiguration(value); return *this;} /** *

The configuration of an insight visual.

*/ inline InsightVisual& WithInsightConfiguration(InsightConfiguration&& value) { SetInsightConfiguration(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 InsightVisual& WithActions(const Aws::Vector& value) { SetActions(value); return *this;} /** *

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

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

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

*/ inline InsightVisual& 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 InsightVisual& AddActions(VisualCustomAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } /** *

The dataset that is used in the insight visual.

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

The dataset that is used in the insight visual.

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

The dataset that is used in the insight visual.

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

The dataset that is used in the insight visual.

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

The dataset that is used in the insight visual.

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

The dataset that is used in the insight visual.

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

The dataset that is used in the insight visual.

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

The dataset that is used in the insight visual.

*/ inline InsightVisual& WithDataSetIdentifier(const char* value) { SetDataSetIdentifier(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; InsightConfiguration m_insightConfiguration; bool m_insightConfigurationHasBeenSet = false; Aws::Vector m_actions; bool m_actionsHasBeenSet = false; Aws::String m_dataSetIdentifier; bool m_dataSetIdentifierHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws