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>
26namespace CodeStarconnections
51 template<
typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
53 template<
typename IdT = Aws::String>
83 template<
typename CreatedReasonT = Aws::String>
84 void SetCreatedReason(CreatedReasonT&& value) { m_createdReasonHasBeenSet =
true; m_createdReason = std::forward<CreatedReasonT>(value); }
85 template<
typename CreatedReasonT = Aws::String>
95 template<
typename CreatedAtT = Aws::Utils::DateTime>
96 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
97 template<
typename CreatedAtT = Aws::Utils::DateTime>
107 template<
typename ContextsT = Aws::Vector<SyncBlockerContext>>
108 void SetContexts(ContextsT&& value) { m_contextsHasBeenSet =
true; m_contexts = std::forward<ContextsT>(value); }
109 template<
typename ContextsT = Aws::Vector<SyncBlockerContext>>
111 template<
typename ContextsT = SyncBlockerContext>
112 SyncBlocker&
AddContexts(ContextsT&& value) { m_contextsHasBeenSet =
true; m_contexts.emplace_back(std::forward<ContextsT>(value));
return *
this; }
121 template<
typename ResolvedReasonT = Aws::String>
122 void SetResolvedReason(ResolvedReasonT&& value) { m_resolvedReasonHasBeenSet =
true; m_resolvedReason = std::forward<ResolvedReasonT>(value); }
123 template<
typename ResolvedReasonT = Aws::String>
133 template<
typename ResolvedAtT = Aws::Utils::DateTime>
134 void SetResolvedAt(ResolvedAtT&& value) { m_resolvedAtHasBeenSet =
true; m_resolvedAt = std::forward<ResolvedAtT>(value); }
135 template<
typename ResolvedAtT = Aws::Utils::DateTime>
141 bool m_idHasBeenSet =
false;
144 bool m_typeHasBeenSet =
false;
147 bool m_statusHasBeenSet =
false;
150 bool m_createdReasonHasBeenSet =
false;
153 bool m_createdAtHasBeenSet =
false;
156 bool m_contextsHasBeenSet =
false;
159 bool m_resolvedReasonHasBeenSet =
false;
162 bool m_resolvedAtHasBeenSet =
false;
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
SyncBlocker & WithResolvedAt(ResolvedAtT &&value)
bool CreatedReasonHasBeenSet() const
AWS_CODESTARCONNECTIONS_API SyncBlocker & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CreatedAtHasBeenSet() const
void SetCreatedReason(CreatedReasonT &&value)
bool ContextsHasBeenSet() const
SyncBlocker & WithStatus(BlockerStatus value)
const Aws::String & GetId() const
SyncBlocker & WithId(IdT &&value)
bool StatusHasBeenSet() const
void SetResolvedAt(ResolvedAtT &&value)
SyncBlocker & WithCreatedAt(CreatedAtT &&value)
void SetResolvedReason(ResolvedReasonT &&value)
SyncBlocker & AddContexts(ContextsT &&value)
const Aws::Vector< SyncBlockerContext > & GetContexts() const
bool ResolvedReasonHasBeenSet() const
AWS_CODESTARCONNECTIONS_API SyncBlocker()=default
void SetContexts(ContextsT &&value)
const Aws::String & GetCreatedReason() const
SyncBlocker & WithContexts(ContextsT &&value)
bool IdHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetResolvedReason() const
void SetStatus(BlockerStatus value)
SyncBlocker & WithCreatedReason(CreatedReasonT &&value)
SyncBlocker & WithType(BlockerType value)
BlockerStatus GetStatus() const
void SetType(BlockerType value)
bool TypeHasBeenSet() const
BlockerType GetType() const
const Aws::Utils::DateTime & GetResolvedAt() const
AWS_CODESTARCONNECTIONS_API SyncBlocker(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
SyncBlocker & WithResolvedReason(ResolvedReasonT &&value)
bool ResolvedAtHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue