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,122 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/pinpoint/Pinpoint_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/pinpoint/model/EventsBatch.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Pinpoint
{
namespace Model
{
/**
* <p>Specifies a batch of events to process.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EventsRequest">AWS
* API Reference</a></p>
*/
class AWS_PINPOINT_API EventsRequest
{
public:
EventsRequest();
EventsRequest(Aws::Utils::Json::JsonView jsonValue);
EventsRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline const Aws::Map<Aws::String, EventsBatch>& GetBatchItem() const{ return m_batchItem; }
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline bool BatchItemHasBeenSet() const { return m_batchItemHasBeenSet; }
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline void SetBatchItem(const Aws::Map<Aws::String, EventsBatch>& value) { m_batchItemHasBeenSet = true; m_batchItem = value; }
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline void SetBatchItem(Aws::Map<Aws::String, EventsBatch>&& value) { m_batchItemHasBeenSet = true; m_batchItem = std::move(value); }
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline EventsRequest& WithBatchItem(const Aws::Map<Aws::String, EventsBatch>& value) { SetBatchItem(value); return *this;}
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline EventsRequest& WithBatchItem(Aws::Map<Aws::String, EventsBatch>&& value) { SetBatchItem(std::move(value)); return *this;}
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline EventsRequest& AddBatchItem(const Aws::String& key, const EventsBatch& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(key, value); return *this; }
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline EventsRequest& AddBatchItem(Aws::String&& key, const EventsBatch& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(std::move(key), value); return *this; }
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline EventsRequest& AddBatchItem(const Aws::String& key, EventsBatch&& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(key, std::move(value)); return *this; }
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline EventsRequest& AddBatchItem(Aws::String&& key, EventsBatch&& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline EventsRequest& AddBatchItem(const char* key, EventsBatch&& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(key, std::move(value)); return *this; }
/**
* <p>The batch of events to process. For each item in a batch, the endpoint ID
* acts as a key that has an EventsBatch object as its value.</p>
*/
inline EventsRequest& AddBatchItem(const char* key, const EventsBatch& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(key, value); return *this; }
private:
Aws::Map<Aws::String, EventsBatch> m_batchItem;
bool m_batchItemHasBeenSet;
};
} // namespace Model
} // namespace Pinpoint
} // namespace Aws