/** * 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 IoT { namespace Model { /** *

Describes the logging options payload.

See Also:

AWS * API Reference

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

The ARN of the IAM role that grants access.

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

The ARN of the IAM role that grants access.

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

The ARN of the IAM role that grants access.

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

The ARN of the IAM role that grants access.

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

The ARN of the IAM role that grants access.

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

The ARN of the IAM role that grants access.

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

The ARN of the IAM role that grants access.

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

The ARN of the IAM role that grants access.

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

The log level.

*/ inline const LogLevel& GetLogLevel() const{ return m_logLevel; } /** *

The log level.

*/ inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; } /** *

The log level.

*/ inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; } /** *

The log level.

*/ inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); } /** *

The log level.

*/ inline LoggingOptionsPayload& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;} /** *

The log level.

*/ inline LoggingOptionsPayload& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; LogLevel m_logLevel; bool m_logLevelHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws