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

A structure that contains information about custom events for this app * monitor.

See Also:

AWS * API Reference

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

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

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

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

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

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

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

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

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

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

*/ inline CustomEvents& WithStatus(const CustomEventsStatus& value) { SetStatus(value); return *this;} /** *

Specifies whether this app monitor allows the web client to define and send * custom events. The default is for custom events to be DISABLED.

*/ inline CustomEvents& WithStatus(CustomEventsStatus&& value) { SetStatus(std::move(value)); return *this;} private: CustomEventsStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws