/** * 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 SetV2LoggingLevelRequest : public IoTRequest { public: AWS_IOT_API SetV2LoggingLevelRequest(); // 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 "SetV2LoggingLevel"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The log target.

*/ inline const LogTarget& GetLogTarget() const{ return m_logTarget; } /** *

The log target.

*/ inline bool LogTargetHasBeenSet() const { return m_logTargetHasBeenSet; } /** *

The log target.

*/ inline void SetLogTarget(const LogTarget& value) { m_logTargetHasBeenSet = true; m_logTarget = value; } /** *

The log target.

*/ inline void SetLogTarget(LogTarget&& value) { m_logTargetHasBeenSet = true; m_logTarget = std::move(value); } /** *

The log target.

*/ inline SetV2LoggingLevelRequest& WithLogTarget(const LogTarget& value) { SetLogTarget(value); return *this;} /** *

The log target.

*/ inline SetV2LoggingLevelRequest& WithLogTarget(LogTarget&& value) { SetLogTarget(std::move(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 SetV2LoggingLevelRequest& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;} /** *

The log level.

*/ inline SetV2LoggingLevelRequest& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;} private: LogTarget m_logTarget; bool m_logTargetHasBeenSet = false; LogLevel m_logLevel; bool m_logLevelHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws