AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/events/CloudWatchEvents_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchEvents {
22namespace Model {
23
31 public:
32 AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry() = default;
33 AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHEVENTS_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
59 inline const Aws::String& GetSource() const { return m_source; }
60 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
61 template <typename SourceT = Aws::String>
62 void SetSource(SourceT&& value) {
63 m_sourceHasBeenSet = true;
64 m_source = std::forward<SourceT>(value);
65 }
66 template <typename SourceT = Aws::String>
68 SetSource(std::forward<SourceT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
80 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
81 template <typename ResourcesT = Aws::Vector<Aws::String>>
82 void SetResources(ResourcesT&& value) {
83 m_resourcesHasBeenSet = true;
84 m_resources = std::forward<ResourcesT>(value);
85 }
86 template <typename ResourcesT = Aws::Vector<Aws::String>>
88 SetResources(std::forward<ResourcesT>(value));
89 return *this;
90 }
91 template <typename ResourcesT = Aws::String>
93 m_resourcesHasBeenSet = true;
94 m_resources.emplace_back(std::forward<ResourcesT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetDetailType() const { return m_detailType; }
105 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
106 template <typename DetailTypeT = Aws::String>
107 void SetDetailType(DetailTypeT&& value) {
108 m_detailTypeHasBeenSet = true;
109 m_detailType = std::forward<DetailTypeT>(value);
110 }
111 template <typename DetailTypeT = Aws::String>
113 SetDetailType(std::forward<DetailTypeT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::String& GetDetail() const { return m_detail; }
124 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
125 template <typename DetailT = Aws::String>
126 void SetDetail(DetailT&& value) {
127 m_detailHasBeenSet = true;
128 m_detail = std::forward<DetailT>(value);
129 }
130 template <typename DetailT = Aws::String>
132 SetDetail(std::forward<DetailT>(value));
133 return *this;
134 }
136 private:
137 Aws::Utils::DateTime m_time{};
138
139 Aws::String m_source;
140
141 Aws::Vector<Aws::String> m_resources;
142
143 Aws::String m_detailType;
144
145 Aws::String m_detail;
146 bool m_timeHasBeenSet = false;
147 bool m_sourceHasBeenSet = false;
148 bool m_resourcesHasBeenSet = false;
149 bool m_detailTypeHasBeenSet = false;
150 bool m_detailHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace CloudWatchEvents
155} // namespace Aws
bool TimeHasBeenSet() const
bool DetailTypeHasBeenSet() const
bool ResourcesHasBeenSet() const
PutPartnerEventsRequestEntry & AddResources(ResourcesT &&value)
void SetDetailType(DetailTypeT &&value)
AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue)
bool DetailHasBeenSet() const
const Aws::Vector< Aws::String > & GetResources() const
void SetDetail(DetailT &&value)
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSource(SourceT &&value)
void SetTime(TimeT &&value)
PutPartnerEventsRequestEntry & WithTime(TimeT &&value)
AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry()=default
AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SourceHasBeenSet() const
PutPartnerEventsRequestEntry & WithResources(ResourcesT &&value)
const Aws::String & GetSource() const
const Aws::String & GetDetailType() const
const Aws::String & GetDetail() const
void SetResources(ResourcesT &&value)
PutPartnerEventsRequestEntry & WithDetailType(DetailTypeT &&value)
PutPartnerEventsRequestEntry & WithDetail(DetailT &&value)
const Aws::Utils::DateTime & GetTime() const
PutPartnerEventsRequestEntry & WithSource(SourceT &&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