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

The output from the GetLoggingOptions operation.

See Also:

* AWS * API Reference

*/ class AWS_IOT_API GetLoggingOptionsResult { public: GetLoggingOptionsResult(); GetLoggingOptionsResult(const Aws::AmazonWebServiceResult& result); GetLoggingOptionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetRoleArn(const Aws::String& value) { m_roleArn = value; } /** *

The ARN of the IAM role that grants access.

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

The ARN of the IAM role that grants access.

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

The ARN of the IAM role that grants access.

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

The ARN of the IAM role that grants access.

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

The ARN of the IAM role that grants access.

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

The logging level.

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

The logging level.

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

The logging level.

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

The logging level.

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

The logging level.

*/ inline GetLoggingOptionsResult& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;} private: Aws::String m_roleArn; LogLevel m_logLevel; }; } // namespace Model } // namespace IoT } // namespace Aws