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,81 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/swf/SWF_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SWF
{
namespace Model
{
/**
* <p>Contains the count of tasks in a task list.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/swf-2012-01-25/PendingTaskCount">AWS
* API Reference</a></p>
*/
class AWS_SWF_API CountPendingDecisionTasksResult
{
public:
CountPendingDecisionTasksResult();
CountPendingDecisionTasksResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CountPendingDecisionTasksResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The number of tasks in the task list.</p>
*/
inline int GetCount() const{ return m_count; }
/**
* <p>The number of tasks in the task list.</p>
*/
inline void SetCount(int value) { m_count = value; }
/**
* <p>The number of tasks in the task list.</p>
*/
inline CountPendingDecisionTasksResult& WithCount(int value) { SetCount(value); return *this;}
/**
* <p>If set to true, indicates that the actual count was more than the maximum
* supported by this API and the count returned is the truncated value.</p>
*/
inline bool GetTruncated() const{ return m_truncated; }
/**
* <p>If set to true, indicates that the actual count was more than the maximum
* supported by this API and the count returned is the truncated value.</p>
*/
inline void SetTruncated(bool value) { m_truncated = value; }
/**
* <p>If set to true, indicates that the actual count was more than the maximum
* supported by this API and the count returned is the truncated value.</p>
*/
inline CountPendingDecisionTasksResult& WithTruncated(bool value) { SetTruncated(value); return *this;}
private:
int m_count;
bool m_truncated;
};
} // namespace Model
} // namespace SWF
} // namespace Aws