/** * 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 { class GetV2LoggingOptionsResult { public: AWS_IOT_API GetV2LoggingOptionsResult(); AWS_IOT_API GetV2LoggingOptionsResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API GetV2LoggingOptionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The IAM role ARN IoT uses to write to your CloudWatch logs.

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

The IAM role ARN IoT uses to write to your CloudWatch logs.

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

The IAM role ARN IoT uses to write to your CloudWatch logs.

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

The IAM role ARN IoT uses to write to your CloudWatch logs.

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

The IAM role ARN IoT uses to write to your CloudWatch logs.

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

The IAM role ARN IoT uses to write to your CloudWatch logs.

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

The IAM role ARN IoT uses to write to your CloudWatch logs.

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

The default log level.

*/ inline const LogLevel& GetDefaultLogLevel() const{ return m_defaultLogLevel; } /** *

The default log level.

*/ inline void SetDefaultLogLevel(const LogLevel& value) { m_defaultLogLevel = value; } /** *

The default log level.

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

The default log level.

*/ inline GetV2LoggingOptionsResult& WithDefaultLogLevel(const LogLevel& value) { SetDefaultLogLevel(value); return *this;} /** *

The default log level.

*/ inline GetV2LoggingOptionsResult& WithDefaultLogLevel(LogLevel&& value) { SetDefaultLogLevel(std::move(value)); return *this;} /** *

Disables all logs.

*/ inline bool GetDisableAllLogs() const{ return m_disableAllLogs; } /** *

Disables all logs.

*/ inline void SetDisableAllLogs(bool value) { m_disableAllLogs = value; } /** *

Disables all logs.

*/ inline GetV2LoggingOptionsResult& WithDisableAllLogs(bool value) { SetDisableAllLogs(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetV2LoggingOptionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetV2LoggingOptionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetV2LoggingOptionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_roleArn; LogLevel m_defaultLogLevel; bool m_disableAllLogs; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws