AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CallbackOptions.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Lambda {
17namespace Model {
18
26 public:
27 AWS_LAMBDA_API CallbackOptions() = default;
30 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
38 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
39 inline void SetTimeoutSeconds(int value) {
40 m_timeoutSecondsHasBeenSet = true;
41 m_timeoutSeconds = value;
42 }
44 SetTimeoutSeconds(value);
45 return *this;
46 }
48
50
54 inline int GetHeartbeatTimeoutSeconds() const { return m_heartbeatTimeoutSeconds; }
55 inline bool HeartbeatTimeoutSecondsHasBeenSet() const { return m_heartbeatTimeoutSecondsHasBeenSet; }
56 inline void SetHeartbeatTimeoutSeconds(int value) {
57 m_heartbeatTimeoutSecondsHasBeenSet = true;
58 m_heartbeatTimeoutSeconds = value;
59 }
62 return *this;
63 }
65 private:
66 int m_timeoutSeconds{0};
67
68 int m_heartbeatTimeoutSeconds{0};
69 bool m_timeoutSecondsHasBeenSet = false;
70 bool m_heartbeatTimeoutSecondsHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace Lambda
75} // namespace Aws
CallbackOptions & WithTimeoutSeconds(int value)
AWS_LAMBDA_API CallbackOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API CallbackOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API CallbackOptions()=default
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
CallbackOptions & WithHeartbeatTimeoutSeconds(int value)
Aws::Utils::Json::JsonValue JsonValue