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

Information about logging options.

See Also:

AWS * API Reference

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

The ARN of the role that grants permission to IoT Analytics to perform * logging.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of the role that grants permission to IoT Analytics to perform * logging.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of the role that grants permission to IoT Analytics to perform * logging.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of the role that grants permission to IoT Analytics to perform * logging.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of the role that grants permission to IoT Analytics to perform * logging.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of the role that grants permission to IoT Analytics to perform * logging.

*/ inline LoggingOptions& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the role that grants permission to IoT Analytics to perform * logging.

*/ inline LoggingOptions& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the role that grants permission to IoT Analytics to perform * logging.

*/ inline LoggingOptions& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The logging level. Currently, only ERROR is supported.

*/ inline const LoggingLevel& GetLevel() const{ return m_level; } /** *

The logging level. Currently, only ERROR is supported.

*/ inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; } /** *

The logging level. Currently, only ERROR is supported.

*/ inline void SetLevel(const LoggingLevel& value) { m_levelHasBeenSet = true; m_level = value; } /** *

The logging level. Currently, only ERROR is supported.

*/ inline void SetLevel(LoggingLevel&& value) { m_levelHasBeenSet = true; m_level = std::move(value); } /** *

The logging level. Currently, only ERROR is supported.

*/ inline LoggingOptions& WithLevel(const LoggingLevel& value) { SetLevel(value); return *this;} /** *

The logging level. Currently, only ERROR is supported.

*/ inline LoggingOptions& WithLevel(LoggingLevel&& value) { SetLevel(std::move(value)); return *this;} /** *

If true, logging is enabled for IoT Analytics.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

If true, logging is enabled for IoT Analytics.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

If true, logging is enabled for IoT Analytics.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

If true, logging is enabled for IoT Analytics.

*/ inline LoggingOptions& WithEnabled(bool value) { SetEnabled(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; LoggingLevel m_level; bool m_levelHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws