AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EventResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lambda {
20namespace Model {
21
28 public:
29 AWS_LAMBDA_API EventResult() = default;
30 AWS_LAMBDA_API EventResult(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetPayload() const { return m_payload; }
39 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
40 template <typename PayloadT = Aws::String>
41 void SetPayload(PayloadT&& value) {
42 m_payloadHasBeenSet = true;
43 m_payload = std::forward<PayloadT>(value);
44 }
45 template <typename PayloadT = Aws::String>
46 EventResult& WithPayload(PayloadT&& value) {
47 SetPayload(std::forward<PayloadT>(value));
48 return *this;
49 }
51
53
56 inline bool GetTruncated() const { return m_truncated; }
57 inline bool TruncatedHasBeenSet() const { return m_truncatedHasBeenSet; }
58 inline void SetTruncated(bool value) {
59 m_truncatedHasBeenSet = true;
60 m_truncated = value;
61 }
62 inline EventResult& WithTruncated(bool value) {
63 SetTruncated(value);
64 return *this;
65 }
67 private:
68 Aws::String m_payload;
69
70 bool m_truncated{false};
71 bool m_payloadHasBeenSet = false;
72 bool m_truncatedHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Lambda
77} // namespace Aws
const Aws::String & GetPayload() const
Definition EventResult.h:38
void SetPayload(PayloadT &&value)
Definition EventResult.h:41
EventResult & WithTruncated(bool value)
Definition EventResult.h:62
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDA_API EventResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API EventResult()=default
AWS_LAMBDA_API EventResult(Aws::Utils::Json::JsonView jsonValue)
EventResult & WithPayload(PayloadT &&value)
Definition EventResult.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue