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,114 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace Route53
{
namespace Model
{
/**
* <p>A complex type that contains an optional comment about your hosted zone. If
* you don't want to specify a comment, omit both the <code>HostedZoneConfig</code>
* and <code>Comment</code> elements.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/HostedZoneConfig">AWS
* API Reference</a></p>
*/
class AWS_ROUTE53_API HostedZoneConfig
{
public:
HostedZoneConfig();
HostedZoneConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
HostedZoneConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
/**
* <p>Any comments that you want to include about the hosted zone.</p>
*/
inline const Aws::String& GetComment() const{ return m_comment; }
/**
* <p>Any comments that you want to include about the hosted zone.</p>
*/
inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
/**
* <p>Any comments that you want to include about the hosted zone.</p>
*/
inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
/**
* <p>Any comments that you want to include about the hosted zone.</p>
*/
inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
/**
* <p>Any comments that you want to include about the hosted zone.</p>
*/
inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
/**
* <p>Any comments that you want to include about the hosted zone.</p>
*/
inline HostedZoneConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
/**
* <p>Any comments that you want to include about the hosted zone.</p>
*/
inline HostedZoneConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
/**
* <p>Any comments that you want to include about the hosted zone.</p>
*/
inline HostedZoneConfig& WithComment(const char* value) { SetComment(value); return *this;}
/**
* <p>A value that indicates whether this is a private hosted zone.</p>
*/
inline bool GetPrivateZone() const{ return m_privateZone; }
/**
* <p>A value that indicates whether this is a private hosted zone.</p>
*/
inline bool PrivateZoneHasBeenSet() const { return m_privateZoneHasBeenSet; }
/**
* <p>A value that indicates whether this is a private hosted zone.</p>
*/
inline void SetPrivateZone(bool value) { m_privateZoneHasBeenSet = true; m_privateZone = value; }
/**
* <p>A value that indicates whether this is a private hosted zone.</p>
*/
inline HostedZoneConfig& WithPrivateZone(bool value) { SetPrivateZone(value); return *this;}
private:
Aws::String m_comment;
bool m_commentHasBeenSet;
bool m_privateZone;
bool m_privateZoneHasBeenSet;
};
} // namespace Model
} // namespace Route53
} // namespace Aws