AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CloudFunctionConfiguration.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <aws/s3/model/Event.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3
23{
24namespace Model
25{
26
34 {
35 public:
39
41
42
43
44 inline const Aws::String& GetId() const{ return m_id; }
45
46
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48
49
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51
52
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54
55
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57
58
59 inline CloudFunctionConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
60
61
62 inline CloudFunctionConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
63
64
65 inline CloudFunctionConfiguration& WithId(const char* value) { SetId(value); return *this;}
66
67
71 inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
72
76 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
77
81 inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
82
86 inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
87
91 inline CloudFunctionConfiguration& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
92
96 inline CloudFunctionConfiguration& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
97
101 inline CloudFunctionConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
102
106 inline CloudFunctionConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
107
108
113 inline const Aws::String& GetCloudFunction() const{ return m_cloudFunction; }
114
119 inline bool CloudFunctionHasBeenSet() const { return m_cloudFunctionHasBeenSet; }
120
125 inline void SetCloudFunction(const Aws::String& value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction = value; }
126
131 inline void SetCloudFunction(Aws::String&& value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction = std::move(value); }
132
137 inline void SetCloudFunction(const char* value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction.assign(value); }
138
143 inline CloudFunctionConfiguration& WithCloudFunction(const Aws::String& value) { SetCloudFunction(value); return *this;}
144
149 inline CloudFunctionConfiguration& WithCloudFunction(Aws::String&& value) { SetCloudFunction(std::move(value)); return *this;}
150
155 inline CloudFunctionConfiguration& WithCloudFunction(const char* value) { SetCloudFunction(value); return *this;}
156
157
161 inline const Aws::String& GetInvocationRole() const{ return m_invocationRole; }
162
166 inline bool InvocationRoleHasBeenSet() const { return m_invocationRoleHasBeenSet; }
167
171 inline void SetInvocationRole(const Aws::String& value) { m_invocationRoleHasBeenSet = true; m_invocationRole = value; }
172
176 inline void SetInvocationRole(Aws::String&& value) { m_invocationRoleHasBeenSet = true; m_invocationRole = std::move(value); }
177
181 inline void SetInvocationRole(const char* value) { m_invocationRoleHasBeenSet = true; m_invocationRole.assign(value); }
182
186 inline CloudFunctionConfiguration& WithInvocationRole(const Aws::String& value) { SetInvocationRole(value); return *this;}
187
191 inline CloudFunctionConfiguration& WithInvocationRole(Aws::String&& value) { SetInvocationRole(std::move(value)); return *this;}
192
196 inline CloudFunctionConfiguration& WithInvocationRole(const char* value) { SetInvocationRole(value); return *this;}
197
198 private:
199
200 Aws::String m_id;
201 bool m_idHasBeenSet = false;
202
203 Aws::Vector<Event> m_events;
204 bool m_eventsHasBeenSet = false;
205
206 Aws::String m_cloudFunction;
207 bool m_cloudFunctionHasBeenSet = false;
208
209 Aws::String m_invocationRole;
210 bool m_invocationRoleHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace S3
215} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
CloudFunctionConfiguration & WithInvocationRole(Aws::String &&value)
AWS_S3_API CloudFunctionConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEvents(Aws::Vector< Event > &&value)
CloudFunctionConfiguration & WithEvents(Aws::Vector< Event > &&value)
const Aws::Vector< Event > & GetEvents() const
CloudFunctionConfiguration & WithCloudFunction(Aws::String &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetEvents(const Aws::Vector< Event > &value)
CloudFunctionConfiguration & AddEvents(Event &&value)
CloudFunctionConfiguration & WithInvocationRole(const Aws::String &value)
CloudFunctionConfiguration & WithId(const Aws::String &value)
CloudFunctionConfiguration & WithCloudFunction(const Aws::String &value)
AWS_S3_API CloudFunctionConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CloudFunctionConfiguration & WithId(Aws::String &&value)
CloudFunctionConfiguration & WithInvocationRole(const char *value)
CloudFunctionConfiguration & WithId(const char *value)
CloudFunctionConfiguration & WithCloudFunction(const char *value)
CloudFunctionConfiguration & AddEvents(const Event &value)
CloudFunctionConfiguration & WithEvents(const Aws::Vector< Event > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector