AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CloudFunctionConfiguration.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/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:
36 AWS_S3_API CloudFunctionConfiguration() = default;
39
40 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 CloudFunctionConfiguration& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
61 template<typename EventsT = Aws::Vector<Event>>
62 CloudFunctionConfiguration& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
63 inline CloudFunctionConfiguration& AddEvents(Event value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
65
67
71 inline const Aws::String& GetCloudFunction() const { return m_cloudFunction; }
72 inline bool CloudFunctionHasBeenSet() const { return m_cloudFunctionHasBeenSet; }
73 template<typename CloudFunctionT = Aws::String>
74 void SetCloudFunction(CloudFunctionT&& value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction = std::forward<CloudFunctionT>(value); }
75 template<typename CloudFunctionT = Aws::String>
76 CloudFunctionConfiguration& WithCloudFunction(CloudFunctionT&& value) { SetCloudFunction(std::forward<CloudFunctionT>(value)); return *this;}
78
80
83 inline const Aws::String& GetInvocationRole() const { return m_invocationRole; }
84 inline bool InvocationRoleHasBeenSet() const { return m_invocationRoleHasBeenSet; }
85 template<typename InvocationRoleT = Aws::String>
86 void SetInvocationRole(InvocationRoleT&& value) { m_invocationRoleHasBeenSet = true; m_invocationRole = std::forward<InvocationRoleT>(value); }
87 template<typename InvocationRoleT = Aws::String>
88 CloudFunctionConfiguration& WithInvocationRole(InvocationRoleT&& value) { SetInvocationRole(std::forward<InvocationRoleT>(value)); return *this;}
90 private:
91
92 Aws::String m_id;
93 bool m_idHasBeenSet = false;
94
95 Aws::Vector<Event> m_events;
96 bool m_eventsHasBeenSet = false;
97
98 Aws::String m_cloudFunction;
99 bool m_cloudFunctionHasBeenSet = false;
100
101 Aws::String m_invocationRole;
102 bool m_invocationRoleHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace S3
107} // 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