/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace IoT { namespace Model { /** */ class SetV2LoggingOptionsRequest : public IoTRequest { public: AWS_IOT_API SetV2LoggingOptionsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SetV2LoggingOptions"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The ARN of the role that allows IoT to write to Cloudwatch logs.

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

The ARN of the role that allows IoT to write to Cloudwatch logs.

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

The ARN of the role that allows IoT to write to Cloudwatch logs.

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

The ARN of the role that allows IoT to write to Cloudwatch logs.

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

The ARN of the role that allows IoT to write to Cloudwatch logs.

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

The ARN of the role that allows IoT to write to Cloudwatch logs.

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

The ARN of the role that allows IoT to write to Cloudwatch logs.

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

The ARN of the role that allows IoT to write to Cloudwatch logs.

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

The default logging level.

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

The default logging level.

*/ inline bool DefaultLogLevelHasBeenSet() const { return m_defaultLogLevelHasBeenSet; } /** *

The default logging level.

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

The default logging level.

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

The default logging level.

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

The default logging level.

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

If true all logs are disabled. The default is false.

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

If true all logs are disabled. The default is false.

*/ inline bool DisableAllLogsHasBeenSet() const { return m_disableAllLogsHasBeenSet; } /** *

If true all logs are disabled. The default is false.

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

If true all logs are disabled. The default is false.

*/ inline SetV2LoggingOptionsRequest& WithDisableAllLogs(bool value) { SetDisableAllLogs(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; LogLevel m_defaultLogLevel; bool m_defaultLogLevelHasBeenSet = false; bool m_disableAllLogs; bool m_disableAllLogsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws