AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
PutEventsRequestEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
12#include <aws/eventbridgev2/model/PutEventsSystemMetadata.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 PutEventsRequestEntry() = default;
33 AWS_EVENTBRIDGEV2_API PutEventsRequestEntry(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_EVENTBRIDGEV2_API PutEventsRequestEntry& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
42 inline const Aws::String& GetSource() const { return m_source; }
43 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
44 template <typename SourceT = Aws::String>
45 void SetSource(SourceT&& value) {
46 m_sourceHasBeenSet = true;
47 m_source = std::forward<SourceT>(value);
48 }
49 template <typename SourceT = Aws::String>
51 SetSource(std::forward<SourceT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetDetailType() const { return m_detailType; }
59 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
60 template <typename DetailTypeT = Aws::String>
61 void SetDetailType(DetailTypeT&& value) {
62 m_detailTypeHasBeenSet = true;
63 m_detailType = std::forward<DetailTypeT>(value);
64 }
65 template <typename DetailTypeT = Aws::String>
66 PutEventsRequestEntry& WithDetailType(DetailTypeT&& value) {
67 SetDetailType(std::forward<DetailTypeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDetail() const { return m_detail; }
77 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
78 template <typename DetailT = Aws::String>
79 void SetDetail(DetailT&& value) {
80 m_detailHasBeenSet = true;
81 m_detail = std::forward<DetailT>(value);
82 }
83 template <typename DetailT = Aws::String>
85 SetDetail(std::forward<DetailT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
96 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
97 template <typename ResourcesT = Aws::Vector<Aws::String>>
98 void SetResources(ResourcesT&& value) {
99 m_resourcesHasBeenSet = true;
100 m_resources = std::forward<ResourcesT>(value);
101 }
102 template <typename ResourcesT = Aws::Vector<Aws::String>>
104 SetResources(std::forward<ResourcesT>(value));
105 return *this;
106 }
107 template <typename ResourcesT = Aws::String>
108 PutEventsRequestEntry& AddResources(ResourcesT&& value) {
109 m_resourcesHasBeenSet = true;
110 m_resources.emplace_back(std::forward<ResourcesT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
121 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
122 template <typename TimeT = Aws::Utils::DateTime>
123 void SetTime(TimeT&& value) {
124 m_timeHasBeenSet = true;
125 m_time = std::forward<TimeT>(value);
126 }
127 template <typename TimeT = Aws::Utils::DateTime>
129 SetTime(std::forward<TimeT>(value));
130 return *this;
131 }
133
135
136 inline const PutEventsSystemMetadata& GetSystemMetadata() const { return m_systemMetadata; }
137 inline bool SystemMetadataHasBeenSet() const { return m_systemMetadataHasBeenSet; }
138 template <typename SystemMetadataT = PutEventsSystemMetadata>
139 void SetSystemMetadata(SystemMetadataT&& value) {
140 m_systemMetadataHasBeenSet = true;
141 m_systemMetadata = std::forward<SystemMetadataT>(value);
142 }
143 template <typename SystemMetadataT = PutEventsSystemMetadata>
144 PutEventsRequestEntry& WithSystemMetadata(SystemMetadataT&& value) {
145 SetSystemMetadata(std::forward<SystemMetadataT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_source;
151
152 Aws::String m_detailType;
153
154 Aws::String m_detail;
155
156 Aws::Vector<Aws::String> m_resources;
157
158 Aws::Utils::DateTime m_time{};
159
160 PutEventsSystemMetadata m_systemMetadata;
161 bool m_sourceHasBeenSet = false;
162 bool m_detailTypeHasBeenSet = false;
163 bool m_detailHasBeenSet = false;
164 bool m_resourcesHasBeenSet = false;
165 bool m_timeHasBeenSet = false;
166 bool m_systemMetadataHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace EventBridgeV2
171} // namespace Aws
const Aws::String & GetDetailType() const
bool SourceHasBeenSet() const
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
PutEventsRequestEntry & WithDetail(DetailT &&value)
PutEventsRequestEntry & WithDetailType(DetailTypeT &&value)
PutEventsRequestEntry & WithSystemMetadata(SystemMetadataT &&value)
const PutEventsSystemMetadata & GetSystemMetadata() const
const Aws::Vector< Aws::String > & GetResources() const
const Aws::String & GetDetail() const
PutEventsRequestEntry & AddResources(ResourcesT &&value)
void SetDetailType(DetailTypeT &&value)
bool DetailTypeHasBeenSet() const
void SetSystemMetadata(SystemMetadataT &&value)
AWS_EVENTBRIDGEV2_API PutEventsRequestEntry(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool SystemMetadataHasBeenSet() const
PutEventsRequestEntry & WithResources(ResourcesT &&value)
bool TimeHasBeenSet() const
void SetDetail(DetailT &&value)
const Aws::Utils::DateTime & GetTime() const
PutEventsRequestEntry & WithTime(TimeT &&value)
void SetSource(SourceT &&value)
void SetResources(ResourcesT &&value)
void SetTime(TimeT &&value)
AWS_EVENTBRIDGEV2_API PutEventsRequestEntry & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool DetailHasBeenSet() const
AWS_EVENTBRIDGEV2_API PutEventsRequestEntry()=default
bool ResourcesHasBeenSet() const
PutEventsRequestEntry & WithSource(SourceT &&value)
const Aws::String & GetSource() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector