AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LambdaFunctionConfiguration.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3/model/NotificationConfigurationFilter.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:
37 AWS_S3_API LambdaFunctionConfiguration() = default;
40
41 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 LambdaFunctionConfiguration& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = std::forward<LambdaFunctionArnT>(value); }
63 template<typename LambdaFunctionArnT = Aws::String>
64 LambdaFunctionConfiguration& WithLambdaFunctionArn(LambdaFunctionArnT&& value) { SetLambdaFunctionArn(std::forward<LambdaFunctionArnT>(value)); return *this;}
66
68
74 inline const Aws::Vector<Event>& GetEvents() const { return m_events; }
75 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
76 template<typename EventsT = Aws::Vector<Event>>
77 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
78 template<typename EventsT = Aws::Vector<Event>>
79 LambdaFunctionConfiguration& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
80 inline LambdaFunctionConfiguration& AddEvents(Event value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
82
84
85 inline const NotificationConfigurationFilter& GetFilter() const { return m_filter; }
86 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
87 template<typename FilterT = NotificationConfigurationFilter>
88 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
89 template<typename FilterT = NotificationConfigurationFilter>
90 LambdaFunctionConfiguration& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
92 private:
93
94 Aws::String m_id;
95 bool m_idHasBeenSet = false;
96
97 Aws::String m_lambdaFunctionArn;
98 bool m_lambdaFunctionArnHasBeenSet = false;
99
100 Aws::Vector<Event> m_events;
101 bool m_eventsHasBeenSet = false;
102
104 bool m_filterHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace S3
109} // 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