/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Specifies a batch of events to process.

See Also:

AWS * API Reference

*/ class EventsRequest { public: AWS_PINPOINT_API EventsRequest(); AWS_PINPOINT_API EventsRequest(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API EventsRequest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::Map& GetBatchItem() const{ return m_batchItem; } /** *

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.

*/ inline bool BatchItemHasBeenSet() const { return m_batchItemHasBeenSet; } /** *

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.

*/ inline void SetBatchItem(const Aws::Map& value) { m_batchItemHasBeenSet = true; m_batchItem = value; } /** *

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.

*/ inline void SetBatchItem(Aws::Map&& value) { m_batchItemHasBeenSet = true; m_batchItem = std::move(value); } /** *

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.

*/ inline EventsRequest& WithBatchItem(const Aws::Map& value) { SetBatchItem(value); return *this;} /** *

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.

*/ inline EventsRequest& WithBatchItem(Aws::Map&& value) { SetBatchItem(std::move(value)); return *this;} /** *

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.

*/ inline EventsRequest& AddBatchItem(const Aws::String& key, const EventsBatch& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(key, value); return *this; } /** *

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.

*/ inline EventsRequest& AddBatchItem(Aws::String&& key, const EventsBatch& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline EventsRequest& AddBatchItem(const Aws::String& key, EventsBatch&& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline EventsRequest& AddBatchItem(Aws::String&& key, EventsBatch&& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(std::move(key), std::move(value)); return *this; } /** *

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.

*/ inline EventsRequest& AddBatchItem(const char* key, EventsBatch&& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline EventsRequest& AddBatchItem(const char* key, const EventsBatch& value) { m_batchItemHasBeenSet = true; m_batchItem.emplace(key, value); return *this; } private: Aws::Map m_batchItem; bool m_batchItemHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws