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,183 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sesv2/SESV2_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SESV2
{
namespace Model
{
/**
* <p>An object that contains inbox placement data for an email
* provider.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PlacementStatistics">AWS
* API Reference</a></p>
*/
class AWS_SESV2_API PlacementStatistics
{
public:
PlacementStatistics();
PlacementStatistics(Aws::Utils::Json::JsonView jsonValue);
PlacementStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The percentage of emails that arrived in recipients' inboxes during the
* predictive inbox placement test.</p>
*/
inline double GetInboxPercentage() const{ return m_inboxPercentage; }
/**
* <p>The percentage of emails that arrived in recipients' inboxes during the
* predictive inbox placement test.</p>
*/
inline bool InboxPercentageHasBeenSet() const { return m_inboxPercentageHasBeenSet; }
/**
* <p>The percentage of emails that arrived in recipients' inboxes during the
* predictive inbox placement test.</p>
*/
inline void SetInboxPercentage(double value) { m_inboxPercentageHasBeenSet = true; m_inboxPercentage = value; }
/**
* <p>The percentage of emails that arrived in recipients' inboxes during the
* predictive inbox placement test.</p>
*/
inline PlacementStatistics& WithInboxPercentage(double value) { SetInboxPercentage(value); return *this;}
/**
* <p>The percentage of emails that arrived in recipients' spam or junk mail
* folders during the predictive inbox placement test.</p>
*/
inline double GetSpamPercentage() const{ return m_spamPercentage; }
/**
* <p>The percentage of emails that arrived in recipients' spam or junk mail
* folders during the predictive inbox placement test.</p>
*/
inline bool SpamPercentageHasBeenSet() const { return m_spamPercentageHasBeenSet; }
/**
* <p>The percentage of emails that arrived in recipients' spam or junk mail
* folders during the predictive inbox placement test.</p>
*/
inline void SetSpamPercentage(double value) { m_spamPercentageHasBeenSet = true; m_spamPercentage = value; }
/**
* <p>The percentage of emails that arrived in recipients' spam or junk mail
* folders during the predictive inbox placement test.</p>
*/
inline PlacementStatistics& WithSpamPercentage(double value) { SetSpamPercentage(value); return *this;}
/**
* <p>The percentage of emails that didn't arrive in recipients' inboxes at all
* during the predictive inbox placement test.</p>
*/
inline double GetMissingPercentage() const{ return m_missingPercentage; }
/**
* <p>The percentage of emails that didn't arrive in recipients' inboxes at all
* during the predictive inbox placement test.</p>
*/
inline bool MissingPercentageHasBeenSet() const { return m_missingPercentageHasBeenSet; }
/**
* <p>The percentage of emails that didn't arrive in recipients' inboxes at all
* during the predictive inbox placement test.</p>
*/
inline void SetMissingPercentage(double value) { m_missingPercentageHasBeenSet = true; m_missingPercentage = value; }
/**
* <p>The percentage of emails that didn't arrive in recipients' inboxes at all
* during the predictive inbox placement test.</p>
*/
inline PlacementStatistics& WithMissingPercentage(double value) { SetMissingPercentage(value); return *this;}
/**
* <p>The percentage of emails that were authenticated by using Sender Policy
* Framework (SPF) during the predictive inbox placement test.</p>
*/
inline double GetSpfPercentage() const{ return m_spfPercentage; }
/**
* <p>The percentage of emails that were authenticated by using Sender Policy
* Framework (SPF) during the predictive inbox placement test.</p>
*/
inline bool SpfPercentageHasBeenSet() const { return m_spfPercentageHasBeenSet; }
/**
* <p>The percentage of emails that were authenticated by using Sender Policy
* Framework (SPF) during the predictive inbox placement test.</p>
*/
inline void SetSpfPercentage(double value) { m_spfPercentageHasBeenSet = true; m_spfPercentage = value; }
/**
* <p>The percentage of emails that were authenticated by using Sender Policy
* Framework (SPF) during the predictive inbox placement test.</p>
*/
inline PlacementStatistics& WithSpfPercentage(double value) { SetSpfPercentage(value); return *this;}
/**
* <p>The percentage of emails that were authenticated by using DomainKeys
* Identified Mail (DKIM) during the predictive inbox placement test.</p>
*/
inline double GetDkimPercentage() const{ return m_dkimPercentage; }
/**
* <p>The percentage of emails that were authenticated by using DomainKeys
* Identified Mail (DKIM) during the predictive inbox placement test.</p>
*/
inline bool DkimPercentageHasBeenSet() const { return m_dkimPercentageHasBeenSet; }
/**
* <p>The percentage of emails that were authenticated by using DomainKeys
* Identified Mail (DKIM) during the predictive inbox placement test.</p>
*/
inline void SetDkimPercentage(double value) { m_dkimPercentageHasBeenSet = true; m_dkimPercentage = value; }
/**
* <p>The percentage of emails that were authenticated by using DomainKeys
* Identified Mail (DKIM) during the predictive inbox placement test.</p>
*/
inline PlacementStatistics& WithDkimPercentage(double value) { SetDkimPercentage(value); return *this;}
private:
double m_inboxPercentage;
bool m_inboxPercentageHasBeenSet;
double m_spamPercentage;
bool m_spamPercentageHasBeenSet;
double m_missingPercentage;
bool m_missingPercentageHasBeenSet;
double m_spfPercentage;
bool m_spfPercentageHasBeenSet;
double m_dkimPercentage;
bool m_dkimPercentageHasBeenSet;
};
} // namespace Model
} // namespace SESV2
} // namespace Aws