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,159 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/route53/Route53_EXPORTS.h>
#include <aws/route53/model/HostedZone.h>
#include <aws/route53/model/DelegationSet.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/route53/model/VPC.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Xml
{
class XmlDocument;
} // namespace Xml
} // namespace Utils
namespace Route53
{
namespace Model
{
/**
* <p>A complex type that contain the response to a <code>GetHostedZone</code>
* request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetHostedZoneResponse">AWS
* API Reference</a></p>
*/
class AWS_ROUTE53_API GetHostedZoneResult
{
public:
GetHostedZoneResult();
GetHostedZoneResult(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
GetHostedZoneResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
/**
* <p>A complex type that contains general information about the specified hosted
* zone.</p>
*/
inline const HostedZone& GetHostedZone() const{ return m_hostedZone; }
/**
* <p>A complex type that contains general information about the specified hosted
* zone.</p>
*/
inline void SetHostedZone(const HostedZone& value) { m_hostedZone = value; }
/**
* <p>A complex type that contains general information about the specified hosted
* zone.</p>
*/
inline void SetHostedZone(HostedZone&& value) { m_hostedZone = std::move(value); }
/**
* <p>A complex type that contains general information about the specified hosted
* zone.</p>
*/
inline GetHostedZoneResult& WithHostedZone(const HostedZone& value) { SetHostedZone(value); return *this;}
/**
* <p>A complex type that contains general information about the specified hosted
* zone.</p>
*/
inline GetHostedZoneResult& WithHostedZone(HostedZone&& value) { SetHostedZone(std::move(value)); return *this;}
/**
* <p>A complex type that lists the Amazon Route 53 name servers for the specified
* hosted zone.</p>
*/
inline const DelegationSet& GetDelegationSet() const{ return m_delegationSet; }
/**
* <p>A complex type that lists the Amazon Route 53 name servers for the specified
* hosted zone.</p>
*/
inline void SetDelegationSet(const DelegationSet& value) { m_delegationSet = value; }
/**
* <p>A complex type that lists the Amazon Route 53 name servers for the specified
* hosted zone.</p>
*/
inline void SetDelegationSet(DelegationSet&& value) { m_delegationSet = std::move(value); }
/**
* <p>A complex type that lists the Amazon Route 53 name servers for the specified
* hosted zone.</p>
*/
inline GetHostedZoneResult& WithDelegationSet(const DelegationSet& value) { SetDelegationSet(value); return *this;}
/**
* <p>A complex type that lists the Amazon Route 53 name servers for the specified
* hosted zone.</p>
*/
inline GetHostedZoneResult& WithDelegationSet(DelegationSet&& value) { SetDelegationSet(std::move(value)); return *this;}
/**
* <p>A complex type that contains information about the VPCs that are associated
* with the specified hosted zone.</p>
*/
inline const Aws::Vector<VPC>& GetVPCs() const{ return m_vPCs; }
/**
* <p>A complex type that contains information about the VPCs that are associated
* with the specified hosted zone.</p>
*/
inline void SetVPCs(const Aws::Vector<VPC>& value) { m_vPCs = value; }
/**
* <p>A complex type that contains information about the VPCs that are associated
* with the specified hosted zone.</p>
*/
inline void SetVPCs(Aws::Vector<VPC>&& value) { m_vPCs = std::move(value); }
/**
* <p>A complex type that contains information about the VPCs that are associated
* with the specified hosted zone.</p>
*/
inline GetHostedZoneResult& WithVPCs(const Aws::Vector<VPC>& value) { SetVPCs(value); return *this;}
/**
* <p>A complex type that contains information about the VPCs that are associated
* with the specified hosted zone.</p>
*/
inline GetHostedZoneResult& WithVPCs(Aws::Vector<VPC>&& value) { SetVPCs(std::move(value)); return *this;}
/**
* <p>A complex type that contains information about the VPCs that are associated
* with the specified hosted zone.</p>
*/
inline GetHostedZoneResult& AddVPCs(const VPC& value) { m_vPCs.push_back(value); return *this; }
/**
* <p>A complex type that contains information about the VPCs that are associated
* with the specified hosted zone.</p>
*/
inline GetHostedZoneResult& AddVPCs(VPC&& value) { m_vPCs.push_back(std::move(value)); return *this; }
private:
HostedZone m_hostedZone;
DelegationSet m_delegationSet;
Aws::Vector<VPC> m_vPCs;
};
} // namespace Model
} // namespace Route53
} // namespace Aws