AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LambdaFunctionConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3/S3_EXPORTS.h>
10#include <aws/s3/model/Event.h>
11#include <aws/s3/model/NotificationConfigurationFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3 {
22namespace Model {
23
31 public:
32 AWS_S3_API LambdaFunctionConfiguration() = default;
35
36 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
37
39
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetLambdaFunctionArn() const { return m_lambdaFunctionArn; }
60 inline bool LambdaFunctionArnHasBeenSet() const { return m_lambdaFunctionArnHasBeenSet; }
61 template <typename LambdaFunctionArnT = Aws::String>
62 void SetLambdaFunctionArn(LambdaFunctionArnT&& value) {
63 m_lambdaFunctionArnHasBeenSet = true;
64 m_lambdaFunctionArn = std::forward<LambdaFunctionArnT>(value);
65 }
66 template <typename LambdaFunctionArnT = Aws::String>
68 SetLambdaFunctionArn(std::forward<LambdaFunctionArnT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::Vector<Event>& GetEvents() const { return m_events; }
81 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
82 template <typename EventsT = Aws::Vector<Event>>
83 void SetEvents(EventsT&& value) {
84 m_eventsHasBeenSet = true;
85 m_events = std::forward<EventsT>(value);
86 }
87 template <typename EventsT = Aws::Vector<Event>>
89 SetEvents(std::forward<EventsT>(value));
90 return *this;
91 }
93 m_eventsHasBeenSet = true;
94 m_events.push_back(value);
95 return *this;
96 }
98
100
101 inline const NotificationConfigurationFilter& GetFilter() const { return m_filter; }
102 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
103 template <typename FilterT = NotificationConfigurationFilter>
104 void SetFilter(FilterT&& value) {
105 m_filterHasBeenSet = true;
106 m_filter = std::forward<FilterT>(value);
107 }
108 template <typename FilterT = NotificationConfigurationFilter>
110 SetFilter(std::forward<FilterT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_id;
116
117 Aws::String m_lambdaFunctionArn;
118
119 Aws::Vector<Event> m_events;
120
122 bool m_idHasBeenSet = false;
123 bool m_lambdaFunctionArnHasBeenSet = false;
124 bool m_eventsHasBeenSet = false;
125 bool m_filterHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace S3
130} // namespace Aws
LambdaFunctionConfiguration & WithLambdaFunctionArn(LambdaFunctionArnT &&value)
AWS_S3_API LambdaFunctionConfiguration()=default
AWS_S3_API LambdaFunctionConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const NotificationConfigurationFilter & GetFilter() const
LambdaFunctionConfiguration & WithId(IdT &&value)
LambdaFunctionConfiguration & WithFilter(FilterT &&value)
AWS_S3_API LambdaFunctionConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
LambdaFunctionConfiguration & WithEvents(EventsT &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LambdaFunctionConfiguration & AddEvents(Event value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector