AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
Check.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/evs/EVS_EXPORTS.h>
10#include <aws/evs/model/CheckResult.h>
11#include <aws/evs/model/CheckType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EVS {
23namespace Model {
24
31class Check {
32 public:
33 AWS_EVS_API Check() = default;
34 AWS_EVS_API Check(Aws::Utils::Json::JsonView jsonValue);
37
39
66 inline CheckType GetType() const { return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(CheckType value) {
69 m_typeHasBeenSet = true;
70 m_type = value;
71 }
72 inline Check& WithType(CheckType value) {
73 SetType(value);
74 return *this;
75 }
77
79
82 inline const Aws::String& GetId() const { return m_id; }
83 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
84 template <typename IdT = Aws::String>
85 void SetId(IdT&& value) {
86 m_idHasBeenSet = true;
87 m_id = std::forward<IdT>(value);
88 }
89 template <typename IdT = Aws::String>
90 Check& WithId(IdT&& value) {
91 SetId(std::forward<IdT>(value));
92 return *this;
93 }
95
97
100 inline CheckResult GetResult() const { return m_result; }
101 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
102 inline void SetResult(CheckResult value) {
103 m_resultHasBeenSet = true;
104 m_result = value;
105 }
106 inline Check& WithResult(CheckResult value) {
107 SetResult(value);
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetImpairedSince() const { return m_impairedSince; }
117 inline bool ImpairedSinceHasBeenSet() const { return m_impairedSinceHasBeenSet; }
118 template <typename ImpairedSinceT = Aws::Utils::DateTime>
119 void SetImpairedSince(ImpairedSinceT&& value) {
120 m_impairedSinceHasBeenSet = true;
121 m_impairedSince = std::forward<ImpairedSinceT>(value);
122 }
123 template <typename ImpairedSinceT = Aws::Utils::DateTime>
124 Check& WithImpairedSince(ImpairedSinceT&& value) {
125 SetImpairedSince(std::forward<ImpairedSinceT>(value));
126 return *this;
127 }
129 private:
131
132 Aws::String m_id;
133
135
136 Aws::Utils::DateTime m_impairedSince{};
137 bool m_typeHasBeenSet = false;
138 bool m_idHasBeenSet = false;
139 bool m_resultHasBeenSet = false;
140 bool m_impairedSinceHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace EVS
145} // namespace Aws
const Aws::Utils::DateTime & GetImpairedSince() const
Definition Check.h:116
AWS_EVS_API Check & operator=(Aws::Utils::Json::JsonView jsonValue)
CheckResult GetResult() const
Definition Check.h:100
Check & WithResult(CheckResult value)
Definition Check.h:106
bool TypeHasBeenSet() const
Definition Check.h:67
const Aws::String & GetId() const
Definition Check.h:82
Check & WithType(CheckType value)
Definition Check.h:72
AWS_EVS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResult(CheckResult value)
Definition Check.h:102
Check & WithImpairedSince(ImpairedSinceT &&value)
Definition Check.h:124
void SetType(CheckType value)
Definition Check.h:68
bool ImpairedSinceHasBeenSet() const
Definition Check.h:117
bool IdHasBeenSet() const
Definition Check.h:83
AWS_EVS_API Check()=default
void SetId(IdT &&value)
Definition Check.h:85
Check & WithId(IdT &&value)
Definition Check.h:90
CheckType GetType() const
Definition Check.h:66
void SetImpairedSince(ImpairedSinceT &&value)
Definition Check.h:119
bool ResultHasBeenSet() const
Definition Check.h:101
AWS_EVS_API Check(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue