AWS SDK for C++  0.14.3
AWS SDK for C++
GetEventSourceMappingResult.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 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace Lambda
33 {
34 namespace Model
35 {
40  {
41  public:
45 
49  inline const Aws::String& GetUUID() const{ return m_uUID; }
50 
54  inline void SetUUID(const Aws::String& value) { m_uUID = value; }
55 
59  inline void SetUUID(Aws::String&& value) { m_uUID = value; }
60 
64  inline void SetUUID(const char* value) { m_uUID.assign(value); }
65 
69  inline GetEventSourceMappingResult& WithUUID(const Aws::String& value) { SetUUID(value); return *this;}
70 
74  inline GetEventSourceMappingResult& WithUUID(Aws::String&& value) { SetUUID(value); return *this;}
75 
79  inline GetEventSourceMappingResult& WithUUID(const char* value) { SetUUID(value); return *this;}
80 
86  inline int GetBatchSize() const{ return m_batchSize; }
87 
93  inline void SetBatchSize(int value) { m_batchSize = value; }
94 
100  inline GetEventSourceMappingResult& WithBatchSize(int value) { SetBatchSize(value); return *this;}
101 
106  inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
107 
112  inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArn = value; }
113 
118  inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArn = value; }
119 
124  inline void SetEventSourceArn(const char* value) { m_eventSourceArn.assign(value); }
125 
130  inline GetEventSourceMappingResult& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
131 
136  inline GetEventSourceMappingResult& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(value); return *this;}
137 
142  inline GetEventSourceMappingResult& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
143 
148  inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
149 
154  inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; }
155 
160  inline void SetFunctionArn(Aws::String&& value) { m_functionArn = value; }
161 
166  inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); }
167 
172  inline GetEventSourceMappingResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
173 
178  inline GetEventSourceMappingResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(value); return *this;}
179 
184  inline GetEventSourceMappingResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
185 
190  inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
191 
196  inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
197 
202  inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = value; }
203 
208  inline GetEventSourceMappingResult& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
209 
214  inline GetEventSourceMappingResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(value); return *this;}
215 
219  inline const Aws::String& GetLastProcessingResult() const{ return m_lastProcessingResult; }
220 
224  inline void SetLastProcessingResult(const Aws::String& value) { m_lastProcessingResult = value; }
225 
229  inline void SetLastProcessingResult(Aws::String&& value) { m_lastProcessingResult = value; }
230 
234  inline void SetLastProcessingResult(const char* value) { m_lastProcessingResult.assign(value); }
235 
239  inline GetEventSourceMappingResult& WithLastProcessingResult(const Aws::String& value) { SetLastProcessingResult(value); return *this;}
240 
244  inline GetEventSourceMappingResult& WithLastProcessingResult(Aws::String&& value) { SetLastProcessingResult(value); return *this;}
245 
249  inline GetEventSourceMappingResult& WithLastProcessingResult(const char* value) { SetLastProcessingResult(value); return *this;}
250 
256  inline const Aws::String& GetState() const{ return m_state; }
257 
263  inline void SetState(const Aws::String& value) { m_state = value; }
264 
270  inline void SetState(Aws::String&& value) { m_state = value; }
271 
277  inline void SetState(const char* value) { m_state.assign(value); }
278 
284  inline GetEventSourceMappingResult& WithState(const Aws::String& value) { SetState(value); return *this;}
285 
291  inline GetEventSourceMappingResult& WithState(Aws::String&& value) { SetState(value); return *this;}
292 
298  inline GetEventSourceMappingResult& WithState(const char* value) { SetState(value); return *this;}
299 
304  inline const Aws::String& GetStateTransitionReason() const{ return m_stateTransitionReason; }
305 
310  inline void SetStateTransitionReason(const Aws::String& value) { m_stateTransitionReason = value; }
311 
316  inline void SetStateTransitionReason(Aws::String&& value) { m_stateTransitionReason = value; }
317 
322  inline void SetStateTransitionReason(const char* value) { m_stateTransitionReason.assign(value); }
323 
328  inline GetEventSourceMappingResult& WithStateTransitionReason(const Aws::String& value) { SetStateTransitionReason(value); return *this;}
329 
334  inline GetEventSourceMappingResult& WithStateTransitionReason(Aws::String&& value) { SetStateTransitionReason(value); return *this;}
335 
340  inline GetEventSourceMappingResult& WithStateTransitionReason(const char* value) { SetStateTransitionReason(value); return *this;}
341 
342  private:
343  Aws::String m_uUID;
344  int m_batchSize;
345  Aws::String m_eventSourceArn;
346  Aws::String m_functionArn;
347  Aws::Utils::DateTime m_lastModified;
348  Aws::String m_lastProcessingResult;
349  Aws::String m_state;
350  Aws::String m_stateTransitionReason;
351  };
352 
353 } // namespace Model
354 } // namespace Lambda
355 } // namespace Aws
GetEventSourceMappingResult & WithStateTransitionReason(Aws::String &&value)
GetEventSourceMappingResult & WithEventSourceArn(const char *value)
GetEventSourceMappingResult & WithFunctionArn(const Aws::String &value)
GetEventSourceMappingResult & WithEventSourceArn(const Aws::String &value)
GetEventSourceMappingResult & WithUUID(Aws::String &&value)
GetEventSourceMappingResult & WithLastModified(const Aws::Utils::DateTime &value)
GetEventSourceMappingResult & WithStateTransitionReason(const Aws::String &value)
GetEventSourceMappingResult & WithUUID(const char *value)
GetEventSourceMappingResult & WithEventSourceArn(Aws::String &&value)
GetEventSourceMappingResult & WithLastProcessingResult(Aws::String &&value)
#define AWS_LAMBDA_API
GetEventSourceMappingResult & WithStateTransitionReason(const char *value)
void SetLastModified(const Aws::Utils::DateTime &value)
GetEventSourceMappingResult & WithState(Aws::String &&value)
GetEventSourceMappingResult & WithFunctionArn(const char *value)
GetEventSourceMappingResult & WithFunctionArn(Aws::String &&value)
GetEventSourceMappingResult & WithLastProcessingResult(const char *value)
GetEventSourceMappingResult & WithState(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Utils::DateTime & GetLastModified() const
GetEventSourceMappingResult & WithUUID(const Aws::String &value)
GetEventSourceMappingResult & WithLastProcessingResult(const Aws::String &value)
GetEventSourceMappingResult & WithState(const Aws::String &value)
GetEventSourceMappingResult & WithLastModified(Aws::Utils::DateTime &&value)
GetEventSourceMappingResult & WithBatchSize(int value)
JSON (JavaScript Object Notation).