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

The values of the AWS IoT Events logging options.

See Also:

* AWS * API Reference

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

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

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

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

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

The ARN of the role that grants permission to AWS IoT Events 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 AWS IoT Events 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 AWS IoT Events 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 AWS IoT Events to perform * logging.

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

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

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

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

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

The logging level.

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

The logging level.

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

The logging level.

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

The logging level.

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

The logging level.

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

The logging level.

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

If TRUE, logging is enabled for AWS IoT Events.

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

If TRUE, logging is enabled for AWS IoT Events.

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

If TRUE, logging is enabled for AWS IoT Events.

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

If TRUE, logging is enabled for AWS IoT Events.

*/ inline LoggingOptions& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

Information that identifies those detector models and their detectors * (instances) for which the logging level is given.

*/ inline const Aws::Vector& GetDetectorDebugOptions() const{ return m_detectorDebugOptions; } /** *

Information that identifies those detector models and their detectors * (instances) for which the logging level is given.

*/ inline bool DetectorDebugOptionsHasBeenSet() const { return m_detectorDebugOptionsHasBeenSet; } /** *

Information that identifies those detector models and their detectors * (instances) for which the logging level is given.

*/ inline void SetDetectorDebugOptions(const Aws::Vector& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions = value; } /** *

Information that identifies those detector models and their detectors * (instances) for which the logging level is given.

*/ inline void SetDetectorDebugOptions(Aws::Vector&& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions = std::move(value); } /** *

Information that identifies those detector models and their detectors * (instances) for which the logging level is given.

*/ inline LoggingOptions& WithDetectorDebugOptions(const Aws::Vector& value) { SetDetectorDebugOptions(value); return *this;} /** *

Information that identifies those detector models and their detectors * (instances) for which the logging level is given.

*/ inline LoggingOptions& WithDetectorDebugOptions(Aws::Vector&& value) { SetDetectorDebugOptions(std::move(value)); return *this;} /** *

Information that identifies those detector models and their detectors * (instances) for which the logging level is given.

*/ inline LoggingOptions& AddDetectorDebugOptions(const DetectorDebugOption& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions.push_back(value); return *this; } /** *

Information that identifies those detector models and their detectors * (instances) for which the logging level is given.

*/ inline LoggingOptions& AddDetectorDebugOptions(DetectorDebugOption&& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions.push_back(std::move(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; Aws::Vector m_detectorDebugOptions; bool m_detectorDebugOptionsHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws