AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename BranchT = Aws::String>
53 void SetBranch(BranchT&& value) { m_branchHasBeenSet = true; m_branch = std::forward<BranchT>(value); }
54 template<typename BranchT = Aws::String>
55 SyncConfiguration& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
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) { m_configFileHasBeenSet = true; m_configFile = std::forward<ConfigFileT>(value); }
68 template<typename ConfigFileT = Aws::String>
69 SyncConfiguration& WithConfigFile(ConfigFileT&& value) { SetConfigFile(std::forward<ConfigFileT>(value)); return *this;}
71
73
77 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
78 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
79 template<typename OwnerIdT = Aws::String>
80 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
81 template<typename OwnerIdT = Aws::String>
82 SyncConfiguration& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
84
86
90 inline ProviderType GetProviderType() const { return m_providerType; }
91 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
92 inline void SetProviderType(ProviderType value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
93 inline SyncConfiguration& WithProviderType(ProviderType value) { SetProviderType(value); return *this;}
95
97
101 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
102 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
103 template<typename RepositoryLinkIdT = Aws::String>
104 void SetRepositoryLinkId(RepositoryLinkIdT&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value); }
105 template<typename RepositoryLinkIdT = Aws::String>
106 SyncConfiguration& WithRepositoryLinkId(RepositoryLinkIdT&& value) { SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value)); return *this;}
108
110
113 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
114 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
115 template<typename RepositoryNameT = Aws::String>
116 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
117 template<typename RepositoryNameT = Aws::String>
118 SyncConfiguration& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
120
122
126 inline const Aws::String& GetResourceName() const { return m_resourceName; }
127 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
128 template<typename ResourceNameT = Aws::String>
129 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
130 template<typename ResourceNameT = Aws::String>
131 SyncConfiguration& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
133
135
139 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
140 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
141 template<typename RoleArnT = Aws::String>
142 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
143 template<typename RoleArnT = Aws::String>
144 SyncConfiguration& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
146
148
151 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
152 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
153 inline void SetSyncType(SyncConfigurationType value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
154 inline SyncConfiguration& WithSyncType(SyncConfigurationType value) { SetSyncType(value); return *this;}
156
158
162 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
163 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
164 inline void SetPublishDeploymentStatus(PublishDeploymentStatus value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
167
169
172 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
173 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
174 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
177
179
183 inline PullRequestComment GetPullRequestComment() const { return m_pullRequestComment; }
184 inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; }
185 inline void SetPullRequestComment(PullRequestComment value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = value; }
188 private:
189
190 Aws::String m_branch;
191 bool m_branchHasBeenSet = false;
192
193 Aws::String m_configFile;
194 bool m_configFileHasBeenSet = false;
195
196 Aws::String m_ownerId;
197 bool m_ownerIdHasBeenSet = false;
198
199 ProviderType m_providerType{ProviderType::NOT_SET};
200 bool m_providerTypeHasBeenSet = false;
201
202 Aws::String m_repositoryLinkId;
203 bool m_repositoryLinkIdHasBeenSet = false;
204
205 Aws::String m_repositoryName;
206 bool m_repositoryNameHasBeenSet = false;
207
208 Aws::String m_resourceName;
209 bool m_resourceNameHasBeenSet = false;
210
211 Aws::String m_roleArn;
212 bool m_roleArnHasBeenSet = false;
213
215 bool m_syncTypeHasBeenSet = false;
216
218 bool m_publishDeploymentStatusHasBeenSet = false;
219
221 bool m_triggerResourceUpdateOnHasBeenSet = false;
222
224 bool m_pullRequestCommentHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace CodeConnections
229} // 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