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/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codestar-connections/model/BlockerType.h>
10#include <aws/codestar-connections/model/BlockerStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/codestar-connections/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 CodeStarconnections
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CODESTARCONNECTIONS_API SyncBlocker();
40 AWS_CODESTARCONNECTIONS_API SyncBlocker(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODESTARCONNECTIONS_API SyncBlocker& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline SyncBlocker& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline SyncBlocker& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline SyncBlocker& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const BlockerType& GetType() const{ return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(const BlockerType& value) { m_typeHasBeenSet = true; m_type = value; }
66 inline void SetType(BlockerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
67 inline SyncBlocker& WithType(const BlockerType& value) { SetType(value); return *this;}
68 inline SyncBlocker& WithType(BlockerType&& value) { SetType(std::move(value)); return *this;}
70
72
75 inline const BlockerStatus& GetStatus() const{ return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(const BlockerStatus& value) { m_statusHasBeenSet = true; m_status = value; }
78 inline void SetStatus(BlockerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
79 inline SyncBlocker& WithStatus(const BlockerStatus& value) { SetStatus(value); return *this;}
80 inline SyncBlocker& WithStatus(BlockerStatus&& value) { SetStatus(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetCreatedReason() const{ return m_createdReason; }
88 inline bool CreatedReasonHasBeenSet() const { return m_createdReasonHasBeenSet; }
89 inline void SetCreatedReason(const Aws::String& value) { m_createdReasonHasBeenSet = true; m_createdReason = value; }
90 inline void SetCreatedReason(Aws::String&& value) { m_createdReasonHasBeenSet = true; m_createdReason = std::move(value); }
91 inline void SetCreatedReason(const char* value) { m_createdReasonHasBeenSet = true; m_createdReason.assign(value); }
92 inline SyncBlocker& WithCreatedReason(const Aws::String& value) { SetCreatedReason(value); return *this;}
93 inline SyncBlocker& WithCreatedReason(Aws::String&& value) { SetCreatedReason(std::move(value)); return *this;}
94 inline SyncBlocker& WithCreatedReason(const char* value) { SetCreatedReason(value); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
102 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
103 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
104 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
105 inline SyncBlocker& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
106 inline SyncBlocker& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
108
110
113 inline const Aws::Vector<SyncBlockerContext>& GetContexts() const{ return m_contexts; }
114 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
115 inline void SetContexts(const Aws::Vector<SyncBlockerContext>& value) { m_contextsHasBeenSet = true; m_contexts = value; }
116 inline void SetContexts(Aws::Vector<SyncBlockerContext>&& value) { m_contextsHasBeenSet = true; m_contexts = std::move(value); }
117 inline SyncBlocker& WithContexts(const Aws::Vector<SyncBlockerContext>& value) { SetContexts(value); return *this;}
118 inline SyncBlocker& WithContexts(Aws::Vector<SyncBlockerContext>&& value) { SetContexts(std::move(value)); return *this;}
119 inline SyncBlocker& AddContexts(const SyncBlockerContext& value) { m_contextsHasBeenSet = true; m_contexts.push_back(value); return *this; }
120 inline SyncBlocker& AddContexts(SyncBlockerContext&& value) { m_contextsHasBeenSet = true; m_contexts.push_back(std::move(value)); return *this; }
122
124
127 inline const Aws::String& GetResolvedReason() const{ return m_resolvedReason; }
128 inline bool ResolvedReasonHasBeenSet() const { return m_resolvedReasonHasBeenSet; }
129 inline void SetResolvedReason(const Aws::String& value) { m_resolvedReasonHasBeenSet = true; m_resolvedReason = value; }
130 inline void SetResolvedReason(Aws::String&& value) { m_resolvedReasonHasBeenSet = true; m_resolvedReason = std::move(value); }
131 inline void SetResolvedReason(const char* value) { m_resolvedReasonHasBeenSet = true; m_resolvedReason.assign(value); }
132 inline SyncBlocker& WithResolvedReason(const Aws::String& value) { SetResolvedReason(value); return *this;}
133 inline SyncBlocker& WithResolvedReason(Aws::String&& value) { SetResolvedReason(std::move(value)); return *this;}
134 inline SyncBlocker& WithResolvedReason(const char* value) { SetResolvedReason(value); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetResolvedAt() const{ return m_resolvedAt; }
142 inline bool ResolvedAtHasBeenSet() const { return m_resolvedAtHasBeenSet; }
143 inline void SetResolvedAt(const Aws::Utils::DateTime& value) { m_resolvedAtHasBeenSet = true; m_resolvedAt = value; }
144 inline void SetResolvedAt(Aws::Utils::DateTime&& value) { m_resolvedAtHasBeenSet = true; m_resolvedAt = std::move(value); }
145 inline SyncBlocker& WithResolvedAt(const Aws::Utils::DateTime& value) { SetResolvedAt(value); return *this;}
146 inline SyncBlocker& WithResolvedAt(Aws::Utils::DateTime&& value) { SetResolvedAt(std::move(value)); return *this;}
148 private:
149
150 Aws::String m_id;
151 bool m_idHasBeenSet = false;
152
153 BlockerType m_type;
154 bool m_typeHasBeenSet = false;
155
156 BlockerStatus m_status;
157 bool m_statusHasBeenSet = false;
158
159 Aws::String m_createdReason;
160 bool m_createdReasonHasBeenSet = false;
161
162 Aws::Utils::DateTime m_createdAt;
163 bool m_createdAtHasBeenSet = false;
164
166 bool m_contextsHasBeenSet = false;
167
168 Aws::String m_resolvedReason;
169 bool m_resolvedReasonHasBeenSet = false;
170
171 Aws::Utils::DateTime m_resolvedAt;
172 bool m_resolvedAtHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace CodeStarconnections
177} // namespace Aws
AWS_CODESTARCONNECTIONS_API SyncBlocker()
void SetResolvedReason(Aws::String &&value)
SyncBlocker & WithResolvedReason(const char *value)
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
SyncBlocker & WithContexts(const Aws::Vector< SyncBlockerContext > &value)
AWS_CODESTARCONNECTIONS_API SyncBlocker & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContexts(Aws::Vector< SyncBlockerContext > &&value)
void SetStatus(BlockerStatus &&value)
Definition SyncBlocker.h:78
void SetResolvedReason(const Aws::String &value)
SyncBlocker & WithResolvedAt(const Aws::Utils::DateTime &value)
SyncBlocker & WithCreatedReason(Aws::String &&value)
Definition SyncBlocker.h:93
SyncBlocker & WithId(const char *value)
Definition SyncBlocker.h:56
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
SyncBlocker & WithResolvedAt(Aws::Utils::DateTime &&value)
const BlockerType & GetType() const
Definition SyncBlocker.h:63
SyncBlocker & WithType(BlockerType &&value)
Definition SyncBlocker.h:68
SyncBlocker & WithType(const BlockerType &value)
Definition SyncBlocker.h:67
void SetCreatedReason(Aws::String &&value)
Definition SyncBlocker.h:90
void SetResolvedAt(const Aws::Utils::DateTime &value)
SyncBlocker & WithId(const Aws::String &value)
Definition SyncBlocker.h:54
SyncBlocker & WithContexts(Aws::Vector< SyncBlockerContext > &&value)
SyncBlocker & WithCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Vector< SyncBlockerContext > & GetContexts() const
void SetResolvedAt(Aws::Utils::DateTime &&value)
void SetType(const BlockerType &value)
Definition SyncBlocker.h:65
SyncBlocker & AddContexts(const SyncBlockerContext &value)
SyncBlocker & WithResolvedReason(Aws::String &&value)
const Aws::String & GetCreatedReason() const
Definition SyncBlocker.h:87
SyncBlocker & WithStatus(const BlockerStatus &value)
Definition SyncBlocker.h:79
const Aws::Utils::DateTime & GetCreatedAt() const
const BlockerStatus & GetStatus() const
Definition SyncBlocker.h:75
const Aws::String & GetResolvedReason() const
void SetContexts(const Aws::Vector< SyncBlockerContext > &value)
SyncBlocker & WithCreatedReason(const Aws::String &value)
Definition SyncBlocker.h:92
SyncBlocker & WithCreatedAt(const Aws::Utils::DateTime &value)
SyncBlocker & WithCreatedReason(const char *value)
Definition SyncBlocker.h:94
void SetId(const Aws::String &value)
Definition SyncBlocker.h:51
SyncBlocker & AddContexts(SyncBlockerContext &&value)
void SetStatus(const BlockerStatus &value)
Definition SyncBlocker.h:77
SyncBlocker & WithStatus(BlockerStatus &&value)
Definition SyncBlocker.h:80
const Aws::Utils::DateTime & GetResolvedAt() const
AWS_CODESTARCONNECTIONS_API SyncBlocker(Aws::Utils::Json::JsonView jsonValue)
SyncBlocker & WithResolvedReason(const Aws::String &value)
SyncBlocker & WithId(Aws::String &&value)
Definition SyncBlocker.h:55
void SetCreatedReason(const Aws::String &value)
Definition SyncBlocker.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue