AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
53 inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
54 inline PutEventsRequestEntry& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
55 inline PutEventsRequestEntry& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetSource() const{ return m_source; }
63 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
64 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
65 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
66 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
67 inline PutEventsRequestEntry& WithSource(const Aws::String& value) { SetSource(value); return *this;}
68 inline PutEventsRequestEntry& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
69 inline PutEventsRequestEntry& WithSource(const char* value) { SetSource(value); return *this;}
71
73
78 inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
79 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
80 inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
81 inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
82 inline PutEventsRequestEntry& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
83 inline PutEventsRequestEntry& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
84 inline PutEventsRequestEntry& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
85 inline PutEventsRequestEntry& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
86 inline PutEventsRequestEntry& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
88
90
94 inline const Aws::String& GetDetailType() const{ return m_detailType; }
95 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
96 inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
97 inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); }
98 inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); }
99 inline PutEventsRequestEntry& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;}
100 inline PutEventsRequestEntry& WithDetailType(Aws::String&& value) { SetDetailType(std::move(value)); return *this;}
101 inline PutEventsRequestEntry& WithDetailType(const char* value) { SetDetailType(value); return *this;}
103
105
109 inline const Aws::String& GetDetail() const{ return m_detail; }
110 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
111 inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; }
112 inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
113 inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); }
114 inline PutEventsRequestEntry& WithDetail(const Aws::String& value) { SetDetail(value); return *this;}
115 inline PutEventsRequestEntry& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;}
116 inline PutEventsRequestEntry& WithDetail(const char* value) { SetDetail(value); return *this;}
118
120
125 inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
126 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
127 inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
128 inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
129 inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
130 inline PutEventsRequestEntry& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
131 inline PutEventsRequestEntry& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
132 inline PutEventsRequestEntry& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
134
136
143 inline const Aws::String& GetTraceHeader() const{ return m_traceHeader; }
144 inline bool TraceHeaderHasBeenSet() const { return m_traceHeaderHasBeenSet; }
145 inline void SetTraceHeader(const Aws::String& value) { m_traceHeaderHasBeenSet = true; m_traceHeader = value; }
146 inline void SetTraceHeader(Aws::String&& value) { m_traceHeaderHasBeenSet = true; m_traceHeader = std::move(value); }
147 inline void SetTraceHeader(const char* value) { m_traceHeaderHasBeenSet = true; m_traceHeader.assign(value); }
148 inline PutEventsRequestEntry& WithTraceHeader(const Aws::String& value) { SetTraceHeader(value); return *this;}
149 inline PutEventsRequestEntry& WithTraceHeader(Aws::String&& value) { SetTraceHeader(std::move(value)); return *this;}
150 inline PutEventsRequestEntry& WithTraceHeader(const char* value) { SetTraceHeader(value); return *this;}
152 private:
153
155 bool m_timeHasBeenSet = false;
156
157 Aws::String m_source;
158 bool m_sourceHasBeenSet = false;
159
160 Aws::Vector<Aws::String> m_resources;
161 bool m_resourcesHasBeenSet = false;
162
163 Aws::String m_detailType;
164 bool m_detailTypeHasBeenSet = false;
165
166 Aws::String m_detail;
167 bool m_detailHasBeenSet = false;
168
169 Aws::String m_eventBusName;
170 bool m_eventBusNameHasBeenSet = false;
171
172 Aws::String m_traceHeader;
173 bool m_traceHeaderHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace CloudWatchEvents
178} // namespace Aws
PutEventsRequestEntry & WithDetailType(const Aws::String &value)
AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDetailType(const char *value)
PutEventsRequestEntry & WithSource(const char *value)
void SetTraceHeader(Aws::String &&value)
void SetDetail(const char *value)
bool ResourcesHasBeenSet() const
void SetResources(Aws::Vector< Aws::String > &&value)
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTraceHeader(const char *value)
PutEventsRequestEntry & AddResources(const Aws::String &value)
bool TimeHasBeenSet() const
PutEventsRequestEntry & WithTime(Aws::Utils::DateTime &&value)
PutEventsRequestEntry & WithTraceHeader(Aws::String &&value)
const Aws::String & GetSource() const
void SetSource(Aws::String &&value)
PutEventsRequestEntry & AddResources(Aws::String &&value)
const Aws::String & GetEventBusName() const
PutEventsRequestEntry & WithSource(Aws::String &&value)
PutEventsRequestEntry & WithDetailType(Aws::String &&value)
void SetResources(const Aws::Vector< Aws::String > &value)
PutEventsRequestEntry & WithTime(const Aws::Utils::DateTime &value)
PutEventsRequestEntry & WithResources(const Aws::Vector< Aws::String > &value)
const Aws::Utils::DateTime & GetTime() const
void SetDetail(const Aws::String &value)
AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry()
PutEventsRequestEntry & WithDetail(const Aws::String &value)
AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue)
PutEventsRequestEntry & WithDetail(const char *value)
void SetDetail(Aws::String &&value)
PutEventsRequestEntry & WithEventBusName(const Aws::String &value)
bool EventBusNameHasBeenSet() const
void SetDetailType(const Aws::String &value)
void SetTraceHeader(const Aws::String &value)
PutEventsRequestEntry & AddResources(const char *value)
bool DetailTypeHasBeenSet() const
PutEventsRequestEntry & WithTraceHeader(const Aws::String &value)
PutEventsRequestEntry & WithTraceHeader(const char *value)
PutEventsRequestEntry & WithEventBusName(Aws::String &&value)
void SetDetailType(Aws::String &&value)
void SetTime(const Aws::Utils::DateTime &value)
bool DetailHasBeenSet() const
const Aws::Vector< Aws::String > & GetResources() const
bool TraceHeaderHasBeenSet() const
void SetSource(const Aws::String &value)
void SetTime(Aws::Utils::DateTime &&value)
void SetEventBusName(Aws::String &&value)
const Aws::String & GetDetail() const
void SetEventBusName(const char *value)
PutEventsRequestEntry & WithResources(Aws::Vector< Aws::String > &&value)
bool SourceHasBeenSet() const
void SetSource(const char *value)
PutEventsRequestEntry & WithDetailType(const char *value)
void SetEventBusName(const Aws::String &value)
PutEventsRequestEntry & WithDetail(Aws::String &&value)
const Aws::String & GetDetailType() const
const Aws::String & GetTraceHeader() const
PutEventsRequestEntry & WithEventBusName(const char *value)
PutEventsRequestEntry & WithSource(const Aws::String &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