AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
LambdaFunctionConfiguration.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/Event.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace S3
24{
25namespace Model
26{
27
35 {
36 public:
40
42
43
44
45 inline const Aws::String& GetId() const{ return m_id; }
46
47
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49
50
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52
53
54 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
55
56
57 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
58
59
60 inline LambdaFunctionConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
61
62
63 inline LambdaFunctionConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
64
65
66 inline LambdaFunctionConfiguration& WithId(const char* value) { SetId(value); return *this;}
67
68
73 inline const Aws::String& GetLambdaFunctionArn() const{ return m_lambdaFunctionArn; }
74
79 inline bool LambdaFunctionArnHasBeenSet() const { return m_lambdaFunctionArnHasBeenSet; }
80
85 inline void SetLambdaFunctionArn(const Aws::String& value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = value; }
86
91 inline void SetLambdaFunctionArn(Aws::String&& value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = std::move(value); }
92
97 inline void SetLambdaFunctionArn(const char* value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn.assign(value); }
98
104
109 inline LambdaFunctionConfiguration& WithLambdaFunctionArn(Aws::String&& value) { SetLambdaFunctionArn(std::move(value)); return *this;}
110
115 inline LambdaFunctionConfiguration& WithLambdaFunctionArn(const char* value) { SetLambdaFunctionArn(value); return *this;}
116
117
124 inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
125
132 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
133
140 inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
141
148 inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
149
156 inline LambdaFunctionConfiguration& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
157
164 inline LambdaFunctionConfiguration& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
165
172 inline LambdaFunctionConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
173
180 inline LambdaFunctionConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
181
182
183
184 inline const NotificationConfigurationFilter& GetFilter() const{ return m_filter; }
185
186
187 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
188
189
190 inline void SetFilter(const NotificationConfigurationFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
191
192
193 inline void SetFilter(NotificationConfigurationFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
194
195
197
198
199 inline LambdaFunctionConfiguration& WithFilter(NotificationConfigurationFilter&& value) { SetFilter(std::move(value)); return *this;}
200
201 private:
202
203 Aws::String m_id;
204 bool m_idHasBeenSet = false;
205
206 Aws::String m_lambdaFunctionArn;
207 bool m_lambdaFunctionArnHasBeenSet = false;
208
209 Aws::Vector<Event> m_events;
210 bool m_eventsHasBeenSet = false;
211
213 bool m_filterHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace S3
218} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetFilter(NotificationConfigurationFilter &&value)
AWS_S3_API LambdaFunctionConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LambdaFunctionConfiguration & WithFilter(const NotificationConfigurationFilter &value)
const NotificationConfigurationFilter & GetFilter() const
LambdaFunctionConfiguration & WithLambdaFunctionArn(Aws::String &&value)
LambdaFunctionConfiguration & AddEvents(const Event &value)
void SetFilter(const NotificationConfigurationFilter &value)
LambdaFunctionConfiguration & WithEvents(Aws::Vector< Event > &&value)
LambdaFunctionConfiguration & WithId(Aws::String &&value)
void SetEvents(const Aws::Vector< Event > &value)
LambdaFunctionConfiguration & WithId(const Aws::String &value)
LambdaFunctionConfiguration & WithEvents(const Aws::Vector< Event > &value)
LambdaFunctionConfiguration & WithId(const char *value)
AWS_S3_API LambdaFunctionConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
LambdaFunctionConfiguration & WithLambdaFunctionArn(const Aws::String &value)
LambdaFunctionConfiguration & WithLambdaFunctionArn(const char *value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Vector< Event > & GetEvents() const
LambdaFunctionConfiguration & WithFilter(NotificationConfigurationFilter &&value)
LambdaFunctionConfiguration & AddEvents(Event &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector