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/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codestar-connections/model/ProviderType.h>
10#include <aws/codestar-connections/model/SyncConfigurationType.h>
11#include <aws/codestar-connections/model/PublishDeploymentStatus.h>
12#include <aws/codestar-connections/model/TriggerResourceUpdateOn.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeStarconnections
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CODESTARCONNECTIONS_API SyncConfiguration();
40 AWS_CODESTARCONNECTIONS_API SyncConfiguration(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODESTARCONNECTIONS_API SyncConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetBranch() const{ return m_branch; }
50 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
51 inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; }
52 inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); }
53 inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); }
54 inline SyncConfiguration& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
55 inline SyncConfiguration& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
56 inline SyncConfiguration& WithBranch(const char* value) { SetBranch(value); return *this;}
58
60
65 inline const Aws::String& GetConfigFile() const{ return m_configFile; }
66 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
67 inline void SetConfigFile(const Aws::String& value) { m_configFileHasBeenSet = true; m_configFile = value; }
68 inline void SetConfigFile(Aws::String&& value) { m_configFileHasBeenSet = true; m_configFile = std::move(value); }
69 inline void SetConfigFile(const char* value) { m_configFileHasBeenSet = true; m_configFile.assign(value); }
70 inline SyncConfiguration& WithConfigFile(const Aws::String& value) { SetConfigFile(value); return *this;}
71 inline SyncConfiguration& WithConfigFile(Aws::String&& value) { SetConfigFile(std::move(value)); return *this;}
72 inline SyncConfiguration& WithConfigFile(const char* value) { SetConfigFile(value); return *this;}
74
76
80 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
81 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
82 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
83 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
84 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
85 inline SyncConfiguration& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
86 inline SyncConfiguration& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
87 inline SyncConfiguration& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
89
91
95 inline const ProviderType& GetProviderType() const{ return m_providerType; }
96 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
97 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
98 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
99 inline SyncConfiguration& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
100 inline SyncConfiguration& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
102
104
108 inline const Aws::String& GetRepositoryLinkId() const{ return m_repositoryLinkId; }
109 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
110 inline void SetRepositoryLinkId(const Aws::String& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = value; }
111 inline void SetRepositoryLinkId(Aws::String&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::move(value); }
112 inline void SetRepositoryLinkId(const char* value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId.assign(value); }
113 inline SyncConfiguration& WithRepositoryLinkId(const Aws::String& value) { SetRepositoryLinkId(value); return *this;}
114 inline SyncConfiguration& WithRepositoryLinkId(Aws::String&& value) { SetRepositoryLinkId(std::move(value)); return *this;}
115 inline SyncConfiguration& WithRepositoryLinkId(const char* value) { SetRepositoryLinkId(value); return *this;}
117
119
122 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
123 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
124 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
125 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
126 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
127 inline SyncConfiguration& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
128 inline SyncConfiguration& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
129 inline SyncConfiguration& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
131
133
137 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
138 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
139 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
140 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
141 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
142 inline SyncConfiguration& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
143 inline SyncConfiguration& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
144 inline SyncConfiguration& WithResourceName(const char* value) { SetResourceName(value); return *this;}
146
148
152 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
153 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
154 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
155 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
156 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
157 inline SyncConfiguration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
158 inline SyncConfiguration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
159 inline SyncConfiguration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
161
163
166 inline const SyncConfigurationType& GetSyncType() const{ return m_syncType; }
167 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
168 inline void SetSyncType(const SyncConfigurationType& value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
169 inline void SetSyncType(SyncConfigurationType&& value) { m_syncTypeHasBeenSet = true; m_syncType = std::move(value); }
170 inline SyncConfiguration& WithSyncType(const SyncConfigurationType& value) { SetSyncType(value); return *this;}
171 inline SyncConfiguration& WithSyncType(SyncConfigurationType&& value) { SetSyncType(std::move(value)); return *this;}
173
175
179 inline const PublishDeploymentStatus& GetPublishDeploymentStatus() const{ return m_publishDeploymentStatus; }
180 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
181 inline void SetPublishDeploymentStatus(const PublishDeploymentStatus& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
182 inline void SetPublishDeploymentStatus(PublishDeploymentStatus&& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = std::move(value); }
186
188
191 inline const TriggerResourceUpdateOn& GetTriggerResourceUpdateOn() const{ return m_triggerResourceUpdateOn; }
192 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
193 inline void SetTriggerResourceUpdateOn(const TriggerResourceUpdateOn& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
194 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn&& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = std::move(value); }
198 private:
199
200 Aws::String m_branch;
201 bool m_branchHasBeenSet = false;
202
203 Aws::String m_configFile;
204 bool m_configFileHasBeenSet = false;
205
206 Aws::String m_ownerId;
207 bool m_ownerIdHasBeenSet = false;
208
209 ProviderType m_providerType;
210 bool m_providerTypeHasBeenSet = false;
211
212 Aws::String m_repositoryLinkId;
213 bool m_repositoryLinkIdHasBeenSet = false;
214
215 Aws::String m_repositoryName;
216 bool m_repositoryNameHasBeenSet = false;
217
218 Aws::String m_resourceName;
219 bool m_resourceNameHasBeenSet = false;
220
221 Aws::String m_roleArn;
222 bool m_roleArnHasBeenSet = false;
223
224 SyncConfigurationType m_syncType;
225 bool m_syncTypeHasBeenSet = false;
226
227 PublishDeploymentStatus m_publishDeploymentStatus;
228 bool m_publishDeploymentStatusHasBeenSet = false;
229
230 TriggerResourceUpdateOn m_triggerResourceUpdateOn;
231 bool m_triggerResourceUpdateOnHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace CodeStarconnections
236} // namespace Aws
SyncConfiguration & WithProviderType(ProviderType &&value)
AWS_CODESTARCONNECTIONS_API SyncConfiguration(Aws::Utils::Json::JsonView jsonValue)
SyncConfiguration & WithBranch(Aws::String &&value)
SyncConfiguration & WithResourceName(Aws::String &&value)
AWS_CODESTARCONNECTIONS_API SyncConfiguration()
void SetSyncType(SyncConfigurationType &&value)
const PublishDeploymentStatus & GetPublishDeploymentStatus() const
SyncConfiguration & WithBranch(const Aws::String &value)
SyncConfiguration & WithPublishDeploymentStatus(const PublishDeploymentStatus &value)
SyncConfiguration & WithRoleArn(const char *value)
SyncConfiguration & WithRepositoryName(const char *value)
SyncConfiguration & WithRoleArn(const Aws::String &value)
SyncConfiguration & WithRepositoryLinkId(const Aws::String &value)
SyncConfiguration & WithOwnerId(const char *value)
SyncConfiguration & WithConfigFile(const Aws::String &value)
SyncConfiguration & WithOwnerId(const Aws::String &value)
void SetTriggerResourceUpdateOn(const TriggerResourceUpdateOn &value)
SyncConfiguration & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn &&value)
SyncConfiguration & WithConfigFile(const char *value)
void SetPublishDeploymentStatus(const PublishDeploymentStatus &value)
SyncConfiguration & WithRepositoryLinkId(Aws::String &&value)
SyncConfiguration & WithSyncType(const SyncConfigurationType &value)
void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn &&value)
SyncConfiguration & WithRepositoryName(Aws::String &&value)
const SyncConfigurationType & GetSyncType() const
const TriggerResourceUpdateOn & GetTriggerResourceUpdateOn() const
void SetPublishDeploymentStatus(PublishDeploymentStatus &&value)
SyncConfiguration & WithSyncType(SyncConfigurationType &&value)
SyncConfiguration & WithTriggerResourceUpdateOn(const TriggerResourceUpdateOn &value)
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
SyncConfiguration & WithConfigFile(Aws::String &&value)
SyncConfiguration & WithPublishDeploymentStatus(PublishDeploymentStatus &&value)
SyncConfiguration & WithResourceName(const char *value)
SyncConfiguration & WithRoleArn(Aws::String &&value)
void SetSyncType(const SyncConfigurationType &value)
SyncConfiguration & WithProviderType(const ProviderType &value)
SyncConfiguration & WithBranch(const char *value)
SyncConfiguration & WithResourceName(const Aws::String &value)
SyncConfiguration & WithRepositoryName(const Aws::String &value)
SyncConfiguration & WithRepositoryLinkId(const char *value)
SyncConfiguration & WithOwnerId(Aws::String &&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