AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
PutRawEventsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eventbridgev2/EventBridgeV2Request.h>
10#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
11#include <aws/eventbridgev2/model/DeduplicationConfiguration.h>
12#include <aws/eventbridgev2/model/PutRawEventsRequestEntry.h>
13#include <aws/eventbridgev2/model/SchemaRegistryConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EventBridgeV2 {
19namespace Model {
20
24 public:
25 AWS_EVENTBRIDGEV2_API PutRawEventsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutRawEvents"; }
32
33 AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override;
34
35 AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
40 AWS_EVENTBRIDGEV2_API EndpointParameters GetEndpointContextParams() const override;
41
43
44 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
45 inline bool EventBusArnHasBeenSet() const { return m_eventBusArnHasBeenSet; }
46 template <typename EventBusArnT = Aws::String>
47 void SetEventBusArn(EventBusArnT&& value) {
48 m_eventBusArnHasBeenSet = true;
49 m_eventBusArn = std::forward<EventBusArnT>(value);
50 }
51 template <typename EventBusArnT = Aws::String>
52 PutRawEventsRequest& WithEventBusArn(EventBusArnT&& value) {
53 SetEventBusArn(std::forward<EventBusArnT>(value));
54 return *this;
55 }
57
59
60 inline const Aws::Vector<PutRawEventsRequestEntry>& GetEntries() const { return m_entries; }
61 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
62 template <typename EntriesT = Aws::Vector<PutRawEventsRequestEntry>>
63 void SetEntries(EntriesT&& value) {
64 m_entriesHasBeenSet = true;
65 m_entries = std::forward<EntriesT>(value);
66 }
67 template <typename EntriesT = Aws::Vector<PutRawEventsRequestEntry>>
68 PutRawEventsRequest& WithEntries(EntriesT&& value) {
69 SetEntries(std::forward<EntriesT>(value));
70 return *this;
71 }
72 template <typename EntriesT = PutRawEventsRequestEntry>
73 PutRawEventsRequest& AddEntries(EntriesT&& value) {
74 m_entriesHasBeenSet = true;
75 m_entries.emplace_back(std::forward<EntriesT>(value));
76 return *this;
77 }
79
81
87 inline const SchemaRegistryConfiguration& GetSchemaRegistryConfiguration() const { return m_schemaRegistryConfiguration; }
88 inline bool SchemaRegistryConfigurationHasBeenSet() const { return m_schemaRegistryConfigurationHasBeenSet; }
89 template <typename SchemaRegistryConfigurationT = SchemaRegistryConfiguration>
90 void SetSchemaRegistryConfiguration(SchemaRegistryConfigurationT&& value) {
91 m_schemaRegistryConfigurationHasBeenSet = true;
92 m_schemaRegistryConfiguration = std::forward<SchemaRegistryConfigurationT>(value);
93 }
94 template <typename SchemaRegistryConfigurationT = SchemaRegistryConfiguration>
95 PutRawEventsRequest& WithSchemaRegistryConfiguration(SchemaRegistryConfigurationT&& value) {
96 SetSchemaRegistryConfiguration(std::forward<SchemaRegistryConfigurationT>(value));
97 return *this;
98 }
100
102
106 inline const DeduplicationConfiguration& GetDeduplicationConfiguration() const { return m_deduplicationConfiguration; }
107 inline bool DeduplicationConfigurationHasBeenSet() const { return m_deduplicationConfigurationHasBeenSet; }
108 template <typename DeduplicationConfigurationT = DeduplicationConfiguration>
109 void SetDeduplicationConfiguration(DeduplicationConfigurationT&& value) {
110 m_deduplicationConfigurationHasBeenSet = true;
111 m_deduplicationConfiguration = std::forward<DeduplicationConfigurationT>(value);
112 }
113 template <typename DeduplicationConfigurationT = DeduplicationConfiguration>
114 PutRawEventsRequest& WithDeduplicationConfiguration(DeduplicationConfigurationT&& value) {
115 SetDeduplicationConfiguration(std::forward<DeduplicationConfigurationT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_eventBusArn;
121
123
124 SchemaRegistryConfiguration m_schemaRegistryConfiguration;
125
126 DeduplicationConfiguration m_deduplicationConfiguration;
127 bool m_eventBusArnHasBeenSet = false;
128 bool m_entriesHasBeenSet = false;
129 bool m_schemaRegistryConfigurationHasBeenSet = false;
130 bool m_deduplicationConfigurationHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace EventBridgeV2
135} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
void SetSchemaRegistryConfiguration(SchemaRegistryConfigurationT &&value)
PutRawEventsRequest & WithEventBusArn(EventBusArnT &&value)
AWS_EVENTBRIDGEV2_API EndpointParameters GetEndpointContextParams() const override
PutRawEventsRequest & WithSchemaRegistryConfiguration(SchemaRegistryConfigurationT &&value)
const DeduplicationConfiguration & GetDeduplicationConfiguration() const
const SchemaRegistryConfiguration & GetSchemaRegistryConfiguration() const
PutRawEventsRequest & WithDeduplicationConfiguration(DeduplicationConfigurationT &&value)
PutRawEventsRequest & AddEntries(EntriesT &&value)
AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< PutRawEventsRequestEntry > & GetEntries() const
virtual const char * GetServiceRequestName() const override
AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override
AWS_EVENTBRIDGEV2_API PutRawEventsRequest()=default
void SetDeduplicationConfiguration(DeduplicationConfigurationT &&value)
PutRawEventsRequest & WithEntries(EntriesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector