AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
PutRawEventsRequestEntry.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
12#include <aws/eventbridgev2/model/PutRawEventsSystemMetadata.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace EventBridgeV2 {
23namespace Model {
24
31 public:
32 AWS_EVENTBRIDGEV2_API PutRawEventsRequestEntry() = default;
33 AWS_EVENTBRIDGEV2_API PutRawEventsRequestEntry(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_EVENTBRIDGEV2_API PutRawEventsRequestEntry& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::Utils::CryptoBuffer& GetData() const { return m_data; }
42 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
43 template <typename DataT = Aws::Utils::CryptoBuffer>
44 void SetData(DataT&& value) {
45 m_dataHasBeenSet = true;
46 m_data = std::forward<DataT>(value);
47 }
48 template <typename DataT = Aws::Utils::CryptoBuffer>
50 SetData(std::forward<DataT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
61 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
62 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
63 void SetMetadata(MetadataT&& value) {
64 m_metadataHasBeenSet = true;
65 m_metadata = std::forward<MetadataT>(value);
66 }
67 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
69 SetMetadata(std::forward<MetadataT>(value));
70 return *this;
71 }
72 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
73 PutRawEventsRequestEntry& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
74 m_metadataHasBeenSet = true;
75 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
76 return *this;
77 }
79
81
84 inline const PutRawEventsSystemMetadata& GetSystemMetadata() const { return m_systemMetadata; }
85 inline bool SystemMetadataHasBeenSet() const { return m_systemMetadataHasBeenSet; }
86 template <typename SystemMetadataT = PutRawEventsSystemMetadata>
87 void SetSystemMetadata(SystemMetadataT&& value) {
88 m_systemMetadataHasBeenSet = true;
89 m_systemMetadata = std::forward<SystemMetadataT>(value);
90 }
91 template <typename SystemMetadataT = PutRawEventsSystemMetadata>
92 PutRawEventsRequestEntry& WithSystemMetadata(SystemMetadataT&& value) {
93 SetSystemMetadata(std::forward<SystemMetadataT>(value));
94 return *this;
95 }
97 private:
99
101
102 PutRawEventsSystemMetadata m_systemMetadata;
103 bool m_dataHasBeenSet = false;
104 bool m_metadataHasBeenSet = false;
105 bool m_systemMetadataHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace EventBridgeV2
110} // namespace Aws
void SetMetadata(MetadataT &&value)
bool SystemMetadataHasBeenSet() const
bool MetadataHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const Aws::Utils::CryptoBuffer & GetData() const
PutRawEventsRequestEntry & WithSystemMetadata(SystemMetadataT &&value)
PutRawEventsRequestEntry & WithData(DataT &&value)
AWS_EVENTBRIDGEV2_API PutRawEventsRequestEntry()=default
void SetData(DataT &&value)
AWS_EVENTBRIDGEV2_API PutRawEventsRequestEntry & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool DataHasBeenSet() const
void SetSystemMetadata(SystemMetadataT &&value)
PutRawEventsRequestEntry & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
const PutRawEventsSystemMetadata & GetSystemMetadata() const
PutRawEventsRequestEntry & WithMetadata(MetadataT &&value)
AWS_EVENTBRIDGEV2_API PutRawEventsRequestEntry(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map