AWS SDK for C++  0.12.9
AWS SDK for C++
CreateEventSourceMappingRequest.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
20 
21 namespace Aws
22 {
23 namespace Lambda
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
43  inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
44 
52  inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
53 
61  inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
62 
70  inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); }
71 
79  inline CreateEventSourceMappingRequest& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
80 
88  inline CreateEventSourceMappingRequest& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(value); return *this;}
89 
97  inline CreateEventSourceMappingRequest& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
98 
115  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
116 
133  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
134 
151  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
152 
169  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
170 
187  inline CreateEventSourceMappingRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
188 
205  inline CreateEventSourceMappingRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
206 
223  inline CreateEventSourceMappingRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
224 
229  inline bool GetEnabled() const{ return m_enabled; }
230 
235  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
236 
241  inline CreateEventSourceMappingRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
242 
248  inline long GetBatchSize() const{ return m_batchSize; }
249 
255  inline void SetBatchSize(long value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
256 
262  inline CreateEventSourceMappingRequest& WithBatchSize(long value) { SetBatchSize(value); return *this;}
263 
270  inline const EventSourcePosition& GetStartingPosition() const{ return m_startingPosition; }
271 
278  inline void SetStartingPosition(const EventSourcePosition& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
279 
286  inline void SetStartingPosition(EventSourcePosition&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
287 
294  inline CreateEventSourceMappingRequest& WithStartingPosition(const EventSourcePosition& value) { SetStartingPosition(value); return *this;}
295 
302  inline CreateEventSourceMappingRequest& WithStartingPosition(EventSourcePosition&& value) { SetStartingPosition(value); return *this;}
303 
304  private:
305  Aws::String m_eventSourceArn;
306  bool m_eventSourceArnHasBeenSet;
307  Aws::String m_functionName;
308  bool m_functionNameHasBeenSet;
309  bool m_enabled;
310  bool m_enabledHasBeenSet;
311  long m_batchSize;
312  bool m_batchSizeHasBeenSet;
313  EventSourcePosition m_startingPosition;
314  bool m_startingPositionHasBeenSet;
315  };
316 
317 } // namespace Model
318 } // namespace Lambda
319 } // namespace Aws
CreateEventSourceMappingRequest & WithEventSourceArn(Aws::String &&value)
CreateEventSourceMappingRequest & WithFunctionName(Aws::String &&value)
CreateEventSourceMappingRequest & WithEnabled(bool value)
#define AWS_LAMBDA_API
CreateEventSourceMappingRequest & WithFunctionName(const char *value)
CreateEventSourceMappingRequest & WithStartingPosition(EventSourcePosition &&value)
CreateEventSourceMappingRequest & WithEventSourceArn(const Aws::String &value)
CreateEventSourceMappingRequest & WithFunctionName(const Aws::String &value)
CreateEventSourceMappingRequest & WithStartingPosition(const EventSourcePosition &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateEventSourceMappingRequest & WithEventSourceArn(const char *value)
CreateEventSourceMappingRequest & WithBatchSize(long value)
JSON (JavaScript Object Notation).