AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
SyncBlocker.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/proton/Proton_EXPORTS.h>
11#include <aws/proton/model/BlockerStatus.h>
12#include <aws/proton/model/BlockerType.h>
13#include <aws/proton/model/SyncBlockerContext.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Proton {
25namespace Model {
26
33 public:
34 AWS_PROTON_API SyncBlocker() = default;
35 AWS_PROTON_API SyncBlocker(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<SyncBlockerContext>& GetContexts() const { return m_contexts; }
44 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
45 template <typename ContextsT = Aws::Vector<SyncBlockerContext>>
46 void SetContexts(ContextsT&& value) {
47 m_contextsHasBeenSet = true;
48 m_contexts = std::forward<ContextsT>(value);
49 }
50 template <typename ContextsT = Aws::Vector<SyncBlockerContext>>
51 SyncBlocker& WithContexts(ContextsT&& value) {
52 SetContexts(std::forward<ContextsT>(value));
53 return *this;
54 }
55 template <typename ContextsT = SyncBlockerContext>
56 SyncBlocker& AddContexts(ContextsT&& value) {
57 m_contextsHasBeenSet = true;
58 m_contexts.emplace_back(std::forward<ContextsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
68 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
69 template <typename CreatedAtT = Aws::Utils::DateTime>
70 void SetCreatedAt(CreatedAtT&& value) {
71 m_createdAtHasBeenSet = true;
72 m_createdAt = std::forward<CreatedAtT>(value);
73 }
74 template <typename CreatedAtT = Aws::Utils::DateTime>
75 SyncBlocker& WithCreatedAt(CreatedAtT&& value) {
76 SetCreatedAt(std::forward<CreatedAtT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetCreatedReason() const { return m_createdReason; }
86 inline bool CreatedReasonHasBeenSet() const { return m_createdReasonHasBeenSet; }
87 template <typename CreatedReasonT = Aws::String>
88 void SetCreatedReason(CreatedReasonT&& value) {
89 m_createdReasonHasBeenSet = true;
90 m_createdReason = std::forward<CreatedReasonT>(value);
91 }
92 template <typename CreatedReasonT = Aws::String>
93 SyncBlocker& WithCreatedReason(CreatedReasonT&& value) {
94 SetCreatedReason(std::forward<CreatedReasonT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetId() const { return m_id; }
104 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
105 template <typename IdT = Aws::String>
106 void SetId(IdT&& value) {
107 m_idHasBeenSet = true;
108 m_id = std::forward<IdT>(value);
109 }
110 template <typename IdT = Aws::String>
111 SyncBlocker& WithId(IdT&& value) {
112 SetId(std::forward<IdT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Utils::DateTime& GetResolvedAt() const { return m_resolvedAt; }
122 inline bool ResolvedAtHasBeenSet() const { return m_resolvedAtHasBeenSet; }
123 template <typename ResolvedAtT = Aws::Utils::DateTime>
124 void SetResolvedAt(ResolvedAtT&& value) {
125 m_resolvedAtHasBeenSet = true;
126 m_resolvedAt = std::forward<ResolvedAtT>(value);
127 }
128 template <typename ResolvedAtT = Aws::Utils::DateTime>
129 SyncBlocker& WithResolvedAt(ResolvedAtT&& value) {
130 SetResolvedAt(std::forward<ResolvedAtT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetResolvedReason() const { return m_resolvedReason; }
140 inline bool ResolvedReasonHasBeenSet() const { return m_resolvedReasonHasBeenSet; }
141 template <typename ResolvedReasonT = Aws::String>
142 void SetResolvedReason(ResolvedReasonT&& value) {
143 m_resolvedReasonHasBeenSet = true;
144 m_resolvedReason = std::forward<ResolvedReasonT>(value);
145 }
146 template <typename ResolvedReasonT = Aws::String>
147 SyncBlocker& WithResolvedReason(ResolvedReasonT&& value) {
148 SetResolvedReason(std::forward<ResolvedReasonT>(value));
149 return *this;
150 }
152
154
157 inline BlockerStatus GetStatus() const { return m_status; }
158 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
159 inline void SetStatus(BlockerStatus value) {
160 m_statusHasBeenSet = true;
161 m_status = value;
162 }
164 SetStatus(value);
165 return *this;
166 }
168
170
173 inline BlockerType GetType() const { return m_type; }
174 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
175 inline void SetType(BlockerType value) {
176 m_typeHasBeenSet = true;
177 m_type = value;
178 }
180 SetType(value);
181 return *this;
182 }
184 private:
186
187 Aws::Utils::DateTime m_createdAt{};
188
189 Aws::String m_createdReason;
190
191 Aws::String m_id;
192
193 Aws::Utils::DateTime m_resolvedAt{};
194
195 Aws::String m_resolvedReason;
196
198
200 bool m_contextsHasBeenSet = false;
201 bool m_createdAtHasBeenSet = false;
202 bool m_createdReasonHasBeenSet = false;
203 bool m_idHasBeenSet = false;
204 bool m_resolvedAtHasBeenSet = false;
205 bool m_resolvedReasonHasBeenSet = false;
206 bool m_statusHasBeenSet = false;
207 bool m_typeHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace Proton
212} // namespace Aws
void SetType(BlockerType value)
void SetResolvedReason(ResolvedReasonT &&value)
BlockerType GetType() const
void SetResolvedAt(ResolvedAtT &&value)
void SetCreatedReason(CreatedReasonT &&value)
Definition SyncBlocker.h:88
void SetStatus(BlockerStatus value)
AWS_PROTON_API SyncBlocker()=default
const Aws::Utils::DateTime & GetResolvedAt() const
SyncBlocker & WithResolvedAt(ResolvedAtT &&value)
const Aws::Vector< SyncBlockerContext > & GetContexts() const
Definition SyncBlocker.h:43
const Aws::String & GetResolvedReason() const
AWS_PROTON_API SyncBlocker(Aws::Utils::Json::JsonView jsonValue)
void SetContexts(ContextsT &&value)
Definition SyncBlocker.h:46
AWS_PROTON_API SyncBlocker & operator=(Aws::Utils::Json::JsonView jsonValue)
BlockerStatus GetStatus() const
SyncBlocker & WithContexts(ContextsT &&value)
Definition SyncBlocker.h:51
SyncBlocker & AddContexts(ContextsT &&value)
Definition SyncBlocker.h:56
SyncBlocker & WithStatus(BlockerStatus value)
const Aws::String & GetCreatedReason() const
Definition SyncBlocker.h:85
SyncBlocker & WithResolvedReason(ResolvedReasonT &&value)
SyncBlocker & WithId(IdT &&value)
void SetCreatedAt(CreatedAtT &&value)
Definition SyncBlocker.h:70
SyncBlocker & WithCreatedReason(CreatedReasonT &&value)
Definition SyncBlocker.h:93
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
SyncBlocker & WithCreatedAt(CreatedAtT &&value)
Definition SyncBlocker.h:75
SyncBlocker & WithType(BlockerType value)
const Aws::String & GetId() const
const Aws::Utils::DateTime & GetCreatedAt() const
Definition SyncBlocker.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue