AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SyncBlocker.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/model/BlockerStatus.h>
9#include <aws/codestar-connections/model/BlockerType.h>
10#include <aws/codestar-connections/model/SyncBlockerContext.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeStarconnections {
25namespace Model {
26
33 public:
34 AWS_CODESTARCONNECTIONS_API SyncBlocker() = default;
35 AWS_CODESTARCONNECTIONS_API SyncBlocker(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODESTARCONNECTIONS_API SyncBlocker& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 SyncBlocker& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline BlockerType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(BlockerType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72
74
77 inline BlockerStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(BlockerStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetCreatedReason() const { return m_createdReason; }
94 inline bool CreatedReasonHasBeenSet() const { return m_createdReasonHasBeenSet; }
95 template <typename CreatedReasonT = Aws::String>
96 void SetCreatedReason(CreatedReasonT&& value) {
97 m_createdReasonHasBeenSet = true;
98 m_createdReason = std::forward<CreatedReasonT>(value);
99 }
100 template <typename CreatedReasonT = Aws::String>
101 SyncBlocker& WithCreatedReason(CreatedReasonT&& value) {
102 SetCreatedReason(std::forward<CreatedReasonT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
112 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
113 template <typename CreatedAtT = Aws::Utils::DateTime>
114 void SetCreatedAt(CreatedAtT&& value) {
115 m_createdAtHasBeenSet = true;
116 m_createdAt = std::forward<CreatedAtT>(value);
117 }
118 template <typename CreatedAtT = Aws::Utils::DateTime>
119 SyncBlocker& WithCreatedAt(CreatedAtT&& value) {
120 SetCreatedAt(std::forward<CreatedAtT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<SyncBlockerContext>& GetContexts() const { return m_contexts; }
130 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
131 template <typename ContextsT = Aws::Vector<SyncBlockerContext>>
132 void SetContexts(ContextsT&& value) {
133 m_contextsHasBeenSet = true;
134 m_contexts = std::forward<ContextsT>(value);
135 }
136 template <typename ContextsT = Aws::Vector<SyncBlockerContext>>
137 SyncBlocker& WithContexts(ContextsT&& value) {
138 SetContexts(std::forward<ContextsT>(value));
139 return *this;
140 }
141 template <typename ContextsT = SyncBlockerContext>
142 SyncBlocker& AddContexts(ContextsT&& value) {
143 m_contextsHasBeenSet = true;
144 m_contexts.emplace_back(std::forward<ContextsT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetResolvedReason() const { return m_resolvedReason; }
154 inline bool ResolvedReasonHasBeenSet() const { return m_resolvedReasonHasBeenSet; }
155 template <typename ResolvedReasonT = Aws::String>
156 void SetResolvedReason(ResolvedReasonT&& value) {
157 m_resolvedReasonHasBeenSet = true;
158 m_resolvedReason = std::forward<ResolvedReasonT>(value);
159 }
160 template <typename ResolvedReasonT = Aws::String>
161 SyncBlocker& WithResolvedReason(ResolvedReasonT&& value) {
162 SetResolvedReason(std::forward<ResolvedReasonT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetResolvedAt() const { return m_resolvedAt; }
172 inline bool ResolvedAtHasBeenSet() const { return m_resolvedAtHasBeenSet; }
173 template <typename ResolvedAtT = Aws::Utils::DateTime>
174 void SetResolvedAt(ResolvedAtT&& value) {
175 m_resolvedAtHasBeenSet = true;
176 m_resolvedAt = std::forward<ResolvedAtT>(value);
177 }
178 template <typename ResolvedAtT = Aws::Utils::DateTime>
179 SyncBlocker& WithResolvedAt(ResolvedAtT&& value) {
180 SetResolvedAt(std::forward<ResolvedAtT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_id;
186
188
190
191 Aws::String m_createdReason;
192
193 Aws::Utils::DateTime m_createdAt{};
194
196
197 Aws::String m_resolvedReason;
198
199 Aws::Utils::DateTime m_resolvedAt{};
200 bool m_idHasBeenSet = false;
201 bool m_typeHasBeenSet = false;
202 bool m_statusHasBeenSet = false;
203 bool m_createdReasonHasBeenSet = false;
204 bool m_createdAtHasBeenSet = false;
205 bool m_contextsHasBeenSet = false;
206 bool m_resolvedReasonHasBeenSet = false;
207 bool m_resolvedAtHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace CodeStarconnections
212} // namespace Aws
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
SyncBlocker & WithResolvedAt(ResolvedAtT &&value)
AWS_CODESTARCONNECTIONS_API SyncBlocker & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedReason(CreatedReasonT &&value)
Definition SyncBlocker.h:96
SyncBlocker & WithStatus(BlockerStatus value)
Definition SyncBlocker.h:83
SyncBlocker & WithCreatedAt(CreatedAtT &&value)
void SetResolvedReason(ResolvedReasonT &&value)
SyncBlocker & AddContexts(ContextsT &&value)
const Aws::Vector< SyncBlockerContext > & GetContexts() const
AWS_CODESTARCONNECTIONS_API SyncBlocker()=default
const Aws::String & GetCreatedReason() const
Definition SyncBlocker.h:93
SyncBlocker & WithContexts(ContextsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetResolvedReason() const
SyncBlocker & WithCreatedReason(CreatedReasonT &&value)
SyncBlocker & WithType(BlockerType value)
Definition SyncBlocker.h:67
const Aws::Utils::DateTime & GetResolvedAt() const
AWS_CODESTARCONNECTIONS_API SyncBlocker(Aws::Utils::Json::JsonView jsonValue)
SyncBlocker & WithResolvedReason(ResolvedReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue