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

The structure containing configurations related to insights.

See * Also:

AWS * API Reference

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

Set the InsightsEnabled value to true to enable insights or false to disable * insights.

*/ inline bool GetInsightsEnabled() const{ return m_insightsEnabled; } /** *

Set the InsightsEnabled value to true to enable insights or false to disable * insights.

*/ inline bool InsightsEnabledHasBeenSet() const { return m_insightsEnabledHasBeenSet; } /** *

Set the InsightsEnabled value to true to enable insights or false to disable * insights.

*/ inline void SetInsightsEnabled(bool value) { m_insightsEnabledHasBeenSet = true; m_insightsEnabled = value; } /** *

Set the InsightsEnabled value to true to enable insights or false to disable * insights.

*/ inline InsightsConfiguration& WithInsightsEnabled(bool value) { SetInsightsEnabled(value); return *this;} /** *

Set the NotificationsEnabled value to true to enable insights notifications. * Notifications can only be enabled on a group with InsightsEnabled set to * true.

*/ inline bool GetNotificationsEnabled() const{ return m_notificationsEnabled; } /** *

Set the NotificationsEnabled value to true to enable insights notifications. * Notifications can only be enabled on a group with InsightsEnabled set to * true.

*/ inline bool NotificationsEnabledHasBeenSet() const { return m_notificationsEnabledHasBeenSet; } /** *

Set the NotificationsEnabled value to true to enable insights notifications. * Notifications can only be enabled on a group with InsightsEnabled set to * true.

*/ inline void SetNotificationsEnabled(bool value) { m_notificationsEnabledHasBeenSet = true; m_notificationsEnabled = value; } /** *

Set the NotificationsEnabled value to true to enable insights notifications. * Notifications can only be enabled on a group with InsightsEnabled set to * true.

*/ inline InsightsConfiguration& WithNotificationsEnabled(bool value) { SetNotificationsEnabled(value); return *this;} private: bool m_insightsEnabled; bool m_insightsEnabledHasBeenSet = false; bool m_notificationsEnabled; bool m_notificationsEnabledHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws