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,253 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/email/SES_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/email/model/VerificationStatus.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace SES
{
namespace Model
{
/**
* <p>Represents the DKIM attributes of a verified email address or a
* domain.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/IdentityDkimAttributes">AWS
* API Reference</a></p>
*/
class AWS_SES_API IdentityDkimAttributes
{
public:
IdentityDkimAttributes();
IdentityDkimAttributes(const Aws::Utils::Xml::XmlNode& xmlNode);
IdentityDkimAttributes& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>Is true if DKIM signing is enabled for email sent from the identity. It's
* false otherwise. The default value is true.</p>
*/
inline bool GetDkimEnabled() const{ return m_dkimEnabled; }
/**
* <p>Is true if DKIM signing is enabled for email sent from the identity. It's
* false otherwise. The default value is true.</p>
*/
inline bool DkimEnabledHasBeenSet() const { return m_dkimEnabledHasBeenSet; }
/**
* <p>Is true if DKIM signing is enabled for email sent from the identity. It's
* false otherwise. The default value is true.</p>
*/
inline void SetDkimEnabled(bool value) { m_dkimEnabledHasBeenSet = true; m_dkimEnabled = value; }
/**
* <p>Is true if DKIM signing is enabled for email sent from the identity. It's
* false otherwise. The default value is true.</p>
*/
inline IdentityDkimAttributes& WithDkimEnabled(bool value) { SetDkimEnabled(value); return *this;}
/**
* <p>Describes whether Amazon SES has successfully verified the DKIM DNS records
* (tokens) published in the domain name's DNS. (This only applies to domain
* identities, not email address identities.)</p>
*/
inline const VerificationStatus& GetDkimVerificationStatus() const{ return m_dkimVerificationStatus; }
/**
* <p>Describes whether Amazon SES has successfully verified the DKIM DNS records
* (tokens) published in the domain name's DNS. (This only applies to domain
* identities, not email address identities.)</p>
*/
inline bool DkimVerificationStatusHasBeenSet() const { return m_dkimVerificationStatusHasBeenSet; }
/**
* <p>Describes whether Amazon SES has successfully verified the DKIM DNS records
* (tokens) published in the domain name's DNS. (This only applies to domain
* identities, not email address identities.)</p>
*/
inline void SetDkimVerificationStatus(const VerificationStatus& value) { m_dkimVerificationStatusHasBeenSet = true; m_dkimVerificationStatus = value; }
/**
* <p>Describes whether Amazon SES has successfully verified the DKIM DNS records
* (tokens) published in the domain name's DNS. (This only applies to domain
* identities, not email address identities.)</p>
*/
inline void SetDkimVerificationStatus(VerificationStatus&& value) { m_dkimVerificationStatusHasBeenSet = true; m_dkimVerificationStatus = std::move(value); }
/**
* <p>Describes whether Amazon SES has successfully verified the DKIM DNS records
* (tokens) published in the domain name's DNS. (This only applies to domain
* identities, not email address identities.)</p>
*/
inline IdentityDkimAttributes& WithDkimVerificationStatus(const VerificationStatus& value) { SetDkimVerificationStatus(value); return *this;}
/**
* <p>Describes whether Amazon SES has successfully verified the DKIM DNS records
* (tokens) published in the domain name's DNS. (This only applies to domain
* identities, not email address identities.)</p>
*/
inline IdentityDkimAttributes& WithDkimVerificationStatus(VerificationStatus&& value) { SetDkimVerificationStatus(std::move(value)); return *this;}
/**
* <p>A set of character strings that represent the domain's identity. Using these
* tokens, you need to create DNS CNAME records that point to DKIM public keys that
* are hosted by Amazon SES. Amazon Web Services eventually detects that you've
* updated your DNS records. This detection process might take up to 72 hours.
* After successful detection, Amazon SES is able to DKIM-sign email originating
* from that domain. (This only applies to domain identities, not email address
* identities.)</p> <p>For more information about creating DNS records using DKIM
* tokens, see the <a
* href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon
* SES Developer Guide</a>.</p>
*/
inline const Aws::Vector<Aws::String>& GetDkimTokens() const{ return m_dkimTokens; }
/**
* <p>A set of character strings that represent the domain's identity. Using these
* tokens, you need to create DNS CNAME records that point to DKIM public keys that
* are hosted by Amazon SES. Amazon Web Services eventually detects that you've
* updated your DNS records. This detection process might take up to 72 hours.
* After successful detection, Amazon SES is able to DKIM-sign email originating
* from that domain. (This only applies to domain identities, not email address
* identities.)</p> <p>For more information about creating DNS records using DKIM
* tokens, see the <a
* href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon
* SES Developer Guide</a>.</p>
*/
inline bool DkimTokensHasBeenSet() const { return m_dkimTokensHasBeenSet; }
/**
* <p>A set of character strings that represent the domain's identity. Using these
* tokens, you need to create DNS CNAME records that point to DKIM public keys that
* are hosted by Amazon SES. Amazon Web Services eventually detects that you've
* updated your DNS records. This detection process might take up to 72 hours.
* After successful detection, Amazon SES is able to DKIM-sign email originating
* from that domain. (This only applies to domain identities, not email address
* identities.)</p> <p>For more information about creating DNS records using DKIM
* tokens, see the <a
* href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon
* SES Developer Guide</a>.</p>
*/
inline void SetDkimTokens(const Aws::Vector<Aws::String>& value) { m_dkimTokensHasBeenSet = true; m_dkimTokens = value; }
/**
* <p>A set of character strings that represent the domain's identity. Using these
* tokens, you need to create DNS CNAME records that point to DKIM public keys that
* are hosted by Amazon SES. Amazon Web Services eventually detects that you've
* updated your DNS records. This detection process might take up to 72 hours.
* After successful detection, Amazon SES is able to DKIM-sign email originating
* from that domain. (This only applies to domain identities, not email address
* identities.)</p> <p>For more information about creating DNS records using DKIM
* tokens, see the <a
* href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon
* SES Developer Guide</a>.</p>
*/
inline void SetDkimTokens(Aws::Vector<Aws::String>&& value) { m_dkimTokensHasBeenSet = true; m_dkimTokens = std::move(value); }
/**
* <p>A set of character strings that represent the domain's identity. Using these
* tokens, you need to create DNS CNAME records that point to DKIM public keys that
* are hosted by Amazon SES. Amazon Web Services eventually detects that you've
* updated your DNS records. This detection process might take up to 72 hours.
* After successful detection, Amazon SES is able to DKIM-sign email originating
* from that domain. (This only applies to domain identities, not email address
* identities.)</p> <p>For more information about creating DNS records using DKIM
* tokens, see the <a
* href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon
* SES Developer Guide</a>.</p>
*/
inline IdentityDkimAttributes& WithDkimTokens(const Aws::Vector<Aws::String>& value) { SetDkimTokens(value); return *this;}
/**
* <p>A set of character strings that represent the domain's identity. Using these
* tokens, you need to create DNS CNAME records that point to DKIM public keys that
* are hosted by Amazon SES. Amazon Web Services eventually detects that you've
* updated your DNS records. This detection process might take up to 72 hours.
* After successful detection, Amazon SES is able to DKIM-sign email originating
* from that domain. (This only applies to domain identities, not email address
* identities.)</p> <p>For more information about creating DNS records using DKIM
* tokens, see the <a
* href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon
* SES Developer Guide</a>.</p>
*/
inline IdentityDkimAttributes& WithDkimTokens(Aws::Vector<Aws::String>&& value) { SetDkimTokens(std::move(value)); return *this;}
/**
* <p>A set of character strings that represent the domain's identity. Using these
* tokens, you need to create DNS CNAME records that point to DKIM public keys that
* are hosted by Amazon SES. Amazon Web Services eventually detects that you've
* updated your DNS records. This detection process might take up to 72 hours.
* After successful detection, Amazon SES is able to DKIM-sign email originating
* from that domain. (This only applies to domain identities, not email address
* identities.)</p> <p>For more information about creating DNS records using DKIM
* tokens, see the <a
* href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon
* SES Developer Guide</a>.</p>
*/
inline IdentityDkimAttributes& AddDkimTokens(const Aws::String& value) { m_dkimTokensHasBeenSet = true; m_dkimTokens.push_back(value); return *this; }
/**
* <p>A set of character strings that represent the domain's identity. Using these
* tokens, you need to create DNS CNAME records that point to DKIM public keys that
* are hosted by Amazon SES. Amazon Web Services eventually detects that you've
* updated your DNS records. This detection process might take up to 72 hours.
* After successful detection, Amazon SES is able to DKIM-sign email originating
* from that domain. (This only applies to domain identities, not email address
* identities.)</p> <p>For more information about creating DNS records using DKIM
* tokens, see the <a
* href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon
* SES Developer Guide</a>.</p>
*/
inline IdentityDkimAttributes& AddDkimTokens(Aws::String&& value) { m_dkimTokensHasBeenSet = true; m_dkimTokens.push_back(std::move(value)); return *this; }
/**
* <p>A set of character strings that represent the domain's identity. Using these
* tokens, you need to create DNS CNAME records that point to DKIM public keys that
* are hosted by Amazon SES. Amazon Web Services eventually detects that you've
* updated your DNS records. This detection process might take up to 72 hours.
* After successful detection, Amazon SES is able to DKIM-sign email originating
* from that domain. (This only applies to domain identities, not email address
* identities.)</p> <p>For more information about creating DNS records using DKIM
* tokens, see the <a
* href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon
* SES Developer Guide</a>.</p>
*/
inline IdentityDkimAttributes& AddDkimTokens(const char* value) { m_dkimTokensHasBeenSet = true; m_dkimTokens.push_back(value); return *this; }
private:
bool m_dkimEnabled;
bool m_dkimEnabledHasBeenSet;
VerificationStatus m_dkimVerificationStatus;
bool m_dkimVerificationStatusHasBeenSet;
Aws::Vector<Aws::String> m_dkimTokens;
bool m_dkimTokensHasBeenSet;
};
} // namespace Model
} // namespace SES
} // namespace Aws