AWS SDK for C++  0.14.3
AWS SDK for C++
CloudFunctionConfiguration.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/s3/S3_EXPORTS.h>
19 #include <aws/s3/model/Event.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace S3
31 {
32 namespace Model
33 {
34 
36  {
37  public:
40  CloudFunctionConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
44 
45  inline const Aws::String& GetId() const{ return m_id; }
46 
47 
48  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 
50 
51  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
52 
53 
54  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 
56 
57  inline CloudFunctionConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
58 
59 
60  inline CloudFunctionConfiguration& WithId(Aws::String&& value) { SetId(value); return *this;}
61 
62 
63  inline CloudFunctionConfiguration& WithId(const char* value) { SetId(value); return *this;}
64 
65 
66  inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
67 
68 
69  inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
70 
71 
72  inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = value; }
73 
74 
75  inline CloudFunctionConfiguration& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
76 
77 
78  inline CloudFunctionConfiguration& WithEvents(Aws::Vector<Event>&& value) { SetEvents(value); return *this;}
79 
80 
81  inline CloudFunctionConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
82 
83 
84  inline CloudFunctionConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
85 
86 
87  inline const Aws::String& GetCloudFunction() const{ return m_cloudFunction; }
88 
89 
90  inline void SetCloudFunction(const Aws::String& value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction = value; }
91 
92 
93  inline void SetCloudFunction(Aws::String&& value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction = value; }
94 
95 
96  inline void SetCloudFunction(const char* value) { m_cloudFunctionHasBeenSet = true; m_cloudFunction.assign(value); }
97 
98 
99  inline CloudFunctionConfiguration& WithCloudFunction(const Aws::String& value) { SetCloudFunction(value); return *this;}
100 
101 
102  inline CloudFunctionConfiguration& WithCloudFunction(Aws::String&& value) { SetCloudFunction(value); return *this;}
103 
104 
105  inline CloudFunctionConfiguration& WithCloudFunction(const char* value) { SetCloudFunction(value); return *this;}
106 
107 
108  inline const Aws::String& GetInvocationRole() const{ return m_invocationRole; }
109 
110 
111  inline void SetInvocationRole(const Aws::String& value) { m_invocationRoleHasBeenSet = true; m_invocationRole = value; }
112 
113 
114  inline void SetInvocationRole(Aws::String&& value) { m_invocationRoleHasBeenSet = true; m_invocationRole = value; }
115 
116 
117  inline void SetInvocationRole(const char* value) { m_invocationRoleHasBeenSet = true; m_invocationRole.assign(value); }
118 
119 
120  inline CloudFunctionConfiguration& WithInvocationRole(const Aws::String& value) { SetInvocationRole(value); return *this;}
121 
122 
123  inline CloudFunctionConfiguration& WithInvocationRole(Aws::String&& value) { SetInvocationRole(value); return *this;}
124 
125 
126  inline CloudFunctionConfiguration& WithInvocationRole(const char* value) { SetInvocationRole(value); return *this;}
127 
128  private:
129  Aws::String m_id;
130  bool m_idHasBeenSet;
131  Aws::Vector<Event> m_events;
132  bool m_eventsHasBeenSet;
133  Aws::String m_cloudFunction;
134  bool m_cloudFunctionHasBeenSet;
135  Aws::String m_invocationRole;
136  bool m_invocationRoleHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace S3
141 } // namespace Aws
void SetEvents(Aws::Vector< Event > &&value)
CloudFunctionConfiguration & WithCloudFunction(const Aws::String &value)
CloudFunctionConfiguration & WithInvocationRole(const Aws::String &value)
CloudFunctionConfiguration & WithId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
const Aws::Vector< Event > & GetEvents() const
CloudFunctionConfiguration & WithInvocationRole(Aws::String &&value)
CloudFunctionConfiguration & AddEvents(const Event &value)
CloudFunctionConfiguration & WithId(const char *value)
void SetEvents(const Aws::Vector< Event > &value)
CloudFunctionConfiguration & AddEvents(Event &&value)
CloudFunctionConfiguration & WithInvocationRole(const char *value)
CloudFunctionConfiguration & WithEvents(const Aws::Vector< Event > &value)
CloudFunctionConfiguration & WithId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CloudFunctionConfiguration & WithCloudFunction(const char *value)
CloudFunctionConfiguration & WithEvents(Aws::Vector< Event > &&value)
CloudFunctionConfiguration & WithCloudFunction(Aws::String &&value)
JSON (JavaScript Object Notation).