AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LambdaFunctionConfiguration.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3-crt/model/NotificationConfigurationFilter.h>
11#include <aws/s3-crt/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 S3Crt
24{
25namespace Model
26{
27
35 {
36 public:
40
41 AWS_S3CRT_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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline LambdaFunctionConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline LambdaFunctionConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline LambdaFunctionConfiguration& WithId(const char* value) { SetId(value); return *this;}
55
57
61 inline const Aws::String& GetLambdaFunctionArn() const{ return m_lambdaFunctionArn; }
62 inline bool LambdaFunctionArnHasBeenSet() const { return m_lambdaFunctionArnHasBeenSet; }
63 inline void SetLambdaFunctionArn(const Aws::String& value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = value; }
64 inline void SetLambdaFunctionArn(Aws::String&& value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = std::move(value); }
65 inline void SetLambdaFunctionArn(const char* value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn.assign(value); }
67 inline LambdaFunctionConfiguration& WithLambdaFunctionArn(Aws::String&& value) { SetLambdaFunctionArn(std::move(value)); return *this;}
68 inline LambdaFunctionConfiguration& WithLambdaFunctionArn(const char* value) { SetLambdaFunctionArn(value); return *this;}
70
72
78 inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
79 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
80 inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
81 inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
82 inline LambdaFunctionConfiguration& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
83 inline LambdaFunctionConfiguration& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
84 inline LambdaFunctionConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
85 inline LambdaFunctionConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
87
89
90 inline const NotificationConfigurationFilter& GetFilter() const{ return m_filter; }
91 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
92 inline void SetFilter(const NotificationConfigurationFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
93 inline void SetFilter(NotificationConfigurationFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
95 inline LambdaFunctionConfiguration& WithFilter(NotificationConfigurationFilter&& value) { SetFilter(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_id;
100 bool m_idHasBeenSet = false;
101
102 Aws::String m_lambdaFunctionArn;
103 bool m_lambdaFunctionArnHasBeenSet = false;
104
105 Aws::Vector<Event> m_events;
106 bool m_eventsHasBeenSet = false;
107
109 bool m_filterHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace S3Crt
114} // namespace Aws
LambdaFunctionConfiguration & WithLambdaFunctionArn(const Aws::String &value)
AWS_S3CRT_API LambdaFunctionConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFilter(const NotificationConfigurationFilter &value)
LambdaFunctionConfiguration & WithLambdaFunctionArn(const char *value)
LambdaFunctionConfiguration & WithId(const char *value)
LambdaFunctionConfiguration & WithEvents(const Aws::Vector< Event > &value)
void SetFilter(NotificationConfigurationFilter &&value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LambdaFunctionConfiguration & AddEvents(Event &&value)
LambdaFunctionConfiguration & WithLambdaFunctionArn(Aws::String &&value)
AWS_S3CRT_API LambdaFunctionConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
LambdaFunctionConfiguration & WithFilter(NotificationConfigurationFilter &&value)
LambdaFunctionConfiguration & WithEvents(Aws::Vector< Event > &&value)
const NotificationConfigurationFilter & GetFilter() const
void SetEvents(const Aws::Vector< Event > &value)
LambdaFunctionConfiguration & WithId(const Aws::String &value)
LambdaFunctionConfiguration & WithId(Aws::String &&value)
LambdaFunctionConfiguration & WithFilter(const NotificationConfigurationFilter &value)
LambdaFunctionConfiguration & AddEvents(const Event &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector