feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,108 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/iot/IoTRequest.h>
#include <aws/iot/model/LogTarget.h>
#include <aws/iot/model/LogLevel.h>
#include <utility>
namespace Aws
{
namespace IoT
{
namespace Model
{
/**
*/
class AWS_IOT_API SetV2LoggingLevelRequest : public IoTRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The log target.</p>
*/
inline const LogTarget& GetLogTarget() const{ return m_logTarget; }
/**
* <p>The log target.</p>
*/
inline bool LogTargetHasBeenSet() const { return m_logTargetHasBeenSet; }
/**
* <p>The log target.</p>
*/
inline void SetLogTarget(const LogTarget& value) { m_logTargetHasBeenSet = true; m_logTarget = value; }
/**
* <p>The log target.</p>
*/
inline void SetLogTarget(LogTarget&& value) { m_logTargetHasBeenSet = true; m_logTarget = std::move(value); }
/**
* <p>The log target.</p>
*/
inline SetV2LoggingLevelRequest& WithLogTarget(const LogTarget& value) { SetLogTarget(value); return *this;}
/**
* <p>The log target.</p>
*/
inline SetV2LoggingLevelRequest& WithLogTarget(LogTarget&& value) { SetLogTarget(std::move(value)); return *this;}
/**
* <p>The log level.</p>
*/
inline const LogLevel& GetLogLevel() const{ return m_logLevel; }
/**
* <p>The log level.</p>
*/
inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
/**
* <p>The log level.</p>
*/
inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
/**
* <p>The log level.</p>
*/
inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); }
/**
* <p>The log level.</p>
*/
inline SetV2LoggingLevelRequest& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;}
/**
* <p>The log level.</p>
*/
inline SetV2LoggingLevelRequest& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;}
private:
LogTarget m_logTarget;
bool m_logTargetHasBeenSet;
LogLevel m_logLevel;
bool m_logLevelHasBeenSet;
};
} // namespace Model
} // namespace IoT
} // namespace Aws