AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LambdaAction.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents/model/Payload.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEvents
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTEVENTS_API LambdaAction();
37 AWS_IOTEVENTS_API LambdaAction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTEVENTS_API LambdaAction& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
47 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
48 inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
49 inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
50 inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
51 inline LambdaAction& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
52 inline LambdaAction& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
53 inline LambdaAction& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
55
57
61 inline const Payload& GetPayload() const{ return m_payload; }
62 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
63 inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
64 inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
65 inline LambdaAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
66 inline LambdaAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_functionArn;
71 bool m_functionArnHasBeenSet = false;
72
73 Payload m_payload;
74 bool m_payloadHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace IoTEvents
79} // namespace Aws
void SetPayload(const Payload &value)
AWS_IOTEVENTS_API LambdaAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFunctionArn() const
LambdaAction & WithPayload(Payload &&value)
void SetFunctionArn(const char *value)
const Payload & GetPayload() const
void SetFunctionArn(const Aws::String &value)
void SetFunctionArn(Aws::String &&value)
AWS_IOTEVENTS_API LambdaAction(Aws::Utils::Json::JsonView jsonValue)
LambdaAction & WithPayload(const Payload &value)
LambdaAction & WithFunctionArn(const char *value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaAction & WithFunctionArn(Aws::String &&value)
LambdaAction & WithFunctionArn(const Aws::String &value)
void SetPayload(Payload &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue