/** * 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 the information about whether the app monitor * stores copies of the data that RUM collects in CloudWatch Logs. If it does, this * structure also contains the name of the log group.

See Also:

AWS API * Reference

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

Indicated whether the app monitor stores copies of the data that RUM collects * in CloudWatch Logs.

*/ inline bool GetCwLogEnabled() const{ return m_cwLogEnabled; } /** *

Indicated whether the app monitor stores copies of the data that RUM collects * in CloudWatch Logs.

*/ inline bool CwLogEnabledHasBeenSet() const { return m_cwLogEnabledHasBeenSet; } /** *

Indicated whether the app monitor stores copies of the data that RUM collects * in CloudWatch Logs.

*/ inline void SetCwLogEnabled(bool value) { m_cwLogEnabledHasBeenSet = true; m_cwLogEnabled = value; } /** *

Indicated whether the app monitor stores copies of the data that RUM collects * in CloudWatch Logs.

*/ inline CwLog& WithCwLogEnabled(bool value) { SetCwLogEnabled(value); return *this;} /** *

The name of the log group where the copies are stored.

*/ inline const Aws::String& GetCwLogGroup() const{ return m_cwLogGroup; } /** *

The name of the log group where the copies are stored.

*/ inline bool CwLogGroupHasBeenSet() const { return m_cwLogGroupHasBeenSet; } /** *

The name of the log group where the copies are stored.

*/ inline void SetCwLogGroup(const Aws::String& value) { m_cwLogGroupHasBeenSet = true; m_cwLogGroup = value; } /** *

The name of the log group where the copies are stored.

*/ inline void SetCwLogGroup(Aws::String&& value) { m_cwLogGroupHasBeenSet = true; m_cwLogGroup = std::move(value); } /** *

The name of the log group where the copies are stored.

*/ inline void SetCwLogGroup(const char* value) { m_cwLogGroupHasBeenSet = true; m_cwLogGroup.assign(value); } /** *

The name of the log group where the copies are stored.

*/ inline CwLog& WithCwLogGroup(const Aws::String& value) { SetCwLogGroup(value); return *this;} /** *

The name of the log group where the copies are stored.

*/ inline CwLog& WithCwLogGroup(Aws::String&& value) { SetCwLogGroup(std::move(value)); return *this;} /** *

The name of the log group where the copies are stored.

*/ inline CwLog& WithCwLogGroup(const char* value) { SetCwLogGroup(value); return *this;} private: bool m_cwLogEnabled; bool m_cwLogEnabledHasBeenSet = false; Aws::String m_cwLogGroup; bool m_cwLogGroupHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws