AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutEventsRequestEntry.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 CloudWatchEvents
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry() = default;
37 AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
51 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
52 template<typename TimeT = Aws::Utils::DateTime>
53 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
54 template<typename TimeT = Aws::Utils::DateTime>
55 PutEventsRequestEntry& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
57
59
62 inline const Aws::String& GetSource() const { return m_source; }
63 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
64 template<typename SourceT = Aws::String>
65 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
66 template<typename SourceT = Aws::String>
67 PutEventsRequestEntry& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
69
71
76 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
77 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
78 template<typename ResourcesT = Aws::Vector<Aws::String>>
79 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
80 template<typename ResourcesT = Aws::Vector<Aws::String>>
81 PutEventsRequestEntry& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
82 template<typename ResourcesT = Aws::String>
83 PutEventsRequestEntry& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
85
87
91 inline const Aws::String& GetDetailType() const { return m_detailType; }
92 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
93 template<typename DetailTypeT = Aws::String>
94 void SetDetailType(DetailTypeT&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::forward<DetailTypeT>(value); }
95 template<typename DetailTypeT = Aws::String>
96 PutEventsRequestEntry& WithDetailType(DetailTypeT&& value) { SetDetailType(std::forward<DetailTypeT>(value)); return *this;}
98
100
104 inline const Aws::String& GetDetail() const { return m_detail; }
105 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
106 template<typename DetailT = Aws::String>
107 void SetDetail(DetailT&& value) { m_detailHasBeenSet = true; m_detail = std::forward<DetailT>(value); }
108 template<typename DetailT = Aws::String>
109 PutEventsRequestEntry& WithDetail(DetailT&& value) { SetDetail(std::forward<DetailT>(value)); return *this;}
111
113
118 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
119 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
120 template<typename EventBusNameT = Aws::String>
121 void SetEventBusName(EventBusNameT&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::forward<EventBusNameT>(value); }
122 template<typename EventBusNameT = Aws::String>
123 PutEventsRequestEntry& WithEventBusName(EventBusNameT&& value) { SetEventBusName(std::forward<EventBusNameT>(value)); return *this;}
125
127
134 inline const Aws::String& GetTraceHeader() const { return m_traceHeader; }
135 inline bool TraceHeaderHasBeenSet() const { return m_traceHeaderHasBeenSet; }
136 template<typename TraceHeaderT = Aws::String>
137 void SetTraceHeader(TraceHeaderT&& value) { m_traceHeaderHasBeenSet = true; m_traceHeader = std::forward<TraceHeaderT>(value); }
138 template<typename TraceHeaderT = Aws::String>
139 PutEventsRequestEntry& WithTraceHeader(TraceHeaderT&& value) { SetTraceHeader(std::forward<TraceHeaderT>(value)); return *this;}
141 private:
142
143 Aws::Utils::DateTime m_time{};
144 bool m_timeHasBeenSet = false;
145
146 Aws::String m_source;
147 bool m_sourceHasBeenSet = false;
148
149 Aws::Vector<Aws::String> m_resources;
150 bool m_resourcesHasBeenSet = false;
151
152 Aws::String m_detailType;
153 bool m_detailTypeHasBeenSet = false;
154
155 Aws::String m_detail;
156 bool m_detailHasBeenSet = false;
157
158 Aws::String m_eventBusName;
159 bool m_eventBusNameHasBeenSet = false;
160
161 Aws::String m_traceHeader;
162 bool m_traceHeaderHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace CloudWatchEvents
167} // namespace Aws
PutEventsRequestEntry & AddResources(ResourcesT &&value)
AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ResourcesHasBeenSet() const
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDetail(DetailT &&value)
void SetSource(SourceT &&value)
bool TimeHasBeenSet() const
const Aws::String & GetSource() const
const Aws::String & GetEventBusName() const
PutEventsRequestEntry & WithTraceHeader(TraceHeaderT &&value)
PutEventsRequestEntry & WithTime(TimeT &&value)
const Aws::Utils::DateTime & GetTime() const
AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue)
bool EventBusNameHasBeenSet() const
PutEventsRequestEntry & WithEventBusName(EventBusNameT &&value)
void SetResources(ResourcesT &&value)
PutEventsRequestEntry & WithResources(ResourcesT &&value)
void SetTraceHeader(TraceHeaderT &&value)
bool DetailTypeHasBeenSet() const
bool DetailHasBeenSet() const
const Aws::Vector< Aws::String > & GetResources() const
bool TraceHeaderHasBeenSet() const
AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry()=default
const Aws::String & GetDetail() const
bool SourceHasBeenSet() const
PutEventsRequestEntry & WithDetailType(DetailTypeT &&value)
void SetDetailType(DetailTypeT &&value)
void SetTime(TimeT &&value)
PutEventsRequestEntry & WithSource(SourceT &&value)
const Aws::String & GetDetailType() const
const Aws::String & GetTraceHeader() const
void SetEventBusName(EventBusNameT &&value)
PutEventsRequestEntry & WithDetail(DetailT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue