AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
RepositorySummary.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/GitProvider.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyGen3 {
22namespace Model {
23
30 public:
31 AWS_AMPLIFYGEN3_API RepositorySummary() = default;
32 AWS_AMPLIFYGEN3_API RepositorySummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline GitProvider GetProvider() const { return m_provider; }
41 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
42 inline void SetProvider(GitProvider value) {
43 m_providerHasBeenSet = true;
44 m_provider = value;
45 }
47 SetProvider(value);
48 return *this;
49 }
51
53
58 inline const Aws::String& GetOwner() const { return m_owner; }
59 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
60 template <typename OwnerT = Aws::String>
61 void SetOwner(OwnerT&& value) {
62 m_ownerHasBeenSet = true;
63 m_owner = std::forward<OwnerT>(value);
64 }
65 template <typename OwnerT = Aws::String>
66 RepositorySummary& WithOwner(OwnerT&& value) {
67 SetOwner(std::forward<OwnerT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
84 RepositorySummary& WithName(NameT&& value) {
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDefaultBranch() const { return m_defaultBranch; }
95 inline bool DefaultBranchHasBeenSet() const { return m_defaultBranchHasBeenSet; }
96 template <typename DefaultBranchT = Aws::String>
97 void SetDefaultBranch(DefaultBranchT&& value) {
98 m_defaultBranchHasBeenSet = true;
99 m_defaultBranch = std::forward<DefaultBranchT>(value);
100 }
101 template <typename DefaultBranchT = Aws::String>
102 RepositorySummary& WithDefaultBranch(DefaultBranchT&& value) {
103 SetDefaultBranch(std::forward<DefaultBranchT>(value));
104 return *this;
105 }
107
109
114 inline const Aws::String& GetRepositoryPath() const { return m_repositoryPath; }
115 inline bool RepositoryPathHasBeenSet() const { return m_repositoryPathHasBeenSet; }
116 template <typename RepositoryPathT = Aws::String>
117 void SetRepositoryPath(RepositoryPathT&& value) {
118 m_repositoryPathHasBeenSet = true;
119 m_repositoryPath = std::forward<RepositoryPathT>(value);
120 }
121 template <typename RepositoryPathT = Aws::String>
122 RepositorySummary& WithRepositoryPath(RepositoryPathT&& value) {
123 SetRepositoryPath(std::forward<RepositoryPathT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
133 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
134 template <typename UpdatedAtT = Aws::Utils::DateTime>
135 void SetUpdatedAt(UpdatedAtT&& value) {
136 m_updatedAtHasBeenSet = true;
137 m_updatedAt = std::forward<UpdatedAtT>(value);
138 }
139 template <typename UpdatedAtT = Aws::Utils::DateTime>
140 RepositorySummary& WithUpdatedAt(UpdatedAtT&& value) {
141 SetUpdatedAt(std::forward<UpdatedAtT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetCloneUrl() const { return m_cloneUrl; }
151 inline bool CloneUrlHasBeenSet() const { return m_cloneUrlHasBeenSet; }
152 template <typename CloneUrlT = Aws::String>
153 void SetCloneUrl(CloneUrlT&& value) {
154 m_cloneUrlHasBeenSet = true;
155 m_cloneUrl = std::forward<CloneUrlT>(value);
156 }
157 template <typename CloneUrlT = Aws::String>
158 RepositorySummary& WithCloneUrl(CloneUrlT&& value) {
159 SetCloneUrl(std::forward<CloneUrlT>(value));
160 return *this;
161 }
163 private:
165
166 Aws::String m_owner;
167
168 Aws::String m_name;
169
170 Aws::String m_defaultBranch;
171
172 Aws::String m_repositoryPath;
173
174 Aws::Utils::DateTime m_updatedAt{};
175
176 Aws::String m_cloneUrl;
177 bool m_providerHasBeenSet = false;
178 bool m_ownerHasBeenSet = false;
179 bool m_nameHasBeenSet = false;
180 bool m_defaultBranchHasBeenSet = false;
181 bool m_repositoryPathHasBeenSet = false;
182 bool m_updatedAtHasBeenSet = false;
183 bool m_cloneUrlHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace AmplifyGen3
188} // namespace Aws
void SetRepositoryPath(RepositoryPathT &&value)
RepositorySummary & WithProvider(GitProvider value)
RepositorySummary & WithCloneUrl(CloneUrlT &&value)
RepositorySummary & WithUpdatedAt(UpdatedAtT &&value)
RepositorySummary & WithRepositoryPath(RepositoryPathT &&value)
AWS_AMPLIFYGEN3_API RepositorySummary()=default
const Aws::String & GetRepositoryPath() const
RepositorySummary & WithName(NameT &&value)
RepositorySummary & WithOwner(OwnerT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
RepositorySummary & WithDefaultBranch(DefaultBranchT &&value)
void SetDefaultBranch(DefaultBranchT &&value)
const Aws::String & GetDefaultBranch() const
AWS_AMPLIFYGEN3_API RepositorySummary(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API RepositorySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue