AWS SDK for C++  1.9.106
AWS SDK for C++
LastUpdate.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace MWAA
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
47 
51  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
52 
56  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
57 
61  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
62 
66  inline LastUpdate& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
67 
71  inline LastUpdate& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
72 
73 
77  inline const UpdateError& GetError() const{ return m_error; }
78 
82  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
83 
87  inline void SetError(const UpdateError& value) { m_errorHasBeenSet = true; m_error = value; }
88 
92  inline void SetError(UpdateError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
93 
97  inline LastUpdate& WithError(const UpdateError& value) { SetError(value); return *this;}
98 
102  inline LastUpdate& WithError(UpdateError&& value) { SetError(std::move(value)); return *this;}
103 
104 
109  inline const UpdateStatus& GetStatus() const{ return m_status; }
110 
115  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 
121  inline void SetStatus(const UpdateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
122 
127  inline void SetStatus(UpdateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
128 
133  inline LastUpdate& WithStatus(const UpdateStatus& value) { SetStatus(value); return *this;}
134 
139  inline LastUpdate& WithStatus(UpdateStatus&& value) { SetStatus(std::move(value)); return *this;}
140 
141  private:
142 
143  Aws::Utils::DateTime m_createdAt;
144  bool m_createdAtHasBeenSet;
145 
146  UpdateError m_error;
147  bool m_errorHasBeenSet;
148 
149  UpdateStatus m_status;
150  bool m_statusHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace MWAA
155 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::MWAA::Model::LastUpdate::SetError
void SetError(UpdateError &&value)
Definition: LastUpdate.h:92
DateTime.h
Aws::MWAA::Model::LastUpdate::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: LastUpdate.h:61
Aws::MWAA::Model::LastUpdate::WithCreatedAt
LastUpdate & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: LastUpdate.h:71
Aws::MWAA::Model::LastUpdate::WithError
LastUpdate & WithError(const UpdateError &value)
Definition: LastUpdate.h:97
Aws::MWAA::Model::LastUpdate::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: LastUpdate.h:56
Aws::MWAA::Model::LastUpdate::GetError
const UpdateError & GetError() const
Definition: LastUpdate.h:77
Aws::MWAA::Model::LastUpdate::LastUpdate
LastUpdate(Aws::Utils::Json::JsonView jsonValue)
Aws::MWAA::Model::LastUpdate::operator=
LastUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MWAA::Model::LastUpdate::WithStatus
LastUpdate & WithStatus(UpdateStatus &&value)
Definition: LastUpdate.h:139
Aws::MWAA::Model::LastUpdate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MWAA::Model::LastUpdate::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: LastUpdate.h:115
Aws::MWAA::Model::LastUpdate
Definition: LastUpdate.h:35
Aws::MWAA::Model::LastUpdate::GetStatus
const UpdateStatus & GetStatus() const
Definition: LastUpdate.h:109
Aws::MWAA::Model::UpdateError
Definition: UpdateError.h:33
Aws::MWAA::Model::LastUpdate::LastUpdate
LastUpdate()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MWAA::Model::LastUpdate::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: LastUpdate.h:51
Aws::MWAA::Model::LastUpdate::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: LastUpdate.h:46
Aws::MWAA::Model::UpdateStatus
UpdateStatus
Definition: UpdateStatus.h:17
UpdateError.h
AWS_MWAA_API
#define AWS_MWAA_API
Definition: MWAA_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::MWAA::Model::LastUpdate::SetStatus
void SetStatus(UpdateStatus &&value)
Definition: LastUpdate.h:127
Aws::MWAA::Model::LastUpdate::WithError
LastUpdate & WithError(UpdateError &&value)
Definition: LastUpdate.h:102
Aws::MWAA::Model::LastUpdate::SetError
void SetError(const UpdateError &value)
Definition: LastUpdate.h:87
Aws::MWAA::Model::LastUpdate::WithCreatedAt
LastUpdate & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: LastUpdate.h:66
Aws::MWAA::Model::LastUpdate::WithStatus
LastUpdate & WithStatus(const UpdateStatus &value)
Definition: LastUpdate.h:133
Aws::MWAA::Model::LastUpdate::SetStatus
void SetStatus(const UpdateStatus &value)
Definition: LastUpdate.h:121
UpdateStatus.h
Aws::MWAA::Model::LastUpdate::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: LastUpdate.h:82
MWAA_EXPORTS.h