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,150 @@
/**
* 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 Kinesis Data Firehose destination for email
* events. You can use Amazon Kinesis Data Firehose to stream data to other
* services, such as Amazon S3 and Amazon Redshift.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/KinesisFirehoseDestination">AWS
* API Reference</a></p>
*/
class AWS_SESV2_API KinesisFirehoseDestination
{
public:
KinesisFirehoseDestination();
KinesisFirehoseDestination(Aws::Utils::Json::JsonView jsonValue);
KinesisFirehoseDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2
* uses to send email events to the Amazon Kinesis Data Firehose stream.</p>
*/
inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2
* uses to send email events to the Amazon Kinesis Data Firehose stream.</p>
*/
inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2
* uses to send email events to the Amazon Kinesis Data Firehose stream.</p>
*/
inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2
* uses to send email events to the Amazon Kinesis Data Firehose stream.</p>
*/
inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2
* uses to send email events to the Amazon Kinesis Data Firehose stream.</p>
*/
inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2
* uses to send email events to the Amazon Kinesis Data Firehose stream.</p>
*/
inline KinesisFirehoseDestination& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2
* uses to send email events to the Amazon Kinesis Data Firehose stream.</p>
*/
inline KinesisFirehoseDestination& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2
* uses to send email events to the Amazon Kinesis Data Firehose stream.</p>
*/
inline KinesisFirehoseDestination& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream
* that the Amazon SES API v2 sends email events to.</p>
*/
inline const Aws::String& GetDeliveryStreamArn() const{ return m_deliveryStreamArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream
* that the Amazon SES API v2 sends email events to.</p>
*/
inline bool DeliveryStreamArnHasBeenSet() const { return m_deliveryStreamArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream
* that the Amazon SES API v2 sends email events to.</p>
*/
inline void SetDeliveryStreamArn(const Aws::String& value) { m_deliveryStreamArnHasBeenSet = true; m_deliveryStreamArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream
* that the Amazon SES API v2 sends email events to.</p>
*/
inline void SetDeliveryStreamArn(Aws::String&& value) { m_deliveryStreamArnHasBeenSet = true; m_deliveryStreamArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream
* that the Amazon SES API v2 sends email events to.</p>
*/
inline void SetDeliveryStreamArn(const char* value) { m_deliveryStreamArnHasBeenSet = true; m_deliveryStreamArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream
* that the Amazon SES API v2 sends email events to.</p>
*/
inline KinesisFirehoseDestination& WithDeliveryStreamArn(const Aws::String& value) { SetDeliveryStreamArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream
* that the Amazon SES API v2 sends email events to.</p>
*/
inline KinesisFirehoseDestination& WithDeliveryStreamArn(Aws::String&& value) { SetDeliveryStreamArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream
* that the Amazon SES API v2 sends email events to.</p>
*/
inline KinesisFirehoseDestination& WithDeliveryStreamArn(const char* value) { SetDeliveryStreamArn(value); return *this;}
private:
Aws::String m_iamRoleArn;
bool m_iamRoleArnHasBeenSet;
Aws::String m_deliveryStreamArn;
bool m_deliveryStreamArnHasBeenSet;
};
} // namespace Model
} // namespace SESV2
} // namespace Aws