AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CloudFunctionConfiguration.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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3 {
21namespace Model {
22
30 public:
31 AWS_S3_API CloudFunctionConfiguration() = default;
34
35 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Event>& GetEvents() const { return m_events; }
58 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
59 template <typename EventsT = Aws::Vector<Event>>
60 void SetEvents(EventsT&& value) {
61 m_eventsHasBeenSet = true;
62 m_events = std::forward<EventsT>(value);
63 }
64 template <typename EventsT = Aws::Vector<Event>>
66 SetEvents(std::forward<EventsT>(value));
67 return *this;
68 }
70 m_eventsHasBeenSet = true;
71 m_events.push_back(value);
72 return *this;
73 }
75
77
81 inline const Aws::String& GetCloudFunction() const { return m_cloudFunction; }
82 inline bool CloudFunctionHasBeenSet() const { return m_cloudFunctionHasBeenSet; }
83 template <typename CloudFunctionT = Aws::String>
84 void SetCloudFunction(CloudFunctionT&& value) {
85 m_cloudFunctionHasBeenSet = true;
86 m_cloudFunction = std::forward<CloudFunctionT>(value);
87 }
88 template <typename CloudFunctionT = Aws::String>
90 SetCloudFunction(std::forward<CloudFunctionT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetInvocationRole() const { return m_invocationRole; }
100 inline bool InvocationRoleHasBeenSet() const { return m_invocationRoleHasBeenSet; }
101 template <typename InvocationRoleT = Aws::String>
102 void SetInvocationRole(InvocationRoleT&& value) {
103 m_invocationRoleHasBeenSet = true;
104 m_invocationRole = std::forward<InvocationRoleT>(value);
105 }
106 template <typename InvocationRoleT = Aws::String>
108 SetInvocationRole(std::forward<InvocationRoleT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_id;
114
115 Aws::Vector<Event> m_events;
116
117 Aws::String m_cloudFunction;
118
119 Aws::String m_invocationRole;
120 bool m_idHasBeenSet = false;
121 bool m_eventsHasBeenSet = false;
122 bool m_cloudFunctionHasBeenSet = false;
123 bool m_invocationRoleHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace S3
128} // namespace Aws
AWS_S3_API CloudFunctionConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Event > & GetEvents() const
CloudFunctionConfiguration & WithInvocationRole(InvocationRoleT &&value)
CloudFunctionConfiguration & WithEvents(EventsT &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CloudFunctionConfiguration & WithCloudFunction(CloudFunctionT &&value)
CloudFunctionConfiguration & AddEvents(Event value)
AWS_S3_API CloudFunctionConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API CloudFunctionConfiguration()=default
CloudFunctionConfiguration & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector