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/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:
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 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 S3
114} // namespace Aws
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
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