AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
LastUpdate.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mwaa/MWAA_EXPORTS.h>
10#include <aws/mwaa/model/UpdateError.h>
11#include <aws/mwaa/model/UpdateStatus.h>
12#include <aws/mwaa/model/WorkerReplacementStrategy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MWAA {
24namespace Model {
25
33 public:
34 AWS_MWAA_API LastUpdate() = default;
35 AWS_MWAA_API LastUpdate(Aws::Utils::Json::JsonView jsonValue);
38
40
43 inline UpdateStatus GetStatus() const { return m_status; }
44 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
45 inline void SetStatus(UpdateStatus value) {
46 m_statusHasBeenSet = true;
47 m_status = value;
48 }
50 SetStatus(value);
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
60 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
61 template <typename CreatedAtT = Aws::Utils::DateTime>
62 void SetCreatedAt(CreatedAtT&& value) {
63 m_createdAtHasBeenSet = true;
64 m_createdAt = std::forward<CreatedAtT>(value);
65 }
66 template <typename CreatedAtT = Aws::Utils::DateTime>
67 LastUpdate& WithCreatedAt(CreatedAtT&& value) {
68 SetCreatedAt(std::forward<CreatedAtT>(value));
69 return *this;
70 }
72
74
77 inline const UpdateError& GetError() const { return m_error; }
78 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
79 template <typename ErrorT = UpdateError>
80 void SetError(ErrorT&& value) {
81 m_errorHasBeenSet = true;
82 m_error = std::forward<ErrorT>(value);
83 }
84 template <typename ErrorT = UpdateError>
85 LastUpdate& WithError(ErrorT&& value) {
86 SetError(std::forward<ErrorT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetSource() const { return m_source; }
97 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
98 template <typename SourceT = Aws::String>
99 void SetSource(SourceT&& value) {
100 m_sourceHasBeenSet = true;
101 m_source = std::forward<SourceT>(value);
102 }
103 template <typename SourceT = Aws::String>
104 LastUpdate& WithSource(SourceT&& value) {
105 SetSource(std::forward<SourceT>(value));
106 return *this;
107 }
109
111
115 inline WorkerReplacementStrategy GetWorkerReplacementStrategy() const { return m_workerReplacementStrategy; }
116 inline bool WorkerReplacementStrategyHasBeenSet() const { return m_workerReplacementStrategyHasBeenSet; }
118 m_workerReplacementStrategyHasBeenSet = true;
119 m_workerReplacementStrategy = value;
120 }
126 private:
128
129 Aws::Utils::DateTime m_createdAt{};
130
131 UpdateError m_error;
132
133 Aws::String m_source;
134
136 bool m_statusHasBeenSet = false;
137 bool m_createdAtHasBeenSet = false;
138 bool m_errorHasBeenSet = false;
139 bool m_sourceHasBeenSet = false;
140 bool m_workerReplacementStrategyHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace MWAA
145} // namespace Aws
void SetCreatedAt(CreatedAtT &&value)
Definition LastUpdate.h:62
AWS_MWAA_API LastUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkerReplacementStrategy GetWorkerReplacementStrategy() const
Definition LastUpdate.h:115
bool WorkerReplacementStrategyHasBeenSet() const
Definition LastUpdate.h:116
bool CreatedAtHasBeenSet() const
Definition LastUpdate.h:60
const Aws::Utils::DateTime & GetCreatedAt() const
Definition LastUpdate.h:59
AWS_MWAA_API LastUpdate()=default
void SetSource(SourceT &&value)
Definition LastUpdate.h:99
AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWorkerReplacementStrategy(WorkerReplacementStrategy value)
Definition LastUpdate.h:117
LastUpdate & WithCreatedAt(CreatedAtT &&value)
Definition LastUpdate.h:67
const UpdateError & GetError() const
Definition LastUpdate.h:77
LastUpdate & WithSource(SourceT &&value)
Definition LastUpdate.h:104
LastUpdate & WithWorkerReplacementStrategy(WorkerReplacementStrategy value)
Definition LastUpdate.h:121
const Aws::String & GetSource() const
Definition LastUpdate.h:96
UpdateStatus GetStatus() const
Definition LastUpdate.h:43
LastUpdate & WithStatus(UpdateStatus value)
Definition LastUpdate.h:49
LastUpdate & WithError(ErrorT &&value)
Definition LastUpdate.h:85
void SetStatus(UpdateStatus value)
Definition LastUpdate.h:45
AWS_MWAA_API LastUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetError(ErrorT &&value)
Definition LastUpdate.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue