AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SyncBlocker.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/proton/model/BlockerStatus.h>
12#include <aws/proton/model/BlockerType.h>
13#include <aws/proton/model/SyncBlockerContext.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Proton
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_PROTON_API SyncBlocker();
40 AWS_PROTON_API SyncBlocker(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<SyncBlockerContext>& GetContexts() const{ return m_contexts; }
50 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
51 inline void SetContexts(const Aws::Vector<SyncBlockerContext>& value) { m_contextsHasBeenSet = true; m_contexts = value; }
52 inline void SetContexts(Aws::Vector<SyncBlockerContext>&& value) { m_contextsHasBeenSet = true; m_contexts = std::move(value); }
53 inline SyncBlocker& WithContexts(const Aws::Vector<SyncBlockerContext>& value) { SetContexts(value); return *this;}
54 inline SyncBlocker& WithContexts(Aws::Vector<SyncBlockerContext>&& value) { SetContexts(std::move(value)); return *this;}
55 inline SyncBlocker& AddContexts(const SyncBlockerContext& value) { m_contextsHasBeenSet = true; m_contexts.push_back(value); return *this; }
56 inline SyncBlocker& AddContexts(SyncBlockerContext&& value) { m_contextsHasBeenSet = true; m_contexts.push_back(std::move(value)); return *this; }
58
60
63 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
64 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
65 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
66 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
67 inline SyncBlocker& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
68 inline SyncBlocker& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetCreatedReason() const{ return m_createdReason; }
76 inline bool CreatedReasonHasBeenSet() const { return m_createdReasonHasBeenSet; }
77 inline void SetCreatedReason(const Aws::String& value) { m_createdReasonHasBeenSet = true; m_createdReason = value; }
78 inline void SetCreatedReason(Aws::String&& value) { m_createdReasonHasBeenSet = true; m_createdReason = std::move(value); }
79 inline void SetCreatedReason(const char* value) { m_createdReasonHasBeenSet = true; m_createdReason.assign(value); }
80 inline SyncBlocker& WithCreatedReason(const Aws::String& value) { SetCreatedReason(value); return *this;}
81 inline SyncBlocker& WithCreatedReason(Aws::String&& value) { SetCreatedReason(std::move(value)); return *this;}
82 inline SyncBlocker& WithCreatedReason(const char* value) { SetCreatedReason(value); return *this;}
84
86
89 inline const Aws::String& GetId() const{ return m_id; }
90 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
91 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
92 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
93 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
94 inline SyncBlocker& WithId(const Aws::String& value) { SetId(value); return *this;}
95 inline SyncBlocker& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
96 inline SyncBlocker& WithId(const char* value) { SetId(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetResolvedAt() const{ return m_resolvedAt; }
104 inline bool ResolvedAtHasBeenSet() const { return m_resolvedAtHasBeenSet; }
105 inline void SetResolvedAt(const Aws::Utils::DateTime& value) { m_resolvedAtHasBeenSet = true; m_resolvedAt = value; }
106 inline void SetResolvedAt(Aws::Utils::DateTime&& value) { m_resolvedAtHasBeenSet = true; m_resolvedAt = std::move(value); }
107 inline SyncBlocker& WithResolvedAt(const Aws::Utils::DateTime& value) { SetResolvedAt(value); return *this;}
108 inline SyncBlocker& WithResolvedAt(Aws::Utils::DateTime&& value) { SetResolvedAt(std::move(value)); return *this;}
110
112
115 inline const Aws::String& GetResolvedReason() const{ return m_resolvedReason; }
116 inline bool ResolvedReasonHasBeenSet() const { return m_resolvedReasonHasBeenSet; }
117 inline void SetResolvedReason(const Aws::String& value) { m_resolvedReasonHasBeenSet = true; m_resolvedReason = value; }
118 inline void SetResolvedReason(Aws::String&& value) { m_resolvedReasonHasBeenSet = true; m_resolvedReason = std::move(value); }
119 inline void SetResolvedReason(const char* value) { m_resolvedReasonHasBeenSet = true; m_resolvedReason.assign(value); }
120 inline SyncBlocker& WithResolvedReason(const Aws::String& value) { SetResolvedReason(value); return *this;}
121 inline SyncBlocker& WithResolvedReason(Aws::String&& value) { SetResolvedReason(std::move(value)); return *this;}
122 inline SyncBlocker& WithResolvedReason(const char* value) { SetResolvedReason(value); return *this;}
124
126
129 inline const BlockerStatus& GetStatus() const{ return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 inline void SetStatus(const BlockerStatus& value) { m_statusHasBeenSet = true; m_status = value; }
132 inline void SetStatus(BlockerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
133 inline SyncBlocker& WithStatus(const BlockerStatus& value) { SetStatus(value); return *this;}
134 inline SyncBlocker& WithStatus(BlockerStatus&& value) { SetStatus(std::move(value)); return *this;}
136
138
141 inline const BlockerType& GetType() const{ return m_type; }
142 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
143 inline void SetType(const BlockerType& value) { m_typeHasBeenSet = true; m_type = value; }
144 inline void SetType(BlockerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
145 inline SyncBlocker& WithType(const BlockerType& value) { SetType(value); return *this;}
146 inline SyncBlocker& WithType(BlockerType&& value) { SetType(std::move(value)); return *this;}
148 private:
149
151 bool m_contextsHasBeenSet = false;
152
153 Aws::Utils::DateTime m_createdAt;
154 bool m_createdAtHasBeenSet = false;
155
156 Aws::String m_createdReason;
157 bool m_createdReasonHasBeenSet = false;
158
159 Aws::String m_id;
160 bool m_idHasBeenSet = false;
161
162 Aws::Utils::DateTime m_resolvedAt;
163 bool m_resolvedAtHasBeenSet = false;
164
165 Aws::String m_resolvedReason;
166 bool m_resolvedReasonHasBeenSet = false;
167
168 BlockerStatus m_status;
169 bool m_statusHasBeenSet = false;
170
171 BlockerType m_type;
172 bool m_typeHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace Proton
177} // namespace Aws
SyncBlocker & WithCreatedReason(Aws::String &&value)
Definition SyncBlocker.h:81
void SetId(const char *value)
Definition SyncBlocker.h:93
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition SyncBlocker.h:65
void SetResolvedReason(const Aws::String &value)
SyncBlocker & WithCreatedReason(const Aws::String &value)
Definition SyncBlocker.h:80
SyncBlocker & AddContexts(SyncBlockerContext &&value)
Definition SyncBlocker.h:56
void SetContexts(Aws::Vector< SyncBlockerContext > &&value)
Definition SyncBlocker.h:52
void SetResolvedAt(const Aws::Utils::DateTime &value)
void SetType(BlockerType &&value)
void SetResolvedReason(const char *value)
void SetCreatedReason(const char *value)
Definition SyncBlocker.h:79
const Aws::Utils::DateTime & GetResolvedAt() const
void SetResolvedAt(Aws::Utils::DateTime &&value)
const Aws::Vector< SyncBlockerContext > & GetContexts() const
Definition SyncBlocker.h:49
const Aws::String & GetResolvedReason() const
SyncBlocker & WithResolvedAt(Aws::Utils::DateTime &&value)
SyncBlocker & WithContexts(Aws::Vector< SyncBlockerContext > &&value)
Definition SyncBlocker.h:54
AWS_PROTON_API SyncBlocker(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API SyncBlocker & operator=(Aws::Utils::Json::JsonView jsonValue)
const BlockerStatus & GetStatus() const
void SetStatus(BlockerStatus &&value)
SyncBlocker & WithResolvedAt(const Aws::Utils::DateTime &value)
void SetContexts(const Aws::Vector< SyncBlockerContext > &value)
Definition SyncBlocker.h:51
SyncBlocker & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition SyncBlocker.h:67
SyncBlocker & WithId(Aws::String &&value)
Definition SyncBlocker.h:95
void SetId(const Aws::String &value)
Definition SyncBlocker.h:91
SyncBlocker & WithResolvedReason(const Aws::String &value)
void SetCreatedReason(Aws::String &&value)
Definition SyncBlocker.h:78
const Aws::String & GetCreatedReason() const
Definition SyncBlocker.h:75
SyncBlocker & WithId(const Aws::String &value)
Definition SyncBlocker.h:94
SyncBlocker & WithType(BlockerType &&value)
void SetResolvedReason(Aws::String &&value)
SyncBlocker & WithType(const BlockerType &value)
SyncBlocker & WithStatus(const BlockerStatus &value)
void SetType(const BlockerType &value)
SyncBlocker & WithContexts(const Aws::Vector< SyncBlockerContext > &value)
Definition SyncBlocker.h:53
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
SyncBlocker & WithResolvedReason(const char *value)
SyncBlocker & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition SyncBlocker.h:68
SyncBlocker & WithCreatedReason(const char *value)
Definition SyncBlocker.h:82
const Aws::String & GetId() const
Definition SyncBlocker.h:89
void SetCreatedReason(const Aws::String &value)
Definition SyncBlocker.h:77
void SetId(Aws::String &&value)
Definition SyncBlocker.h:92
SyncBlocker & WithStatus(BlockerStatus &&value)
SyncBlocker & AddContexts(const SyncBlockerContext &value)
Definition SyncBlocker.h:55
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition SyncBlocker.h:66
const BlockerType & GetType() const
SyncBlocker & WithId(const char *value)
Definition SyncBlocker.h:96
void SetStatus(const BlockerStatus &value)
const Aws::Utils::DateTime & GetCreatedAt() const
Definition SyncBlocker.h:63
SyncBlocker & WithResolvedReason(Aws::String &&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