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,102 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sesv2/SESV2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SESV2
{
namespace Model
{
/**
* <p>An object that defines an Amazon Pinpoint project destination for email
* events. You can send email event data to a Amazon Pinpoint project to view
* metrics using the Transactional Messaging dashboards that are built in to Amazon
* Pinpoint. For more information, see <a
* href="https://docs.aws.amazon.com/pinpoint/latest/userguide/analytics-transactional-messages.html">Transactional
* Messaging Charts</a> in the <i>Amazon Pinpoint User Guide</i>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PinpointDestination">AWS
* API Reference</a></p>
*/
class AWS_SESV2_API PinpointDestination
{
public:
PinpointDestination();
PinpointDestination(Aws::Utils::Json::JsonView jsonValue);
PinpointDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want
* to send email events to.</p>
*/
inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want
* to send email events to.</p>
*/
inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want
* to send email events to.</p>
*/
inline void SetApplicationArn(const Aws::String& value) { m_applicationArnHasBeenSet = true; m_applicationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want
* to send email events to.</p>
*/
inline void SetApplicationArn(Aws::String&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want
* to send email events to.</p>
*/
inline void SetApplicationArn(const char* value) { m_applicationArnHasBeenSet = true; m_applicationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want
* to send email events to.</p>
*/
inline PinpointDestination& WithApplicationArn(const Aws::String& value) { SetApplicationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want
* to send email events to.</p>
*/
inline PinpointDestination& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want
* to send email events to.</p>
*/
inline PinpointDestination& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;}
private:
Aws::String m_applicationArn;
bool m_applicationArnHasBeenSet;
};
} // namespace Model
} // namespace SESV2
} // namespace Aws