AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InvocationCompletedDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/Lambda_EXPORTS.h>
10#include <aws/lambda/model/EventError.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lambda {
22namespace Model {
23
31 public:
32 AWS_LAMBDA_API InvocationCompletedDetails() = default;
35 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
44 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
45 template <typename StartTimestampT = Aws::Utils::DateTime>
46 void SetStartTimestamp(StartTimestampT&& value) {
47 m_startTimestampHasBeenSet = true;
48 m_startTimestamp = std::forward<StartTimestampT>(value);
49 }
50 template <typename StartTimestampT = Aws::Utils::DateTime>
52 SetStartTimestamp(std::forward<StartTimestampT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::Utils::DateTime& GetEndTimestamp() const { return m_endTimestamp; }
64 inline bool EndTimestampHasBeenSet() const { return m_endTimestampHasBeenSet; }
65 template <typename EndTimestampT = Aws::Utils::DateTime>
66 void SetEndTimestamp(EndTimestampT&& value) {
67 m_endTimestampHasBeenSet = true;
68 m_endTimestamp = std::forward<EndTimestampT>(value);
69 }
70 template <typename EndTimestampT = Aws::Utils::DateTime>
72 SetEndTimestamp(std::forward<EndTimestampT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94
96
99 inline const EventError& GetError() const { return m_error; }
100 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
101 template <typename ErrorT = EventError>
102 void SetError(ErrorT&& value) {
103 m_errorHasBeenSet = true;
104 m_error = std::forward<ErrorT>(value);
105 }
106 template <typename ErrorT = EventError>
108 SetError(std::forward<ErrorT>(value));
109 return *this;
110 }
112 private:
113 Aws::Utils::DateTime m_startTimestamp{};
114
115 Aws::Utils::DateTime m_endTimestamp{};
116
117 Aws::String m_requestId;
118
119 EventError m_error;
120 bool m_startTimestampHasBeenSet = false;
121 bool m_endTimestampHasBeenSet = false;
122 bool m_requestIdHasBeenSet = false;
123 bool m_errorHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace Lambda
128} // namespace Aws
InvocationCompletedDetails & WithEndTimestamp(EndTimestampT &&value)
AWS_LAMBDA_API InvocationCompletedDetails()=default
AWS_LAMBDA_API InvocationCompletedDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
InvocationCompletedDetails & WithRequestId(RequestIdT &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
InvocationCompletedDetails & WithError(ErrorT &&value)
InvocationCompletedDetails & WithStartTimestamp(StartTimestampT &&value)
const Aws::Utils::DateTime & GetEndTimestamp() const
const Aws::Utils::DateTime & GetStartTimestamp() const
AWS_LAMBDA_API InvocationCompletedDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue