AWS SDK for C++  0.12.9
AWS SDK for C++
EventSourceMappingConfiguration.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace Lambda
30 {
31 namespace Model
32 {
33 
38  {
39  public:
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetUUID() const{ return m_uUID; }
49 
53  inline void SetUUID(const Aws::String& value) { m_uUIDHasBeenSet = true; m_uUID = value; }
54 
58  inline void SetUUID(Aws::String&& value) { m_uUIDHasBeenSet = true; m_uUID = value; }
59 
63  inline void SetUUID(const char* value) { m_uUIDHasBeenSet = true; m_uUID.assign(value); }
64 
68  inline EventSourceMappingConfiguration& WithUUID(const Aws::String& value) { SetUUID(value); return *this;}
69 
73  inline EventSourceMappingConfiguration& WithUUID(Aws::String&& value) { SetUUID(value); return *this;}
74 
78  inline EventSourceMappingConfiguration& WithUUID(const char* value) { SetUUID(value); return *this;}
79 
85  inline long GetBatchSize() const{ return m_batchSize; }
86 
92  inline void SetBatchSize(long value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
93 
99  inline EventSourceMappingConfiguration& WithBatchSize(long value) { SetBatchSize(value); return *this;}
100 
105  inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
106 
111  inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
112 
117  inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
118 
123  inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); }
124 
129  inline EventSourceMappingConfiguration& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
130 
135  inline EventSourceMappingConfiguration& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(value); return *this;}
136 
141  inline EventSourceMappingConfiguration& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
142 
147  inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
148 
153  inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
154 
159  inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
160 
165  inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
166 
171  inline EventSourceMappingConfiguration& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
172 
177  inline EventSourceMappingConfiguration& WithFunctionArn(Aws::String&& value) { SetFunctionArn(value); return *this;}
178 
183  inline EventSourceMappingConfiguration& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
184 
189  inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
190 
195  inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
196 
201  inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
202 
207  inline EventSourceMappingConfiguration& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
208 
213  inline EventSourceMappingConfiguration& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(value); return *this;}
214 
218  inline const Aws::String& GetLastProcessingResult() const{ return m_lastProcessingResult; }
219 
223  inline void SetLastProcessingResult(const Aws::String& value) { m_lastProcessingResultHasBeenSet = true; m_lastProcessingResult = value; }
224 
228  inline void SetLastProcessingResult(Aws::String&& value) { m_lastProcessingResultHasBeenSet = true; m_lastProcessingResult = value; }
229 
233  inline void SetLastProcessingResult(const char* value) { m_lastProcessingResultHasBeenSet = true; m_lastProcessingResult.assign(value); }
234 
238  inline EventSourceMappingConfiguration& WithLastProcessingResult(const Aws::String& value) { SetLastProcessingResult(value); return *this;}
239 
243  inline EventSourceMappingConfiguration& WithLastProcessingResult(Aws::String&& value) { SetLastProcessingResult(value); return *this;}
244 
248  inline EventSourceMappingConfiguration& WithLastProcessingResult(const char* value) { SetLastProcessingResult(value); return *this;}
249 
255  inline const Aws::String& GetState() const{ return m_state; }
256 
262  inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
263 
269  inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = value; }
270 
276  inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
277 
283  inline EventSourceMappingConfiguration& WithState(const Aws::String& value) { SetState(value); return *this;}
284 
290  inline EventSourceMappingConfiguration& WithState(Aws::String&& value) { SetState(value); return *this;}
291 
297  inline EventSourceMappingConfiguration& WithState(const char* value) { SetState(value); return *this;}
298 
303  inline const Aws::String& GetStateTransitionReason() const{ return m_stateTransitionReason; }
304 
309  inline void SetStateTransitionReason(const Aws::String& value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason = value; }
310 
315  inline void SetStateTransitionReason(Aws::String&& value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason = value; }
316 
321  inline void SetStateTransitionReason(const char* value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason.assign(value); }
322 
327  inline EventSourceMappingConfiguration& WithStateTransitionReason(const Aws::String& value) { SetStateTransitionReason(value); return *this;}
328 
333  inline EventSourceMappingConfiguration& WithStateTransitionReason(Aws::String&& value) { SetStateTransitionReason(value); return *this;}
334 
339  inline EventSourceMappingConfiguration& WithStateTransitionReason(const char* value) { SetStateTransitionReason(value); return *this;}
340 
341  private:
342  Aws::String m_uUID;
343  bool m_uUIDHasBeenSet;
344  long m_batchSize;
345  bool m_batchSizeHasBeenSet;
346  Aws::String m_eventSourceArn;
347  bool m_eventSourceArnHasBeenSet;
348  Aws::String m_functionArn;
349  bool m_functionArnHasBeenSet;
350  Aws::Utils::DateTime m_lastModified;
351  bool m_lastModifiedHasBeenSet;
352  Aws::String m_lastProcessingResult;
353  bool m_lastProcessingResultHasBeenSet;
354  Aws::String m_state;
355  bool m_stateHasBeenSet;
356  Aws::String m_stateTransitionReason;
357  bool m_stateTransitionReasonHasBeenSet;
358  };
359 
360 } // namespace Model
361 } // namespace Lambda
362 } // namespace Aws
EventSourceMappingConfiguration & WithLastProcessingResult(const char *value)
EventSourceMappingConfiguration & WithState(const Aws::String &value)
EventSourceMappingConfiguration & WithUUID(const Aws::String &value)
EventSourceMappingConfiguration & WithState(const char *value)
EventSourceMappingConfiguration & WithUUID(const char *value)
EventSourceMappingConfiguration & WithState(Aws::String &&value)
EventSourceMappingConfiguration & WithLastProcessingResult(Aws::String &&value)
EventSourceMappingConfiguration & WithStateTransitionReason(Aws::String &&value)
#define AWS_LAMBDA_API
EventSourceMappingConfiguration & WithLastModified(const Aws::Utils::DateTime &value)
EventSourceMappingConfiguration & WithLastModified(Aws::Utils::DateTime &&value)
EventSourceMappingConfiguration & WithLastProcessingResult(const Aws::String &value)
EventSourceMappingConfiguration & WithFunctionArn(const char *value)
EventSourceMappingConfiguration & WithUUID(Aws::String &&value)
EventSourceMappingConfiguration & WithBatchSize(long value)
EventSourceMappingConfiguration & WithStateTransitionReason(const char *value)
EventSourceMappingConfiguration & WithFunctionArn(const Aws::String &value)
EventSourceMappingConfiguration & WithStateTransitionReason(const Aws::String &value)
EventSourceMappingConfiguration & WithFunctionArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EventSourceMappingConfiguration & WithEventSourceArn(Aws::String &&value)
EventSourceMappingConfiguration & WithEventSourceArn(const char *value)
JSON (JavaScript Object Notation).
EventSourceMappingConfiguration & WithEventSourceArn(const Aws::String &value)