AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SyncConfiguration.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeconnections/model/ProviderType.h>
10#include <aws/codeconnections/model/SyncConfigurationType.h>
11#include <aws/codeconnections/model/PublishDeploymentStatus.h>
12#include <aws/codeconnections/model/TriggerResourceUpdateOn.h>
13#include <aws/codeconnections/model/PullRequestComment.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 CodeConnections
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CODECONNECTIONS_API SyncConfiguration();
41 AWS_CODECONNECTIONS_API SyncConfiguration(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODECONNECTIONS_API SyncConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetBranch() const{ return m_branch; }
51 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
52 inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; }
53 inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); }
54 inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); }
55 inline SyncConfiguration& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
56 inline SyncConfiguration& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
57 inline SyncConfiguration& WithBranch(const char* value) { SetBranch(value); return *this;}
59
61
66 inline const Aws::String& GetConfigFile() const{ return m_configFile; }
67 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
68 inline void SetConfigFile(const Aws::String& value) { m_configFileHasBeenSet = true; m_configFile = value; }
69 inline void SetConfigFile(Aws::String&& value) { m_configFileHasBeenSet = true; m_configFile = std::move(value); }
70 inline void SetConfigFile(const char* value) { m_configFileHasBeenSet = true; m_configFile.assign(value); }
71 inline SyncConfiguration& WithConfigFile(const Aws::String& value) { SetConfigFile(value); return *this;}
72 inline SyncConfiguration& WithConfigFile(Aws::String&& value) { SetConfigFile(std::move(value)); return *this;}
73 inline SyncConfiguration& WithConfigFile(const char* value) { SetConfigFile(value); return *this;}
75
77
81 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
82 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
83 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
84 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
85 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
86 inline SyncConfiguration& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
87 inline SyncConfiguration& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
88 inline SyncConfiguration& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
90
92
96 inline const ProviderType& GetProviderType() const{ return m_providerType; }
97 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
98 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
99 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
100 inline SyncConfiguration& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
101 inline SyncConfiguration& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
103
105
109 inline const Aws::String& GetRepositoryLinkId() const{ return m_repositoryLinkId; }
110 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
111 inline void SetRepositoryLinkId(const Aws::String& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = value; }
112 inline void SetRepositoryLinkId(Aws::String&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::move(value); }
113 inline void SetRepositoryLinkId(const char* value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId.assign(value); }
114 inline SyncConfiguration& WithRepositoryLinkId(const Aws::String& value) { SetRepositoryLinkId(value); return *this;}
115 inline SyncConfiguration& WithRepositoryLinkId(Aws::String&& value) { SetRepositoryLinkId(std::move(value)); return *this;}
116 inline SyncConfiguration& WithRepositoryLinkId(const char* value) { SetRepositoryLinkId(value); return *this;}
118
120
123 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
124 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
125 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
126 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
127 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
128 inline SyncConfiguration& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
129 inline SyncConfiguration& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
130 inline SyncConfiguration& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
132
134
138 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
139 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
140 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
141 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
142 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
143 inline SyncConfiguration& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
144 inline SyncConfiguration& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
145 inline SyncConfiguration& WithResourceName(const char* value) { SetResourceName(value); return *this;}
147
149
153 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
154 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
155 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
156 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
157 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
158 inline SyncConfiguration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
159 inline SyncConfiguration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
160 inline SyncConfiguration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
162
164
167 inline const SyncConfigurationType& GetSyncType() const{ return m_syncType; }
168 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
169 inline void SetSyncType(const SyncConfigurationType& value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
170 inline void SetSyncType(SyncConfigurationType&& value) { m_syncTypeHasBeenSet = true; m_syncType = std::move(value); }
171 inline SyncConfiguration& WithSyncType(const SyncConfigurationType& value) { SetSyncType(value); return *this;}
172 inline SyncConfiguration& WithSyncType(SyncConfigurationType&& value) { SetSyncType(std::move(value)); return *this;}
174
176
180 inline const PublishDeploymentStatus& GetPublishDeploymentStatus() const{ return m_publishDeploymentStatus; }
181 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
182 inline void SetPublishDeploymentStatus(const PublishDeploymentStatus& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
183 inline void SetPublishDeploymentStatus(PublishDeploymentStatus&& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = std::move(value); }
187
189
192 inline const TriggerResourceUpdateOn& GetTriggerResourceUpdateOn() const{ return m_triggerResourceUpdateOn; }
193 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
194 inline void SetTriggerResourceUpdateOn(const TriggerResourceUpdateOn& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
195 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn&& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = std::move(value); }
199
201
205 inline const PullRequestComment& GetPullRequestComment() const{ return m_pullRequestComment; }
206 inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; }
207 inline void SetPullRequestComment(const PullRequestComment& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = value; }
208 inline void SetPullRequestComment(PullRequestComment&& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = std::move(value); }
210 inline SyncConfiguration& WithPullRequestComment(PullRequestComment&& value) { SetPullRequestComment(std::move(value)); return *this;}
212 private:
213
214 Aws::String m_branch;
215 bool m_branchHasBeenSet = false;
216
217 Aws::String m_configFile;
218 bool m_configFileHasBeenSet = false;
219
220 Aws::String m_ownerId;
221 bool m_ownerIdHasBeenSet = false;
222
223 ProviderType m_providerType;
224 bool m_providerTypeHasBeenSet = false;
225
226 Aws::String m_repositoryLinkId;
227 bool m_repositoryLinkIdHasBeenSet = false;
228
229 Aws::String m_repositoryName;
230 bool m_repositoryNameHasBeenSet = false;
231
232 Aws::String m_resourceName;
233 bool m_resourceNameHasBeenSet = false;
234
235 Aws::String m_roleArn;
236 bool m_roleArnHasBeenSet = false;
237
238 SyncConfigurationType m_syncType;
239 bool m_syncTypeHasBeenSet = false;
240
241 PublishDeploymentStatus m_publishDeploymentStatus;
242 bool m_publishDeploymentStatusHasBeenSet = false;
243
244 TriggerResourceUpdateOn m_triggerResourceUpdateOn;
245 bool m_triggerResourceUpdateOnHasBeenSet = false;
246
247 PullRequestComment m_pullRequestComment;
248 bool m_pullRequestCommentHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace CodeConnections
253} // namespace Aws
SyncConfiguration & WithConfigFile(const char *value)
SyncConfiguration & WithProviderType(ProviderType &&value)
SyncConfiguration & WithProviderType(const ProviderType &value)
AWS_CODECONNECTIONS_API SyncConfiguration(Aws::Utils::Json::JsonView jsonValue)
SyncConfiguration & WithBranch(const Aws::String &value)
SyncConfiguration & WithBranch(Aws::String &&value)
SyncConfiguration & WithRepositoryName(const char *value)
SyncConfiguration & WithRepositoryLinkId(Aws::String &&value)
SyncConfiguration & WithPullRequestComment(const PullRequestComment &value)
const TriggerResourceUpdateOn & GetTriggerResourceUpdateOn() const
void SetPullRequestComment(const PullRequestComment &value)
void SetTriggerResourceUpdateOn(const TriggerResourceUpdateOn &value)
SyncConfiguration & WithRepositoryLinkId(const char *value)
SyncConfiguration & WithConfigFile(Aws::String &&value)
const PullRequestComment & GetPullRequestComment() const
SyncConfiguration & WithRepositoryLinkId(const Aws::String &value)
void SetSyncType(SyncConfigurationType &&value)
SyncConfiguration & WithOwnerId(const Aws::String &value)
SyncConfiguration & WithSyncType(SyncConfigurationType &&value)
void SetPublishDeploymentStatus(const PublishDeploymentStatus &value)
void SetSyncType(const SyncConfigurationType &value)
SyncConfiguration & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn &&value)
SyncConfiguration & WithRepositoryName(const Aws::String &value)
SyncConfiguration & WithOwnerId(const char *value)
const PublishDeploymentStatus & GetPublishDeploymentStatus() const
SyncConfiguration & WithRoleArn(const Aws::String &value)
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
SyncConfiguration & WithResourceName(Aws::String &&value)
const SyncConfigurationType & GetSyncType() const
SyncConfiguration & WithRoleArn(const char *value)
SyncConfiguration & WithResourceName(const Aws::String &value)
SyncConfiguration & WithPublishDeploymentStatus(PublishDeploymentStatus &&value)
void SetPublishDeploymentStatus(PublishDeploymentStatus &&value)
SyncConfiguration & WithBranch(const char *value)
SyncConfiguration & WithTriggerResourceUpdateOn(const TriggerResourceUpdateOn &value)
SyncConfiguration & WithRoleArn(Aws::String &&value)
SyncConfiguration & WithPublishDeploymentStatus(const PublishDeploymentStatus &value)
SyncConfiguration & WithResourceName(const char *value)
AWS_CODECONNECTIONS_API SyncConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SyncConfiguration & WithRepositoryName(Aws::String &&value)
void SetRepositoryName(const Aws::String &value)
SyncConfiguration & WithPullRequestComment(PullRequestComment &&value)
SyncConfiguration & WithOwnerId(Aws::String &&value)
SyncConfiguration & WithConfigFile(const Aws::String &value)
SyncConfiguration & WithSyncType(const SyncConfigurationType &value)
void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn &&value)
void SetProviderType(const ProviderType &value)
void SetRepositoryLinkId(const Aws::String &value)
void SetPullRequestComment(PullRequestComment &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue