AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MWAA
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MWAA_API LastUpdate();
39 AWS_MWAA_API LastUpdate(Aws::Utils::Json::JsonView jsonValue);
42
43
45
48 inline const UpdateStatus& GetStatus() const{ return m_status; }
49 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 inline void SetStatus(const UpdateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
51 inline void SetStatus(UpdateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
52 inline LastUpdate& WithStatus(const UpdateStatus& value) { SetStatus(value); return *this;}
53 inline LastUpdate& WithStatus(UpdateStatus&& value) { SetStatus(std::move(value)); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
61 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
62 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
63 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
64 inline LastUpdate& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
65 inline LastUpdate& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
67
69
72 inline const UpdateError& GetError() const{ return m_error; }
73 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
74 inline void SetError(const UpdateError& value) { m_errorHasBeenSet = true; m_error = value; }
75 inline void SetError(UpdateError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
76 inline LastUpdate& WithError(const UpdateError& value) { SetError(value); return *this;}
77 inline LastUpdate& WithError(UpdateError&& value) { SetError(std::move(value)); return *this;}
79
81
85 inline const Aws::String& GetSource() const{ return m_source; }
86 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
87 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
88 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
89 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
90 inline LastUpdate& WithSource(const Aws::String& value) { SetSource(value); return *this;}
91 inline LastUpdate& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
92 inline LastUpdate& WithSource(const char* value) { SetSource(value); return *this;}
94 private:
95
96 UpdateStatus m_status;
97 bool m_statusHasBeenSet = false;
98
99 Aws::Utils::DateTime m_createdAt;
100 bool m_createdAtHasBeenSet = false;
101
102 UpdateError m_error;
103 bool m_errorHasBeenSet = false;
104
105 Aws::String m_source;
106 bool m_sourceHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace MWAA
111} // namespace Aws
LastUpdate & WithStatus(const UpdateStatus &value)
Definition LastUpdate.h:52
LastUpdate & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition LastUpdate.h:64
LastUpdate & WithStatus(UpdateStatus &&value)
Definition LastUpdate.h:53
AWS_MWAA_API LastUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
LastUpdate & WithError(const UpdateError &value)
Definition LastUpdate.h:76
bool CreatedAtHasBeenSet() const
Definition LastUpdate.h:61
void SetSource(const Aws::String &value)
Definition LastUpdate.h:87
const Aws::Utils::DateTime & GetCreatedAt() const
Definition LastUpdate.h:60
void SetSource(const char *value)
Definition LastUpdate.h:89
LastUpdate & WithError(UpdateError &&value)
Definition LastUpdate.h:77
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition LastUpdate.h:62
AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const
const UpdateStatus & GetStatus() const
Definition LastUpdate.h:48
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition LastUpdate.h:63
void SetStatus(UpdateStatus &&value)
Definition LastUpdate.h:51
void SetSource(Aws::String &&value)
Definition LastUpdate.h:88
const UpdateError & GetError() const
Definition LastUpdate.h:72
LastUpdate & WithSource(Aws::String &&value)
Definition LastUpdate.h:91
void SetStatus(const UpdateStatus &value)
Definition LastUpdate.h:50
const Aws::String & GetSource() const
Definition LastUpdate.h:85
LastUpdate & WithSource(const Aws::String &value)
Definition LastUpdate.h:90
LastUpdate & WithSource(const char *value)
Definition LastUpdate.h:92
void SetError(UpdateError &&value)
Definition LastUpdate.h:75
LastUpdate & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition LastUpdate.h:65
AWS_MWAA_API LastUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetError(const UpdateError &value)
Definition LastUpdate.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue