AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EventsRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint/model/EventsBatch.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_PINPOINT_API EventsRequest() = default;
37 AWS_PINPOINT_API EventsRequest(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Map<Aws::String, EventsBatch>& GetBatchItem() const { return m_batchItem; }
48 inline bool BatchItemHasBeenSet() const { return m_batchItemHasBeenSet; }
49 template<typename BatchItemT = Aws::Map<Aws::String, EventsBatch>>
50 void SetBatchItem(BatchItemT&& value) { m_batchItemHasBeenSet = true; m_batchItem = std::forward<BatchItemT>(value); }
51 template<typename BatchItemT = Aws::Map<Aws::String, EventsBatch>>
52 EventsRequest& WithBatchItem(BatchItemT&& value) { SetBatchItem(std::forward<BatchItemT>(value)); return *this;}
53 template<typename BatchItemKeyT = Aws::String, typename BatchItemValueT = EventsBatch>
54 EventsRequest& AddBatchItem(BatchItemKeyT&& key, BatchItemValueT&& value) {
55 m_batchItemHasBeenSet = true; m_batchItem.emplace(std::forward<BatchItemKeyT>(key), std::forward<BatchItemValueT>(value)); return *this;
56 }
58 private:
59
61 bool m_batchItemHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace Pinpoint
66} // 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