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,123 @@
/**
* 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/model/LogTargetType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT
{
namespace Model
{
/**
* <p>A log target.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/LogTarget">AWS API
* Reference</a></p>
*/
class AWS_IOT_API LogTarget
{
public:
LogTarget();
LogTarget(Aws::Utils::Json::JsonView jsonValue);
LogTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The target type.</p>
*/
inline const LogTargetType& GetTargetType() const{ return m_targetType; }
/**
* <p>The target type.</p>
*/
inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
/**
* <p>The target type.</p>
*/
inline void SetTargetType(const LogTargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
/**
* <p>The target type.</p>
*/
inline void SetTargetType(LogTargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
/**
* <p>The target type.</p>
*/
inline LogTarget& WithTargetType(const LogTargetType& value) { SetTargetType(value); return *this;}
/**
* <p>The target type.</p>
*/
inline LogTarget& WithTargetType(LogTargetType&& value) { SetTargetType(std::move(value)); return *this;}
/**
* <p>The target name.</p>
*/
inline const Aws::String& GetTargetName() const{ return m_targetName; }
/**
* <p>The target name.</p>
*/
inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
/**
* <p>The target name.</p>
*/
inline void SetTargetName(const Aws::String& value) { m_targetNameHasBeenSet = true; m_targetName = value; }
/**
* <p>The target name.</p>
*/
inline void SetTargetName(Aws::String&& value) { m_targetNameHasBeenSet = true; m_targetName = std::move(value); }
/**
* <p>The target name.</p>
*/
inline void SetTargetName(const char* value) { m_targetNameHasBeenSet = true; m_targetName.assign(value); }
/**
* <p>The target name.</p>
*/
inline LogTarget& WithTargetName(const Aws::String& value) { SetTargetName(value); return *this;}
/**
* <p>The target name.</p>
*/
inline LogTarget& WithTargetName(Aws::String&& value) { SetTargetName(std::move(value)); return *this;}
/**
* <p>The target name.</p>
*/
inline LogTarget& WithTargetName(const char* value) { SetTargetName(value); return *this;}
private:
LogTargetType m_targetType;
bool m_targetTypeHasBeenSet;
Aws::String m_targetName;
bool m_targetNameHasBeenSet;
};
} // namespace Model
} // namespace IoT
} // namespace Aws