AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SyncConfiguration.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/model/ProviderType.h>
9#include <aws/codestar-connections/model/PublishDeploymentStatus.h>
10#include <aws/codestar-connections/model/SyncConfigurationType.h>
11#include <aws/codestar-connections/model/TriggerResourceUpdateOn.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeStarconnections {
24namespace Model {
25
33 public:
34 AWS_CODESTARCONNECTIONS_API SyncConfiguration() = default;
35 AWS_CODESTARCONNECTIONS_API SyncConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODESTARCONNECTIONS_API SyncConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetBranch() const { return m_branch; }
44 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
45 template <typename BranchT = Aws::String>
46 void SetBranch(BranchT&& value) {
47 m_branchHasBeenSet = true;
48 m_branch = std::forward<BranchT>(value);
49 }
50 template <typename BranchT = Aws::String>
51 SyncConfiguration& WithBranch(BranchT&& value) {
52 SetBranch(std::forward<BranchT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetConfigFile() const { return m_configFile; }
64 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
65 template <typename ConfigFileT = Aws::String>
66 void SetConfigFile(ConfigFileT&& value) {
67 m_configFileHasBeenSet = true;
68 m_configFile = std::forward<ConfigFileT>(value);
69 }
70 template <typename ConfigFileT = Aws::String>
71 SyncConfiguration& WithConfigFile(ConfigFileT&& value) {
72 SetConfigFile(std::forward<ConfigFileT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
83 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
84 template <typename OwnerIdT = Aws::String>
85 void SetOwnerId(OwnerIdT&& value) {
86 m_ownerIdHasBeenSet = true;
87 m_ownerId = std::forward<OwnerIdT>(value);
88 }
89 template <typename OwnerIdT = Aws::String>
90 SyncConfiguration& WithOwnerId(OwnerIdT&& value) {
91 SetOwnerId(std::forward<OwnerIdT>(value));
92 return *this;
93 }
95
97
101 inline ProviderType GetProviderType() const { return m_providerType; }
102 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
103 inline void SetProviderType(ProviderType value) {
104 m_providerTypeHasBeenSet = true;
105 m_providerType = value;
106 }
108 SetProviderType(value);
109 return *this;
110 }
112
114
118 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
119 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
120 template <typename RepositoryLinkIdT = Aws::String>
121 void SetRepositoryLinkId(RepositoryLinkIdT&& value) {
122 m_repositoryLinkIdHasBeenSet = true;
123 m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value);
124 }
125 template <typename RepositoryLinkIdT = Aws::String>
126 SyncConfiguration& WithRepositoryLinkId(RepositoryLinkIdT&& value) {
127 SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
137 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
138 template <typename RepositoryNameT = Aws::String>
139 void SetRepositoryName(RepositoryNameT&& value) {
140 m_repositoryNameHasBeenSet = true;
141 m_repositoryName = std::forward<RepositoryNameT>(value);
142 }
143 template <typename RepositoryNameT = Aws::String>
144 SyncConfiguration& WithRepositoryName(RepositoryNameT&& value) {
145 SetRepositoryName(std::forward<RepositoryNameT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::String& GetResourceName() const { return m_resourceName; }
156 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
157 template <typename ResourceNameT = Aws::String>
158 void SetResourceName(ResourceNameT&& value) {
159 m_resourceNameHasBeenSet = true;
160 m_resourceName = std::forward<ResourceNameT>(value);
161 }
162 template <typename ResourceNameT = Aws::String>
163 SyncConfiguration& WithResourceName(ResourceNameT&& value) {
164 SetResourceName(std::forward<ResourceNameT>(value));
165 return *this;
166 }
168
170
174 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
175 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
176 template <typename RoleArnT = Aws::String>
177 void SetRoleArn(RoleArnT&& value) {
178 m_roleArnHasBeenSet = true;
179 m_roleArn = std::forward<RoleArnT>(value);
180 }
181 template <typename RoleArnT = Aws::String>
182 SyncConfiguration& WithRoleArn(RoleArnT&& value) {
183 SetRoleArn(std::forward<RoleArnT>(value));
184 return *this;
185 }
187
189
192 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
193 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
195 m_syncTypeHasBeenSet = true;
196 m_syncType = value;
197 }
199 SetSyncType(value);
200 return *this;
201 }
203
205
209 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
210 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
212 m_publishDeploymentStatusHasBeenSet = true;
213 m_publishDeploymentStatus = value;
214 }
217 return *this;
218 }
220
222
225 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
226 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
228 m_triggerResourceUpdateOnHasBeenSet = true;
229 m_triggerResourceUpdateOn = value;
230 }
233 return *this;
234 }
236 private:
237 Aws::String m_branch;
238
239 Aws::String m_configFile;
240
241 Aws::String m_ownerId;
242
243 ProviderType m_providerType{ProviderType::NOT_SET};
244
245 Aws::String m_repositoryLinkId;
246
247 Aws::String m_repositoryName;
248
249 Aws::String m_resourceName;
250
251 Aws::String m_roleArn;
252
254
256
258 bool m_branchHasBeenSet = false;
259 bool m_configFileHasBeenSet = false;
260 bool m_ownerIdHasBeenSet = false;
261 bool m_providerTypeHasBeenSet = false;
262 bool m_repositoryLinkIdHasBeenSet = false;
263 bool m_repositoryNameHasBeenSet = false;
264 bool m_resourceNameHasBeenSet = false;
265 bool m_roleArnHasBeenSet = false;
266 bool m_syncTypeHasBeenSet = false;
267 bool m_publishDeploymentStatusHasBeenSet = false;
268 bool m_triggerResourceUpdateOnHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace CodeStarconnections
273} // namespace Aws
AWS_CODESTARCONNECTIONS_API SyncConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetPublishDeploymentStatus(PublishDeploymentStatus value)
SyncConfiguration & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn value)
SyncConfiguration & WithResourceName(ResourceNameT &&value)
SyncConfiguration & WithRepositoryLinkId(RepositoryLinkIdT &&value)
PublishDeploymentStatus GetPublishDeploymentStatus() const
SyncConfiguration & WithProviderType(ProviderType value)
SyncConfiguration & WithConfigFile(ConfigFileT &&value)
AWS_CODESTARCONNECTIONS_API SyncConfiguration()=default
void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn value)
SyncConfiguration & WithRoleArn(RoleArnT &&value)
TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const
SyncConfiguration & WithRepositoryName(RepositoryNameT &&value)
SyncConfiguration & WithOwnerId(OwnerIdT &&value)
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
SyncConfiguration & WithSyncType(SyncConfigurationType value)
SyncConfiguration & WithPublishDeploymentStatus(PublishDeploymentStatus value)
SyncConfiguration & WithBranch(BranchT &&value)
AWS_CODESTARCONNECTIONS_API SyncConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue