AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutPartnerEventsRequestEntry.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
35 {
36 public:
37 AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry() = default;
38 AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
48 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
49 template<typename TimeT = Aws::Utils::DateTime>
50 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
51 template<typename TimeT = Aws::Utils::DateTime>
52 PutPartnerEventsRequestEntry& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
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) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
63 template<typename SourceT = Aws::String>
64 PutPartnerEventsRequestEntry& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
66
68
73 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
74 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
75 template<typename ResourcesT = Aws::Vector<Aws::String>>
76 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
77 template<typename ResourcesT = Aws::Vector<Aws::String>>
78 PutPartnerEventsRequestEntry& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
79 template<typename ResourcesT = Aws::String>
80 PutPartnerEventsRequestEntry& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
82
84
88 inline const Aws::String& GetDetailType() const { return m_detailType; }
89 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
90 template<typename DetailTypeT = Aws::String>
91 void SetDetailType(DetailTypeT&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::forward<DetailTypeT>(value); }
92 template<typename DetailTypeT = Aws::String>
93 PutPartnerEventsRequestEntry& WithDetailType(DetailTypeT&& value) { SetDetailType(std::forward<DetailTypeT>(value)); return *this;}
95
97
101 inline const Aws::String& GetDetail() const { return m_detail; }
102 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
103 template<typename DetailT = Aws::String>
104 void SetDetail(DetailT&& value) { m_detailHasBeenSet = true; m_detail = std::forward<DetailT>(value); }
105 template<typename DetailT = Aws::String>
106 PutPartnerEventsRequestEntry& WithDetail(DetailT&& value) { SetDetail(std::forward<DetailT>(value)); return *this;}
108 private:
109
110 Aws::Utils::DateTime m_time{};
111 bool m_timeHasBeenSet = false;
112
113 Aws::String m_source;
114 bool m_sourceHasBeenSet = false;
115
116 Aws::Vector<Aws::String> m_resources;
117 bool m_resourcesHasBeenSet = false;
118
119 Aws::String m_detailType;
120 bool m_detailTypeHasBeenSet = false;
121
122 Aws::String m_detail;
123 bool m_detailHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace CloudWatchEvents
128} // 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