AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
EventsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/EventsBatch.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint {
22namespace Model {
23
30 public:
31 AWS_PINPOINT_API EventsRequest() = default;
32 AWS_PINPOINT_API EventsRequest(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Map<Aws::String, EventsBatch>& GetBatchItem() const { return m_batchItem; }
42 inline bool BatchItemHasBeenSet() const { return m_batchItemHasBeenSet; }
43 template <typename BatchItemT = Aws::Map<Aws::String, EventsBatch>>
44 void SetBatchItem(BatchItemT&& value) {
45 m_batchItemHasBeenSet = true;
46 m_batchItem = std::forward<BatchItemT>(value);
47 }
48 template <typename BatchItemT = Aws::Map<Aws::String, EventsBatch>>
49 EventsRequest& WithBatchItem(BatchItemT&& value) {
50 SetBatchItem(std::forward<BatchItemT>(value));
51 return *this;
52 }
53 template <typename BatchItemKeyT = Aws::String, typename BatchItemValueT = EventsBatch>
54 EventsRequest& AddBatchItem(BatchItemKeyT&& key, BatchItemValueT&& value) {
55 m_batchItemHasBeenSet = true;
56 m_batchItem.emplace(std::forward<BatchItemKeyT>(key), std::forward<BatchItemValueT>(value));
57 return *this;
58 }
60 private:
62 bool m_batchItemHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace Pinpoint
67} // namespace Aws
AWS_PINPOINT_API EventsRequest()=default
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EventsRequest & AddBatchItem(BatchItemKeyT &&key, BatchItemValueT &&value)
AWS_PINPOINT_API EventsRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
EventsRequest & WithBatchItem(BatchItemT &&value)
const Aws::Map< Aws::String, EventsBatch > & GetBatchItem() const
void SetBatchItem(BatchItemT &&value)
AWS_PINPOINT_API EventsRequest(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue