AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
EventPauseReason.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
29 public:
30 AWS_LAMBDA_API EventPauseReason() = default;
33 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetPayload() const { return m_payload; }
42 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
43 template <typename PayloadT = Aws::String>
44 void SetPayload(PayloadT&& value) {
45 m_payloadHasBeenSet = true;
46 m_payload = std::forward<PayloadT>(value);
47 }
48 template <typename PayloadT = Aws::String>
49 EventPauseReason& WithPayload(PayloadT&& value) {
50 SetPayload(std::forward<PayloadT>(value));
51 return *this;
52 }
54
56
60 inline bool GetTruncated() const { return m_truncated; }
61 inline bool TruncatedHasBeenSet() const { return m_truncatedHasBeenSet; }
62 inline void SetTruncated(bool value) {
63 m_truncatedHasBeenSet = true;
64 m_truncated = value;
65 }
66 inline EventPauseReason& WithTruncated(bool value) {
67 SetTruncated(value);
68 return *this;
69 }
71 private:
72 Aws::String m_payload;
73
74 bool m_truncated{false};
75 bool m_payloadHasBeenSet = false;
76 bool m_truncatedHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Lambda
81} // namespace Aws
AWS_LAMBDA_API EventPauseReason & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPayload() const
EventPauseReason & WithTruncated(bool value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDA_API EventPauseReason()=default
EventPauseReason & WithPayload(PayloadT &&value)
AWS_LAMBDA_API EventPauseReason(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue