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,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
#include <aws/iotsitewise/model/LoggingLevel.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTSiteWise
{
namespace Model
{
/**
* <p>Contains logging options.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/LoggingOptions">AWS
* API Reference</a></p>
*/
class AWS_IOTSITEWISE_API LoggingOptions
{
public:
LoggingOptions();
LoggingOptions(Aws::Utils::Json::JsonView jsonValue);
LoggingOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The AWS IoT SiteWise logging verbosity level.</p>
*/
inline const LoggingLevel& GetLevel() const{ return m_level; }
/**
* <p>The AWS IoT SiteWise logging verbosity level.</p>
*/
inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
/**
* <p>The AWS IoT SiteWise logging verbosity level.</p>
*/
inline void SetLevel(const LoggingLevel& value) { m_levelHasBeenSet = true; m_level = value; }
/**
* <p>The AWS IoT SiteWise logging verbosity level.</p>
*/
inline void SetLevel(LoggingLevel&& value) { m_levelHasBeenSet = true; m_level = std::move(value); }
/**
* <p>The AWS IoT SiteWise logging verbosity level.</p>
*/
inline LoggingOptions& WithLevel(const LoggingLevel& value) { SetLevel(value); return *this;}
/**
* <p>The AWS IoT SiteWise logging verbosity level.</p>
*/
inline LoggingOptions& WithLevel(LoggingLevel&& value) { SetLevel(std::move(value)); return *this;}
private:
LoggingLevel m_level;
bool m_levelHasBeenSet;
};
} // namespace Model
} // namespace IoTSiteWise
} // namespace Aws