AWS SDK for C++  0.12.9
AWS SDK for C++
LambdaFunctionConfiguration.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>
20 #include <aws/s3/model/Event.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace S3
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  LambdaFunctionConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47 
48 
49  inline const Aws::String& GetId() const{ return m_id; }
50 
51 
52  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 
54 
55  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
56 
57 
58  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
59 
60 
61  inline LambdaFunctionConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
62 
63 
64  inline LambdaFunctionConfiguration& WithId(Aws::String&& value) { SetId(value); return *this;}
65 
66 
67  inline LambdaFunctionConfiguration& WithId(const char* value) { SetId(value); return *this;}
68 
73  inline const Aws::String& GetLambdaFunctionArn() const{ return m_lambdaFunctionArn; }
74 
79  inline void SetLambdaFunctionArn(const Aws::String& value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = value; }
80 
85  inline void SetLambdaFunctionArn(Aws::String&& value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = value; }
86 
91  inline void SetLambdaFunctionArn(const char* value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn.assign(value); }
92 
97  inline LambdaFunctionConfiguration& WithLambdaFunctionArn(const Aws::String& value) { SetLambdaFunctionArn(value); return *this;}
98 
103  inline LambdaFunctionConfiguration& WithLambdaFunctionArn(Aws::String&& value) { SetLambdaFunctionArn(value); return *this;}
104 
109  inline LambdaFunctionConfiguration& WithLambdaFunctionArn(const char* value) { SetLambdaFunctionArn(value); return *this;}
110 
111 
112  inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
113 
114 
115  inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
116 
117 
118  inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = value; }
119 
120 
121  inline LambdaFunctionConfiguration& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
122 
123 
124  inline LambdaFunctionConfiguration& WithEvents(Aws::Vector<Event>&& value) { SetEvents(value); return *this;}
125 
126 
127  inline LambdaFunctionConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
128 
129 
130  inline LambdaFunctionConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
131 
132 
133  inline const NotificationConfigurationFilter& GetFilter() const{ return m_filter; }
134 
135 
136  inline void SetFilter(const NotificationConfigurationFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
137 
138 
139  inline void SetFilter(NotificationConfigurationFilter&& value) { m_filterHasBeenSet = true; m_filter = value; }
140 
141 
142  inline LambdaFunctionConfiguration& WithFilter(const NotificationConfigurationFilter& value) { SetFilter(value); return *this;}
143 
144 
145  inline LambdaFunctionConfiguration& WithFilter(NotificationConfigurationFilter&& value) { SetFilter(value); return *this;}
146 
147  private:
148  Aws::String m_id;
149  bool m_idHasBeenSet;
150  Aws::String m_lambdaFunctionArn;
151  bool m_lambdaFunctionArnHasBeenSet;
152  Aws::Vector<Event> m_events;
153  bool m_eventsHasBeenSet;
155  bool m_filterHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace S3
160 } // namespace Aws
LambdaFunctionConfiguration & WithFilter(const NotificationConfigurationFilter &value)
LambdaFunctionConfiguration & WithLambdaFunctionArn(const char *value)
LambdaFunctionConfiguration & WithId(Aws::String &&value)
LambdaFunctionConfiguration & AddEvents(const Event &value)
LambdaFunctionConfiguration & WithFilter(NotificationConfigurationFilter &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
void SetFilter(NotificationConfigurationFilter &&value)
void SetEvents(const Aws::Vector< Event > &value)
LambdaFunctionConfiguration & WithLambdaFunctionArn(const Aws::String &value)
LambdaFunctionConfiguration & WithLambdaFunctionArn(Aws::String &&value)
LambdaFunctionConfiguration & WithEvents(const Aws::Vector< Event > &value)
void SetFilter(const NotificationConfigurationFilter &value)
LambdaFunctionConfiguration & WithId(const char *value)
LambdaFunctionConfiguration & AddEvents(Event &&value)
LambdaFunctionConfiguration & WithId(const Aws::String &value)
const Aws::Vector< Event > & GetEvents() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
LambdaFunctionConfiguration & WithEvents(Aws::Vector< Event > &&value)
const NotificationConfigurationFilter & GetFilter() const
JSON (JavaScript Object Notation).