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

A custom action defined on a visual.

See Also:

AWS * API Reference

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

The ID of the VisualCustomAction.

*/ inline const Aws::String& GetCustomActionId() const{ return m_customActionId; } /** *

The ID of the VisualCustomAction.

*/ inline bool CustomActionIdHasBeenSet() const { return m_customActionIdHasBeenSet; } /** *

The ID of the VisualCustomAction.

*/ inline void SetCustomActionId(const Aws::String& value) { m_customActionIdHasBeenSet = true; m_customActionId = value; } /** *

The ID of the VisualCustomAction.

*/ inline void SetCustomActionId(Aws::String&& value) { m_customActionIdHasBeenSet = true; m_customActionId = std::move(value); } /** *

The ID of the VisualCustomAction.

*/ inline void SetCustomActionId(const char* value) { m_customActionIdHasBeenSet = true; m_customActionId.assign(value); } /** *

The ID of the VisualCustomAction.

*/ inline VisualCustomAction& WithCustomActionId(const Aws::String& value) { SetCustomActionId(value); return *this;} /** *

The ID of the VisualCustomAction.

*/ inline VisualCustomAction& WithCustomActionId(Aws::String&& value) { SetCustomActionId(std::move(value)); return *this;} /** *

The ID of the VisualCustomAction.

*/ inline VisualCustomAction& WithCustomActionId(const char* value) { SetCustomActionId(value); return *this;} /** *

The name of the VisualCustomAction.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the VisualCustomAction.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the VisualCustomAction.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the VisualCustomAction.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the VisualCustomAction.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the VisualCustomAction.

*/ inline VisualCustomAction& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the VisualCustomAction.

*/ inline VisualCustomAction& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the VisualCustomAction.

*/ inline VisualCustomAction& WithName(const char* value) { SetName(value); return *this;} /** *

The status of the VisualCustomAction.

*/ inline const WidgetStatus& GetStatus() const{ return m_status; } /** *

The status of the VisualCustomAction.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the VisualCustomAction.

*/ inline void SetStatus(const WidgetStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the VisualCustomAction.

*/ inline void SetStatus(WidgetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the VisualCustomAction.

*/ inline VisualCustomAction& WithStatus(const WidgetStatus& value) { SetStatus(value); return *this;} /** *

The status of the VisualCustomAction.

*/ inline VisualCustomAction& WithStatus(WidgetStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The trigger of the VisualCustomAction.

Valid values are * defined as follows:

  • DATA_POINT_CLICK: Initiates a * custom action by a left pointer click on a data point.

  • * DATA_POINT_MENU: Initiates a custom action by right pointer click * from the menu.

*/ inline const VisualCustomActionTrigger& GetTrigger() const{ return m_trigger; } /** *

The trigger of the VisualCustomAction.

Valid values are * defined as follows:

  • DATA_POINT_CLICK: Initiates a * custom action by a left pointer click on a data point.

  • * DATA_POINT_MENU: Initiates a custom action by right pointer click * from the menu.

*/ inline bool TriggerHasBeenSet() const { return m_triggerHasBeenSet; } /** *

The trigger of the VisualCustomAction.

Valid values are * defined as follows:

  • DATA_POINT_CLICK: Initiates a * custom action by a left pointer click on a data point.

  • * DATA_POINT_MENU: Initiates a custom action by right pointer click * from the menu.

*/ inline void SetTrigger(const VisualCustomActionTrigger& value) { m_triggerHasBeenSet = true; m_trigger = value; } /** *

The trigger of the VisualCustomAction.

Valid values are * defined as follows:

  • DATA_POINT_CLICK: Initiates a * custom action by a left pointer click on a data point.

  • * DATA_POINT_MENU: Initiates a custom action by right pointer click * from the menu.

*/ inline void SetTrigger(VisualCustomActionTrigger&& value) { m_triggerHasBeenSet = true; m_trigger = std::move(value); } /** *

The trigger of the VisualCustomAction.

Valid values are * defined as follows:

  • DATA_POINT_CLICK: Initiates a * custom action by a left pointer click on a data point.

  • * DATA_POINT_MENU: Initiates a custom action by right pointer click * from the menu.

*/ inline VisualCustomAction& WithTrigger(const VisualCustomActionTrigger& value) { SetTrigger(value); return *this;} /** *

The trigger of the VisualCustomAction.

Valid values are * defined as follows:

  • DATA_POINT_CLICK: Initiates a * custom action by a left pointer click on a data point.

  • * DATA_POINT_MENU: Initiates a custom action by right pointer click * from the menu.

*/ inline VisualCustomAction& WithTrigger(VisualCustomActionTrigger&& value) { SetTrigger(std::move(value)); return *this;} /** *

A list of VisualCustomActionOperations.

This is a union * type structure. For this structure to be valid, only one of the attributes can * be defined.

*/ inline const Aws::Vector& GetActionOperations() const{ return m_actionOperations; } /** *

A list of VisualCustomActionOperations.

This is a union * type structure. For this structure to be valid, only one of the attributes can * be defined.

*/ inline bool ActionOperationsHasBeenSet() const { return m_actionOperationsHasBeenSet; } /** *

A list of VisualCustomActionOperations.

This is a union * type structure. For this structure to be valid, only one of the attributes can * be defined.

*/ inline void SetActionOperations(const Aws::Vector& value) { m_actionOperationsHasBeenSet = true; m_actionOperations = value; } /** *

A list of VisualCustomActionOperations.

This is a union * type structure. For this structure to be valid, only one of the attributes can * be defined.

*/ inline void SetActionOperations(Aws::Vector&& value) { m_actionOperationsHasBeenSet = true; m_actionOperations = std::move(value); } /** *

A list of VisualCustomActionOperations.

This is a union * type structure. For this structure to be valid, only one of the attributes can * be defined.

*/ inline VisualCustomAction& WithActionOperations(const Aws::Vector& value) { SetActionOperations(value); return *this;} /** *

A list of VisualCustomActionOperations.

This is a union * type structure. For this structure to be valid, only one of the attributes can * be defined.

*/ inline VisualCustomAction& WithActionOperations(Aws::Vector&& value) { SetActionOperations(std::move(value)); return *this;} /** *

A list of VisualCustomActionOperations.

This is a union * type structure. For this structure to be valid, only one of the attributes can * be defined.

*/ inline VisualCustomAction& AddActionOperations(const VisualCustomActionOperation& value) { m_actionOperationsHasBeenSet = true; m_actionOperations.push_back(value); return *this; } /** *

A list of VisualCustomActionOperations.

This is a union * type structure. For this structure to be valid, only one of the attributes can * be defined.

*/ inline VisualCustomAction& AddActionOperations(VisualCustomActionOperation&& value) { m_actionOperationsHasBeenSet = true; m_actionOperations.push_back(std::move(value)); return *this; } private: Aws::String m_customActionId; bool m_customActionIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; WidgetStatus m_status; bool m_statusHasBeenSet = false; VisualCustomActionTrigger m_trigger; bool m_triggerHasBeenSet = false; Aws::Vector m_actionOperations; bool m_actionOperationsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws