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,92 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/es/ElasticsearchService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/es/model/ElasticsearchDomainStatus.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ElasticsearchService
{
namespace Model
{
/**
* <p>The result of a <code>DescribeElasticsearchDomains</code> request. Contains
* the status of the specified domains or all domains owned by the
* account.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DescribeElasticsearchDomainsResponse">AWS
* API Reference</a></p>
*/
class AWS_ELASTICSEARCHSERVICE_API DescribeElasticsearchDomainsResult
{
public:
DescribeElasticsearchDomainsResult();
DescribeElasticsearchDomainsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeElasticsearchDomainsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The status of the domains requested in the
* <code>DescribeElasticsearchDomains</code> request.</p>
*/
inline const Aws::Vector<ElasticsearchDomainStatus>& GetDomainStatusList() const{ return m_domainStatusList; }
/**
* <p>The status of the domains requested in the
* <code>DescribeElasticsearchDomains</code> request.</p>
*/
inline void SetDomainStatusList(const Aws::Vector<ElasticsearchDomainStatus>& value) { m_domainStatusList = value; }
/**
* <p>The status of the domains requested in the
* <code>DescribeElasticsearchDomains</code> request.</p>
*/
inline void SetDomainStatusList(Aws::Vector<ElasticsearchDomainStatus>&& value) { m_domainStatusList = std::move(value); }
/**
* <p>The status of the domains requested in the
* <code>DescribeElasticsearchDomains</code> request.</p>
*/
inline DescribeElasticsearchDomainsResult& WithDomainStatusList(const Aws::Vector<ElasticsearchDomainStatus>& value) { SetDomainStatusList(value); return *this;}
/**
* <p>The status of the domains requested in the
* <code>DescribeElasticsearchDomains</code> request.</p>
*/
inline DescribeElasticsearchDomainsResult& WithDomainStatusList(Aws::Vector<ElasticsearchDomainStatus>&& value) { SetDomainStatusList(std::move(value)); return *this;}
/**
* <p>The status of the domains requested in the
* <code>DescribeElasticsearchDomains</code> request.</p>
*/
inline DescribeElasticsearchDomainsResult& AddDomainStatusList(const ElasticsearchDomainStatus& value) { m_domainStatusList.push_back(value); return *this; }
/**
* <p>The status of the domains requested in the
* <code>DescribeElasticsearchDomains</code> request.</p>
*/
inline DescribeElasticsearchDomainsResult& AddDomainStatusList(ElasticsearchDomainStatus&& value) { m_domainStatusList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<ElasticsearchDomainStatus> m_domainStatusList;
};
} // namespace Model
} // namespace ElasticsearchService
} // namespace Aws