AWS SDK for C++  0.14.3
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 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
44  inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
45 
53  inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
54 
62  inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
63 
71  inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); }
72 
80  inline CreateEventSourceMappingRequest& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
81 
89  inline CreateEventSourceMappingRequest& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(value); return *this;}
90 
98  inline CreateEventSourceMappingRequest& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
99 
116  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
117 
134  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
135 
152  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
153 
170  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
171 
188  inline CreateEventSourceMappingRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
189 
206  inline CreateEventSourceMappingRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
207 
224  inline CreateEventSourceMappingRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
225 
230  inline bool GetEnabled() const{ return m_enabled; }
231 
236  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
237 
242  inline CreateEventSourceMappingRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
243 
249  inline int GetBatchSize() const{ return m_batchSize; }
250 
256  inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
257 
263  inline CreateEventSourceMappingRequest& WithBatchSize(int value) { SetBatchSize(value); return *this;}
264 
271  inline const EventSourcePosition& GetStartingPosition() const{ return m_startingPosition; }
272 
279  inline void SetStartingPosition(const EventSourcePosition& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
280 
287  inline void SetStartingPosition(EventSourcePosition&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
288 
295  inline CreateEventSourceMappingRequest& WithStartingPosition(const EventSourcePosition& value) { SetStartingPosition(value); return *this;}
296 
303  inline CreateEventSourceMappingRequest& WithStartingPosition(EventSourcePosition&& value) { SetStartingPosition(value); return *this;}
304 
305  private:
306  Aws::String m_eventSourceArn;
307  bool m_eventSourceArnHasBeenSet;
308  Aws::String m_functionName;
309  bool m_functionNameHasBeenSet;
310  bool m_enabled;
311  bool m_enabledHasBeenSet;
312  int m_batchSize;
313  bool m_batchSizeHasBeenSet;
314  EventSourcePosition m_startingPosition;
315  bool m_startingPositionHasBeenSet;
316  };
317 
318 } // namespace Model
319 } // namespace Lambda
320 } // namespace Aws
CreateEventSourceMappingRequest & WithEventSourceArn(Aws::String &&value)
CreateEventSourceMappingRequest & WithBatchSize(int 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)
JSON (JavaScript Object Notation).