AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SyncBlockerSummary.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/model/SyncBlocker.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeStarconnections {
22namespace Model {
23
30 public:
31 AWS_CODESTARCONNECTIONS_API SyncBlockerSummary() = default;
32 AWS_CODESTARCONNECTIONS_API SyncBlockerSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODESTARCONNECTIONS_API SyncBlockerSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetResourceName() const { return m_resourceName; }
41 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
42 template <typename ResourceNameT = Aws::String>
43 void SetResourceName(ResourceNameT&& value) {
44 m_resourceNameHasBeenSet = true;
45 m_resourceName = std::forward<ResourceNameT>(value);
46 }
47 template <typename ResourceNameT = Aws::String>
48 SyncBlockerSummary& WithResourceName(ResourceNameT&& value) {
49 SetResourceName(std::forward<ResourceNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetParentResourceName() const { return m_parentResourceName; }
59 inline bool ParentResourceNameHasBeenSet() const { return m_parentResourceNameHasBeenSet; }
60 template <typename ParentResourceNameT = Aws::String>
61 void SetParentResourceName(ParentResourceNameT&& value) {
62 m_parentResourceNameHasBeenSet = true;
63 m_parentResourceName = std::forward<ParentResourceNameT>(value);
64 }
65 template <typename ParentResourceNameT = Aws::String>
66 SyncBlockerSummary& WithParentResourceName(ParentResourceNameT&& value) {
67 SetParentResourceName(std::forward<ParentResourceNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<SyncBlocker>& GetLatestBlockers() const { return m_latestBlockers; }
77 inline bool LatestBlockersHasBeenSet() const { return m_latestBlockersHasBeenSet; }
78 template <typename LatestBlockersT = Aws::Vector<SyncBlocker>>
79 void SetLatestBlockers(LatestBlockersT&& value) {
80 m_latestBlockersHasBeenSet = true;
81 m_latestBlockers = std::forward<LatestBlockersT>(value);
82 }
83 template <typename LatestBlockersT = Aws::Vector<SyncBlocker>>
84 SyncBlockerSummary& WithLatestBlockers(LatestBlockersT&& value) {
85 SetLatestBlockers(std::forward<LatestBlockersT>(value));
86 return *this;
87 }
88 template <typename LatestBlockersT = SyncBlocker>
89 SyncBlockerSummary& AddLatestBlockers(LatestBlockersT&& value) {
90 m_latestBlockersHasBeenSet = true;
91 m_latestBlockers.emplace_back(std::forward<LatestBlockersT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_resourceName;
97
98 Aws::String m_parentResourceName;
99
100 Aws::Vector<SyncBlocker> m_latestBlockers;
101 bool m_resourceNameHasBeenSet = false;
102 bool m_parentResourceNameHasBeenSet = false;
103 bool m_latestBlockersHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace CodeStarconnections
108} // namespace Aws
void SetParentResourceName(ParentResourceNameT &&value)
SyncBlockerSummary & AddLatestBlockers(LatestBlockersT &&value)
SyncBlockerSummary & WithResourceName(ResourceNameT &&value)
AWS_CODESTARCONNECTIONS_API SyncBlockerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SyncBlockerSummary & WithLatestBlockers(LatestBlockersT &&value)
SyncBlockerSummary & WithParentResourceName(ParentResourceNameT &&value)
const Aws::Vector< SyncBlocker > & GetLatestBlockers() const
AWS_CODESTARCONNECTIONS_API SyncBlockerSummary()=default
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODESTARCONNECTIONS_API SyncBlockerSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue