AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutPartnerEventsRequestEntry.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_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 EventBridge
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EVENTBRIDGE_API PutPartnerEventsRequestEntry();
40 AWS_EVENTBRIDGE_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 inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
50 inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
51 inline PutPartnerEventsRequestEntry& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
52 inline PutPartnerEventsRequestEntry& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
54
56
65 inline const Aws::String& GetSource() const{ return m_source; }
66 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
67 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
68 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
69 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
70 inline PutPartnerEventsRequestEntry& WithSource(const Aws::String& value) { SetSource(value); return *this;}
71 inline PutPartnerEventsRequestEntry& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
72 inline PutPartnerEventsRequestEntry& WithSource(const char* value) { SetSource(value); return *this;}
74
76
81 inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
82 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
83 inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
84 inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
86 inline PutPartnerEventsRequestEntry& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
87 inline PutPartnerEventsRequestEntry& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
88 inline PutPartnerEventsRequestEntry& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
89 inline PutPartnerEventsRequestEntry& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
91
93
102 inline const Aws::String& GetDetailType() const{ return m_detailType; }
103 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
104 inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
105 inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); }
106 inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); }
107 inline PutPartnerEventsRequestEntry& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;}
108 inline PutPartnerEventsRequestEntry& WithDetailType(Aws::String&& value) { SetDetailType(std::move(value)); return *this;}
109 inline PutPartnerEventsRequestEntry& WithDetailType(const char* value) { SetDetailType(value); return *this;}
111
113
122 inline const Aws::String& GetDetail() const{ return m_detail; }
123 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
124 inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; }
125 inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
126 inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); }
127 inline PutPartnerEventsRequestEntry& WithDetail(const Aws::String& value) { SetDetail(value); return *this;}
128 inline PutPartnerEventsRequestEntry& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;}
129 inline PutPartnerEventsRequestEntry& WithDetail(const char* value) { SetDetail(value); return *this;}
131 private:
132
134 bool m_timeHasBeenSet = false;
135
136 Aws::String m_source;
137 bool m_sourceHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_resources;
140 bool m_resourcesHasBeenSet = false;
141
142 Aws::String m_detailType;
143 bool m_detailTypeHasBeenSet = false;
144
145 Aws::String m_detail;
146 bool m_detailHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace EventBridge
151} // namespace Aws
AWS_EVENTBRIDGE_API PutPartnerEventsRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SourceHasBeenSet() const
PutPartnerEventsRequestEntry & WithDetail(const Aws::String &value)
void SetDetail(const Aws::String &value)
const Aws::String & GetDetail() const
PutPartnerEventsRequestEntry & WithSource(const char *value)
const Aws::Utils::DateTime & GetTime() const
bool DetailTypeHasBeenSet() const
void SetResources(Aws::Vector< Aws::String > &&value)
void SetSource(const char *value)
PutPartnerEventsRequestEntry & AddResources(Aws::String &&value)
void SetDetail(Aws::String &&value)
PutPartnerEventsRequestEntry & WithDetail(Aws::String &&value)
const Aws::Vector< Aws::String > & GetResources() const
PutPartnerEventsRequestEntry & AddResources(const Aws::String &value)
PutPartnerEventsRequestEntry & WithDetailType(Aws::String &&value)
AWS_EVENTBRIDGE_API PutPartnerEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSource() const
PutPartnerEventsRequestEntry & AddResources(const char *value)
void SetTime(const Aws::Utils::DateTime &value)
void SetTime(Aws::Utils::DateTime &&value)
void SetResources(const Aws::Vector< Aws::String > &value)
bool TimeHasBeenSet() const
PutPartnerEventsRequestEntry & WithTime(Aws::Utils::DateTime &&value)
void SetDetailType(const char *value)
void SetSource(Aws::String &&value)
PutPartnerEventsRequestEntry & WithDetailType(const char *value)
PutPartnerEventsRequestEntry & WithSource(Aws::String &&value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
bool DetailHasBeenSet() const
PutPartnerEventsRequestEntry & WithTime(const Aws::Utils::DateTime &value)
const Aws::String & GetDetailType() const
bool ResourcesHasBeenSet() const
void SetDetailType(Aws::String &&value)
void SetDetail(const char *value)
PutPartnerEventsRequestEntry & WithResources(const Aws::Vector< Aws::String > &value)
PutPartnerEventsRequestEntry & WithDetail(const char *value)
void SetDetailType(const Aws::String &value)
PutPartnerEventsRequestEntry & WithResources(Aws::Vector< Aws::String > &&value)
PutPartnerEventsRequestEntry & WithSource(const Aws::String &value)
void SetSource(const Aws::String &value)
AWS_EVENTBRIDGE_API PutPartnerEventsRequestEntry()
PutPartnerEventsRequestEntry & WithDetailType(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