AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LastUpdate.h
1
6#pragma once
7#include <aws/mwaa/MWAA_EXPORTS.h>
8#include <aws/mwaa/model/UpdateStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/mwaa/model/UpdateError.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/mwaa/model/WorkerReplacementStrategy.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MWAA
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_MWAA_API LastUpdate() = default;
40 AWS_MWAA_API LastUpdate(Aws::Utils::Json::JsonView jsonValue);
43
44
46
49 inline UpdateStatus GetStatus() const { return m_status; }
50 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
51 inline void SetStatus(UpdateStatus value) { m_statusHasBeenSet = true; m_status = value; }
52 inline LastUpdate& WithStatus(UpdateStatus value) { SetStatus(value); return *this;}
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) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
63 template<typename CreatedAtT = Aws::Utils::DateTime>
64 LastUpdate& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
66
68
71 inline const UpdateError& GetError() const { return m_error; }
72 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
73 template<typename ErrorT = UpdateError>
74 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
75 template<typename ErrorT = UpdateError>
76 LastUpdate& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
78
80
84 inline const Aws::String& GetSource() const { return m_source; }
85 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
86 template<typename SourceT = Aws::String>
87 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
88 template<typename SourceT = Aws::String>
89 LastUpdate& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
91
93
97 inline WorkerReplacementStrategy GetWorkerReplacementStrategy() const { return m_workerReplacementStrategy; }
98 inline bool WorkerReplacementStrategyHasBeenSet() const { return m_workerReplacementStrategyHasBeenSet; }
99 inline void SetWorkerReplacementStrategy(WorkerReplacementStrategy value) { m_workerReplacementStrategyHasBeenSet = true; m_workerReplacementStrategy = value; }
102 private:
103
105 bool m_statusHasBeenSet = false;
106
107 Aws::Utils::DateTime m_createdAt{};
108 bool m_createdAtHasBeenSet = false;
109
110 UpdateError m_error;
111 bool m_errorHasBeenSet = false;
112
113 Aws::String m_source;
114 bool m_sourceHasBeenSet = false;
115
117 bool m_workerReplacementStrategyHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace MWAA
122} // 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:97
bool WorkerReplacementStrategyHasBeenSet() const
Definition LastUpdate.h:98
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:87
AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWorkerReplacementStrategy(WorkerReplacementStrategy value)
Definition LastUpdate.h:99
LastUpdate & WithCreatedAt(CreatedAtT &&value)
Definition LastUpdate.h:64
const UpdateError & GetError() const
Definition LastUpdate.h:71
LastUpdate & WithSource(SourceT &&value)
Definition LastUpdate.h:89
LastUpdate & WithWorkerReplacementStrategy(WorkerReplacementStrategy value)
Definition LastUpdate.h:100
const Aws::String & GetSource() const
Definition LastUpdate.h:84
UpdateStatus GetStatus() const
Definition LastUpdate.h:49
LastUpdate & WithStatus(UpdateStatus value)
Definition LastUpdate.h:52
LastUpdate & WithError(ErrorT &&value)
Definition LastUpdate.h:76
void SetStatus(UpdateStatus value)
Definition LastUpdate.h:51
AWS_MWAA_API LastUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetError(ErrorT &&value)
Definition LastUpdate.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue