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/guardduty/GuardDuty_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/guardduty/model/Finding.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace GuardDuty
{
namespace Model
{
class AWS_GUARDDUTY_API GetFindingsResult
{
public:
GetFindingsResult();
GetFindingsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetFindingsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of findings.</p>
*/
inline const Aws::Vector<Finding>& GetFindings() const{ return m_findings; }
/**
* <p>A list of findings.</p>
*/
inline void SetFindings(const Aws::Vector<Finding>& value) { m_findings = value; }
/**
* <p>A list of findings.</p>
*/
inline void SetFindings(Aws::Vector<Finding>&& value) { m_findings = std::move(value); }
/**
* <p>A list of findings.</p>
*/
inline GetFindingsResult& WithFindings(const Aws::Vector<Finding>& value) { SetFindings(value); return *this;}
/**
* <p>A list of findings.</p>
*/
inline GetFindingsResult& WithFindings(Aws::Vector<Finding>&& value) { SetFindings(std::move(value)); return *this;}
/**
* <p>A list of findings.</p>
*/
inline GetFindingsResult& AddFindings(const Finding& value) { m_findings.push_back(value); return *this; }
/**
* <p>A list of findings.</p>
*/
inline GetFindingsResult& AddFindings(Finding&& value) { m_findings.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Finding> m_findings;
};
} // namespace Model
} // namespace GuardDuty
} // namespace Aws