AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
LastKnownCheck.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/Mgn_EXPORTS.h>
10#include <aws/mgn/model/LastKnownCheckStatus.h>
11#include <aws/mgn/model/LastKnownCheckType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace mgn {
23namespace Model {
24
32 public:
33 AWS_MGN_API LastKnownCheck() = default;
37
39
42 inline LastKnownCheckType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(LastKnownCheckType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 LastKnownCheck& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline LastKnownCheckStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(LastKnownCheckStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetError() const { return m_error; }
93 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
94 template <typename ErrorT = Aws::String>
95 void SetError(ErrorT&& value) {
96 m_errorHasBeenSet = true;
97 m_error = std::forward<ErrorT>(value);
98 }
99 template <typename ErrorT = Aws::String>
100 LastKnownCheck& WithError(ErrorT&& value) {
101 SetError(std::forward<ErrorT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetCheckedAt() const { return m_checkedAt; }
111 inline bool CheckedAtHasBeenSet() const { return m_checkedAtHasBeenSet; }
112 template <typename CheckedAtT = Aws::Utils::DateTime>
113 void SetCheckedAt(CheckedAtT&& value) {
114 m_checkedAtHasBeenSet = true;
115 m_checkedAt = std::forward<CheckedAtT>(value);
116 }
117 template <typename CheckedAtT = Aws::Utils::DateTime>
118 LastKnownCheck& WithCheckedAt(CheckedAtT&& value) {
119 SetCheckedAt(std::forward<CheckedAtT>(value));
120 return *this;
121 }
123 private:
125
126 Aws::String m_name;
127
129
130 Aws::String m_error;
131
132 Aws::Utils::DateTime m_checkedAt{};
133 bool m_typeHasBeenSet = false;
134 bool m_nameHasBeenSet = false;
135 bool m_statusHasBeenSet = false;
136 bool m_errorHasBeenSet = false;
137 bool m_checkedAtHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace mgn
142} // namespace Aws
AWS_MGN_API LastKnownCheck()=default
LastKnownCheck & WithCheckedAt(CheckedAtT &&value)
LastKnownCheck & WithStatus(LastKnownCheckStatus value)
void SetError(ErrorT &&value)
void SetCheckedAt(CheckedAtT &&value)
AWS_MGN_API LastKnownCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
LastKnownCheck & WithName(NameT &&value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
LastKnownCheckStatus GetStatus() const
LastKnownCheckType GetType() const
void SetStatus(LastKnownCheckStatus value)
LastKnownCheck & WithType(LastKnownCheckType value)
LastKnownCheck & WithError(ErrorT &&value)
const Aws::Utils::DateTime & GetCheckedAt() const
void SetType(LastKnownCheckType value)
AWS_MGN_API LastKnownCheck(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetError() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue