AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
StatusReason.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/dsql/DSQL_EXPORTS.h>
9#include <aws/dsql/model/StreamFailureErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DSQL {
21namespace Model {
22
29 public:
30 AWS_DSQL_API StatusReason() = default;
34
36
39 inline StreamFailureErrorCode GetError() const { return m_error; }
40 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
41 inline void SetError(StreamFailureErrorCode value) {
42 m_errorHasBeenSet = true;
43 m_error = value;
44 }
46 SetError(value);
47 return *this;
48 }
50
52
55 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
56 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
57 template <typename UpdatedAtT = Aws::Utils::DateTime>
58 void SetUpdatedAt(UpdatedAtT&& value) {
59 m_updatedAtHasBeenSet = true;
60 m_updatedAt = std::forward<UpdatedAtT>(value);
61 }
62 template <typename UpdatedAtT = Aws::Utils::DateTime>
63 StatusReason& WithUpdatedAt(UpdatedAtT&& value) {
64 SetUpdatedAt(std::forward<UpdatedAtT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::Utils::DateTime m_updatedAt{};
72 bool m_errorHasBeenSet = false;
73 bool m_updatedAtHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace DSQL
78} // namespace Aws
StatusReason & WithUpdatedAt(UpdatedAtT &&value)
AWS_DSQL_API StatusReason()=default
AWS_DSQL_API StatusReason(Aws::Utils::Json::JsonView jsonValue)
StreamFailureErrorCode GetError() const
void SetError(StreamFailureErrorCode value)
const Aws::Utils::DateTime & GetUpdatedAt() const
StatusReason & WithError(StreamFailureErrorCode value)
AWS_DSQL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUpdatedAt(UpdatedAtT &&value)
AWS_DSQL_API StatusReason & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue