AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ContextsT = Aws::Vector<SyncBlockerContext>>
52 void SetContexts(ContextsT&& value) { m_contextsHasBeenSet = true; m_contexts = std::forward<ContextsT>(value); }
53 template<typename ContextsT = Aws::Vector<SyncBlockerContext>>
54 SyncBlocker& WithContexts(ContextsT&& value) { SetContexts(std::forward<ContextsT>(value)); return *this;}
55 template<typename ContextsT = SyncBlockerContext>
56 SyncBlocker& AddContexts(ContextsT&& value) { m_contextsHasBeenSet = true; m_contexts.emplace_back(std::forward<ContextsT>(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 template<typename CreatedAtT = Aws::Utils::DateTime>
66 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
67 template<typename CreatedAtT = Aws::Utils::DateTime>
68 SyncBlocker& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
70
72
75 inline const Aws::String& GetCreatedReason() const { return m_createdReason; }
76 inline bool CreatedReasonHasBeenSet() const { return m_createdReasonHasBeenSet; }
77 template<typename CreatedReasonT = Aws::String>
78 void SetCreatedReason(CreatedReasonT&& value) { m_createdReasonHasBeenSet = true; m_createdReason = std::forward<CreatedReasonT>(value); }
79 template<typename CreatedReasonT = Aws::String>
80 SyncBlocker& WithCreatedReason(CreatedReasonT&& value) { SetCreatedReason(std::forward<CreatedReasonT>(value)); return *this;}
82
84
87 inline const Aws::String& GetId() const { return m_id; }
88 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
89 template<typename IdT = Aws::String>
90 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
91 template<typename IdT = Aws::String>
92 SyncBlocker& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetResolvedAt() const { return m_resolvedAt; }
100 inline bool ResolvedAtHasBeenSet() const { return m_resolvedAtHasBeenSet; }
101 template<typename ResolvedAtT = Aws::Utils::DateTime>
102 void SetResolvedAt(ResolvedAtT&& value) { m_resolvedAtHasBeenSet = true; m_resolvedAt = std::forward<ResolvedAtT>(value); }
103 template<typename ResolvedAtT = Aws::Utils::DateTime>
104 SyncBlocker& WithResolvedAt(ResolvedAtT&& value) { SetResolvedAt(std::forward<ResolvedAtT>(value)); return *this;}
106
108
111 inline const Aws::String& GetResolvedReason() const { return m_resolvedReason; }
112 inline bool ResolvedReasonHasBeenSet() const { return m_resolvedReasonHasBeenSet; }
113 template<typename ResolvedReasonT = Aws::String>
114 void SetResolvedReason(ResolvedReasonT&& value) { m_resolvedReasonHasBeenSet = true; m_resolvedReason = std::forward<ResolvedReasonT>(value); }
115 template<typename ResolvedReasonT = Aws::String>
116 SyncBlocker& WithResolvedReason(ResolvedReasonT&& value) { SetResolvedReason(std::forward<ResolvedReasonT>(value)); return *this;}
118
120
123 inline BlockerStatus GetStatus() const { return m_status; }
124 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 inline void SetStatus(BlockerStatus value) { m_statusHasBeenSet = true; m_status = value; }
126 inline SyncBlocker& WithStatus(BlockerStatus value) { SetStatus(value); return *this;}
128
130
133 inline BlockerType GetType() const { return m_type; }
134 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
135 inline void SetType(BlockerType value) { m_typeHasBeenSet = true; m_type = value; }
136 inline SyncBlocker& WithType(BlockerType value) { SetType(value); return *this;}
138 private:
139
141 bool m_contextsHasBeenSet = false;
142
143 Aws::Utils::DateTime m_createdAt{};
144 bool m_createdAtHasBeenSet = false;
145
146 Aws::String m_createdReason;
147 bool m_createdReasonHasBeenSet = false;
148
149 Aws::String m_id;
150 bool m_idHasBeenSet = false;
151
152 Aws::Utils::DateTime m_resolvedAt{};
153 bool m_resolvedAtHasBeenSet = false;
154
155 Aws::String m_resolvedReason;
156 bool m_resolvedReasonHasBeenSet = false;
157
159 bool m_statusHasBeenSet = false;
160
162 bool m_typeHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace Proton
167} // namespace Aws
void SetType(BlockerType value)
void SetResolvedReason(ResolvedReasonT &&value)
BlockerType GetType() const
void SetResolvedAt(ResolvedAtT &&value)
void SetCreatedReason(CreatedReasonT &&value)
Definition SyncBlocker.h:78
void SetStatus(BlockerStatus value)
AWS_PROTON_API SyncBlocker()=default
const Aws::Utils::DateTime & GetResolvedAt() const
Definition SyncBlocker.h:99
SyncBlocker & WithResolvedAt(ResolvedAtT &&value)
const Aws::Vector< SyncBlockerContext > & GetContexts() const
Definition SyncBlocker.h:49
const Aws::String & GetResolvedReason() const
AWS_PROTON_API SyncBlocker(Aws::Utils::Json::JsonView jsonValue)
void SetContexts(ContextsT &&value)
Definition SyncBlocker.h:52
AWS_PROTON_API SyncBlocker & operator=(Aws::Utils::Json::JsonView jsonValue)
BlockerStatus GetStatus() const
SyncBlocker & WithContexts(ContextsT &&value)
Definition SyncBlocker.h:54
SyncBlocker & AddContexts(ContextsT &&value)
Definition SyncBlocker.h:56
SyncBlocker & WithStatus(BlockerStatus value)
const Aws::String & GetCreatedReason() const
Definition SyncBlocker.h:75
SyncBlocker & WithResolvedReason(ResolvedReasonT &&value)
SyncBlocker & WithId(IdT &&value)
Definition SyncBlocker.h:92
void SetCreatedAt(CreatedAtT &&value)
Definition SyncBlocker.h:66
SyncBlocker & WithCreatedReason(CreatedReasonT &&value)
Definition SyncBlocker.h:80
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
SyncBlocker & WithCreatedAt(CreatedAtT &&value)
Definition SyncBlocker.h:68
SyncBlocker & WithType(BlockerType value)
const Aws::String & GetId() const
Definition SyncBlocker.h:87
const Aws::Utils::DateTime & GetCreatedAt() const
Definition SyncBlocker.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue