AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
SyncConfiguration.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/codeconnections/model/ProviderType.h>
9#include <aws/codeconnections/model/PublishDeploymentStatus.h>
10#include <aws/codeconnections/model/PullRequestComment.h>
11#include <aws/codeconnections/model/SyncConfigurationType.h>
12#include <aws/codeconnections/model/TriggerResourceUpdateOn.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeConnections {
25namespace Model {
26
34 public:
35 AWS_CODECONNECTIONS_API SyncConfiguration() = default;
36 AWS_CODECONNECTIONS_API SyncConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECONNECTIONS_API SyncConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetBranch() const { return m_branch; }
45 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
46 template <typename BranchT = Aws::String>
47 void SetBranch(BranchT&& value) {
48 m_branchHasBeenSet = true;
49 m_branch = std::forward<BranchT>(value);
50 }
51 template <typename BranchT = Aws::String>
52 SyncConfiguration& WithBranch(BranchT&& value) {
53 SetBranch(std::forward<BranchT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetConfigFile() const { return m_configFile; }
65 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
66 template <typename ConfigFileT = Aws::String>
67 void SetConfigFile(ConfigFileT&& value) {
68 m_configFileHasBeenSet = true;
69 m_configFile = std::forward<ConfigFileT>(value);
70 }
71 template <typename ConfigFileT = Aws::String>
72 SyncConfiguration& WithConfigFile(ConfigFileT&& value) {
73 SetConfigFile(std::forward<ConfigFileT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
84 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
85 template <typename OwnerIdT = Aws::String>
86 void SetOwnerId(OwnerIdT&& value) {
87 m_ownerIdHasBeenSet = true;
88 m_ownerId = std::forward<OwnerIdT>(value);
89 }
90 template <typename OwnerIdT = Aws::String>
91 SyncConfiguration& WithOwnerId(OwnerIdT&& value) {
92 SetOwnerId(std::forward<OwnerIdT>(value));
93 return *this;
94 }
96
98
102 inline ProviderType GetProviderType() const { return m_providerType; }
103 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
104 inline void SetProviderType(ProviderType value) {
105 m_providerTypeHasBeenSet = true;
106 m_providerType = value;
107 }
109 SetProviderType(value);
110 return *this;
111 }
113
115
119 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
120 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
121 template <typename RepositoryLinkIdT = Aws::String>
122 void SetRepositoryLinkId(RepositoryLinkIdT&& value) {
123 m_repositoryLinkIdHasBeenSet = true;
124 m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value);
125 }
126 template <typename RepositoryLinkIdT = Aws::String>
127 SyncConfiguration& WithRepositoryLinkId(RepositoryLinkIdT&& value) {
128 SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
138 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
139 template <typename RepositoryNameT = Aws::String>
140 void SetRepositoryName(RepositoryNameT&& value) {
141 m_repositoryNameHasBeenSet = true;
142 m_repositoryName = std::forward<RepositoryNameT>(value);
143 }
144 template <typename RepositoryNameT = Aws::String>
145 SyncConfiguration& WithRepositoryName(RepositoryNameT&& value) {
146 SetRepositoryName(std::forward<RepositoryNameT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::String& GetResourceName() const { return m_resourceName; }
157 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
158 template <typename ResourceNameT = Aws::String>
159 void SetResourceName(ResourceNameT&& value) {
160 m_resourceNameHasBeenSet = true;
161 m_resourceName = std::forward<ResourceNameT>(value);
162 }
163 template <typename ResourceNameT = Aws::String>
164 SyncConfiguration& WithResourceName(ResourceNameT&& value) {
165 SetResourceName(std::forward<ResourceNameT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
176 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
177 template <typename RoleArnT = Aws::String>
178 void SetRoleArn(RoleArnT&& value) {
179 m_roleArnHasBeenSet = true;
180 m_roleArn = std::forward<RoleArnT>(value);
181 }
182 template <typename RoleArnT = Aws::String>
183 SyncConfiguration& WithRoleArn(RoleArnT&& value) {
184 SetRoleArn(std::forward<RoleArnT>(value));
185 return *this;
186 }
188
190
193 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
194 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
196 m_syncTypeHasBeenSet = true;
197 m_syncType = value;
198 }
200 SetSyncType(value);
201 return *this;
202 }
204
206
210 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
211 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
213 m_publishDeploymentStatusHasBeenSet = true;
214 m_publishDeploymentStatus = value;
215 }
218 return *this;
219 }
221
223
226 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
227 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
229 m_triggerResourceUpdateOnHasBeenSet = true;
230 m_triggerResourceUpdateOn = value;
231 }
234 return *this;
235 }
237
239
243 inline PullRequestComment GetPullRequestComment() const { return m_pullRequestComment; }
244 inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; }
246 m_pullRequestCommentHasBeenSet = true;
247 m_pullRequestComment = value;
248 }
251 return *this;
252 }
254 private:
255 Aws::String m_branch;
256
257 Aws::String m_configFile;
258
259 Aws::String m_ownerId;
260
261 ProviderType m_providerType{ProviderType::NOT_SET};
262
263 Aws::String m_repositoryLinkId;
264
265 Aws::String m_repositoryName;
266
267 Aws::String m_resourceName;
268
269 Aws::String m_roleArn;
270
272
274
276
278 bool m_branchHasBeenSet = false;
279 bool m_configFileHasBeenSet = false;
280 bool m_ownerIdHasBeenSet = false;
281 bool m_providerTypeHasBeenSet = false;
282 bool m_repositoryLinkIdHasBeenSet = false;
283 bool m_repositoryNameHasBeenSet = false;
284 bool m_resourceNameHasBeenSet = false;
285 bool m_roleArnHasBeenSet = false;
286 bool m_syncTypeHasBeenSet = false;
287 bool m_publishDeploymentStatusHasBeenSet = false;
288 bool m_triggerResourceUpdateOnHasBeenSet = false;
289 bool m_pullRequestCommentHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace CodeConnections
294} // namespace Aws
void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn value)
SyncConfiguration & WithRepositoryLinkId(RepositoryLinkIdT &&value)
AWS_CODECONNECTIONS_API SyncConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetPullRequestComment(PullRequestComment value)
PublishDeploymentStatus GetPublishDeploymentStatus() const
SyncConfiguration & WithBranch(BranchT &&value)
SyncConfiguration & WithRepositoryName(RepositoryNameT &&value)
void SetRepositoryLinkId(RepositoryLinkIdT &&value)
SyncConfiguration & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn value)
void SetPublishDeploymentStatus(PublishDeploymentStatus value)
SyncConfiguration & WithResourceName(ResourceNameT &&value)
SyncConfiguration & WithRoleArn(RoleArnT &&value)
SyncConfiguration & WithPullRequestComment(PullRequestComment value)
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
SyncConfiguration & WithPublishDeploymentStatus(PublishDeploymentStatus value)
TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const
void SetSyncType(SyncConfigurationType value)
AWS_CODECONNECTIONS_API SyncConfiguration()=default
AWS_CODECONNECTIONS_API SyncConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SyncConfiguration & WithOwnerId(OwnerIdT &&value)
SyncConfiguration & WithProviderType(ProviderType value)
SyncConfiguration & WithConfigFile(ConfigFileT &&value)
SyncConfiguration & WithSyncType(SyncConfigurationType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue