AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PutPartnerEventsRequestEntry.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/eventbridge/EventBridge_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EventBridge {
22namespace Model {
23
31 public:
32 AWS_EVENTBRIDGE_API PutPartnerEventsRequestEntry() = default;
35 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
42 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
43 template <typename TimeT = Aws::Utils::DateTime>
44 void SetTime(TimeT&& value) {
45 m_timeHasBeenSet = true;
46 m_time = std::forward<TimeT>(value);
47 }
48 template <typename TimeT = Aws::Utils::DateTime>
50 SetTime(std::forward<TimeT>(value));
51 return *this;
52 }
54
56
65 inline const Aws::String& GetSource() const { return m_source; }
66 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
67 template <typename SourceT = Aws::String>
68 void SetSource(SourceT&& value) {
69 m_sourceHasBeenSet = true;
70 m_source = std::forward<SourceT>(value);
71 }
72 template <typename SourceT = Aws::String>
74 SetSource(std::forward<SourceT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
86 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
87 template <typename ResourcesT = Aws::Vector<Aws::String>>
88 void SetResources(ResourcesT&& value) {
89 m_resourcesHasBeenSet = true;
90 m_resources = std::forward<ResourcesT>(value);
91 }
92 template <typename ResourcesT = Aws::Vector<Aws::String>>
94 SetResources(std::forward<ResourcesT>(value));
95 return *this;
96 }
97 template <typename ResourcesT = Aws::String>
99 m_resourcesHasBeenSet = true;
100 m_resources.emplace_back(std::forward<ResourcesT>(value));
101 return *this;
102 }
104
106
115 inline const Aws::String& GetDetailType() const { return m_detailType; }
116 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
117 template <typename DetailTypeT = Aws::String>
118 void SetDetailType(DetailTypeT&& value) {
119 m_detailTypeHasBeenSet = true;
120 m_detailType = std::forward<DetailTypeT>(value);
121 }
122 template <typename DetailTypeT = Aws::String>
124 SetDetailType(std::forward<DetailTypeT>(value));
125 return *this;
126 }
128
130
139 inline const Aws::String& GetDetail() const { return m_detail; }
140 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
141 template <typename DetailT = Aws::String>
142 void SetDetail(DetailT&& value) {
143 m_detailHasBeenSet = true;
144 m_detail = std::forward<DetailT>(value);
145 }
146 template <typename DetailT = Aws::String>
148 SetDetail(std::forward<DetailT>(value));
149 return *this;
150 }
152 private:
153 Aws::Utils::DateTime m_time{};
154
155 Aws::String m_source;
156
157 Aws::Vector<Aws::String> m_resources;
158
159 Aws::String m_detailType;
160
161 Aws::String m_detail;
162 bool m_timeHasBeenSet = false;
163 bool m_sourceHasBeenSet = false;
164 bool m_resourcesHasBeenSet = false;
165 bool m_detailTypeHasBeenSet = false;
166 bool m_detailHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace EventBridge
171} // namespace Aws
void SetDetail(DetailT &&value)
AWS_EVENTBRIDGE_API PutPartnerEventsRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SourceHasBeenSet() const
const Aws::String & GetDetail() const
const Aws::Utils::DateTime & GetTime() const
PutPartnerEventsRequestEntry & WithTime(TimeT &&value)
void SetTime(TimeT &&value)
bool DetailTypeHasBeenSet() const
PutPartnerEventsRequestEntry & AddResources(ResourcesT &&value)
PutPartnerEventsRequestEntry & WithDetailType(DetailTypeT &&value)
const Aws::Vector< Aws::String > & GetResources() const
AWS_EVENTBRIDGE_API PutPartnerEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue)
PutPartnerEventsRequestEntry & WithResources(ResourcesT &&value)
const Aws::String & GetSource() const
PutPartnerEventsRequestEntry & WithDetail(DetailT &&value)
PutPartnerEventsRequestEntry & WithSource(SourceT &&value)
void SetResources(ResourcesT &&value)
bool TimeHasBeenSet() const
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
bool DetailHasBeenSet() const
void SetDetailType(DetailTypeT &&value)
const Aws::String & GetDetailType() const
void SetSource(SourceT &&value)
bool ResourcesHasBeenSet() const
AWS_EVENTBRIDGE_API PutPartnerEventsRequestEntry()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue