AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StepDetails.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/ErrorObject.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
30 public:
31 AWS_LAMBDA_API StepDetails() = default;
32 AWS_LAMBDA_API StepDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetAttempt() const { return m_attempt; }
41 inline bool AttemptHasBeenSet() const { return m_attemptHasBeenSet; }
42 inline void SetAttempt(int value) {
43 m_attemptHasBeenSet = true;
44 m_attempt = value;
45 }
46 inline StepDetails& WithAttempt(int value) {
47 SetAttempt(value);
48 return *this;
49 }
51
53
59 inline const Aws::Utils::DateTime& GetNextAttemptTimestamp() const { return m_nextAttemptTimestamp; }
60 inline bool NextAttemptTimestampHasBeenSet() const { return m_nextAttemptTimestampHasBeenSet; }
61 template <typename NextAttemptTimestampT = Aws::Utils::DateTime>
62 void SetNextAttemptTimestamp(NextAttemptTimestampT&& value) {
63 m_nextAttemptTimestampHasBeenSet = true;
64 m_nextAttemptTimestamp = std::forward<NextAttemptTimestampT>(value);
65 }
66 template <typename NextAttemptTimestampT = Aws::Utils::DateTime>
67 StepDetails& WithNextAttemptTimestamp(NextAttemptTimestampT&& value) {
68 SetNextAttemptTimestamp(std::forward<NextAttemptTimestampT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetResult() const { return m_result; }
78 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
79 template <typename ResultT = Aws::String>
80 void SetResult(ResultT&& value) {
81 m_resultHasBeenSet = true;
82 m_result = std::forward<ResultT>(value);
83 }
84 template <typename ResultT = Aws::String>
85 StepDetails& WithResult(ResultT&& value) {
86 SetResult(std::forward<ResultT>(value));
87 return *this;
88 }
90
92
95 inline const ErrorObject& GetError() const { return m_error; }
96 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
97 template <typename ErrorT = ErrorObject>
98 void SetError(ErrorT&& value) {
99 m_errorHasBeenSet = true;
100 m_error = std::forward<ErrorT>(value);
101 }
102 template <typename ErrorT = ErrorObject>
103 StepDetails& WithError(ErrorT&& value) {
104 SetError(std::forward<ErrorT>(value));
105 return *this;
106 }
108 private:
109 int m_attempt{0};
110
111 Aws::Utils::DateTime m_nextAttemptTimestamp{};
112
113 Aws::String m_result;
114
115 ErrorObject m_error;
116 bool m_attemptHasBeenSet = false;
117 bool m_nextAttemptTimestampHasBeenSet = false;
118 bool m_resultHasBeenSet = false;
119 bool m_errorHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace Lambda
124} // namespace Aws
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDA_API StepDetails(Aws::Utils::Json::JsonView jsonValue)
void SetResult(ResultT &&value)
Definition StepDetails.h:80
AWS_LAMBDA_API StepDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
StepDetails & WithNextAttemptTimestamp(NextAttemptTimestampT &&value)
Definition StepDetails.h:67
const Aws::Utils::DateTime & GetNextAttemptTimestamp() const
Definition StepDetails.h:59
void SetNextAttemptTimestamp(NextAttemptTimestampT &&value)
Definition StepDetails.h:62
const ErrorObject & GetError() const
Definition StepDetails.h:95
void SetError(ErrorT &&value)
Definition StepDetails.h:98
StepDetails & WithAttempt(int value)
Definition StepDetails.h:46
const Aws::String & GetResult() const
Definition StepDetails.h:77
bool NextAttemptTimestampHasBeenSet() const
Definition StepDetails.h:60
StepDetails & WithResult(ResultT &&value)
Definition StepDetails.h:85
AWS_LAMBDA_API StepDetails()=default
StepDetails & WithError(ErrorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue