AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
49 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
50 inline CloudFunctionConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
51 inline CloudFunctionConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
52 inline CloudFunctionConfiguration& WithId(const char* value) { SetId(value); return *this;}
54
56
59 inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
60 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
61 inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
62 inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
63 inline CloudFunctionConfiguration& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
64 inline CloudFunctionConfiguration& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
65 inline CloudFunctionConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
66 inline CloudFunctionConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
68
70
74 inline const Aws::String& GetCloudFunction() const{ return m_cloudFunction; }
75 inline bool CloudFunctionHasBeenSet() const { return m_cloudFunctionHasBeenSet; }
76 inline void SetCloudFunction(const Aws::String& value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction = value; }
77 inline void SetCloudFunction(Aws::String&& value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction = std::move(value); }
78 inline void SetCloudFunction(const char* value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction.assign(value); }
79 inline CloudFunctionConfiguration& WithCloudFunction(const Aws::String& value) { SetCloudFunction(value); return *this;}
80 inline CloudFunctionConfiguration& WithCloudFunction(Aws::String&& value) { SetCloudFunction(std::move(value)); return *this;}
81 inline CloudFunctionConfiguration& WithCloudFunction(const char* value) { SetCloudFunction(value); return *this;}
83
85
88 inline const Aws::String& GetInvocationRole() const{ return m_invocationRole; }
89 inline bool InvocationRoleHasBeenSet() const { return m_invocationRoleHasBeenSet; }
90 inline void SetInvocationRole(const Aws::String& value) { m_invocationRoleHasBeenSet = true; m_invocationRole = value; }
91 inline void SetInvocationRole(Aws::String&& value) { m_invocationRoleHasBeenSet = true; m_invocationRole = std::move(value); }
92 inline void SetInvocationRole(const char* value) { m_invocationRoleHasBeenSet = true; m_invocationRole.assign(value); }
93 inline CloudFunctionConfiguration& WithInvocationRole(const Aws::String& value) { SetInvocationRole(value); return *this;}
94 inline CloudFunctionConfiguration& WithInvocationRole(Aws::String&& value) { SetInvocationRole(std::move(value)); return *this;}
95 inline CloudFunctionConfiguration& WithInvocationRole(const char* value) { SetInvocationRole(value); return *this;}
97 private:
98
99 Aws::String m_id;
100 bool m_idHasBeenSet = false;
101
102 Aws::Vector<Event> m_events;
103 bool m_eventsHasBeenSet = false;
104
105 Aws::String m_cloudFunction;
106 bool m_cloudFunctionHasBeenSet = false;
107
108 Aws::String m_invocationRole;
109 bool m_invocationRoleHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace S3
114} // namespace Aws
CloudFunctionConfiguration & WithInvocationRole(Aws::String &&value)
AWS_S3_API CloudFunctionConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
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