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/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() = default;
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 template<typename BranchT = Aws::String>
52 void SetBranch(BranchT&& value) { m_branchHasBeenSet = true; m_branch = std::forward<BranchT>(value); }
53 template<typename BranchT = Aws::String>
54 SyncConfiguration& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
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) { m_configFileHasBeenSet = true; m_configFile = std::forward<ConfigFileT>(value); }
67 template<typename ConfigFileT = Aws::String>
68 SyncConfiguration& WithConfigFile(ConfigFileT&& value) { SetConfigFile(std::forward<ConfigFileT>(value)); return *this;}
70
72
76 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
77 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
78 template<typename OwnerIdT = Aws::String>
79 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
80 template<typename OwnerIdT = Aws::String>
81 SyncConfiguration& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
83
85
89 inline ProviderType GetProviderType() const { return m_providerType; }
90 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
91 inline void SetProviderType(ProviderType value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
92 inline SyncConfiguration& WithProviderType(ProviderType value) { SetProviderType(value); return *this;}
94
96
100 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
101 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
102 template<typename RepositoryLinkIdT = Aws::String>
103 void SetRepositoryLinkId(RepositoryLinkIdT&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value); }
104 template<typename RepositoryLinkIdT = Aws::String>
105 SyncConfiguration& WithRepositoryLinkId(RepositoryLinkIdT&& value) { SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value)); return *this;}
107
109
112 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
113 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
114 template<typename RepositoryNameT = Aws::String>
115 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
116 template<typename RepositoryNameT = Aws::String>
117 SyncConfiguration& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
119
121
125 inline const Aws::String& GetResourceName() const { return m_resourceName; }
126 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
127 template<typename ResourceNameT = Aws::String>
128 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
129 template<typename ResourceNameT = Aws::String>
130 SyncConfiguration& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
132
134
138 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
139 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
140 template<typename RoleArnT = Aws::String>
141 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
142 template<typename RoleArnT = Aws::String>
143 SyncConfiguration& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
145
147
150 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
151 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
152 inline void SetSyncType(SyncConfigurationType value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
153 inline SyncConfiguration& WithSyncType(SyncConfigurationType value) { SetSyncType(value); return *this;}
155
157
161 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
162 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
163 inline void SetPublishDeploymentStatus(PublishDeploymentStatus value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
166
168
171 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
172 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
173 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
176 private:
177
178 Aws::String m_branch;
179 bool m_branchHasBeenSet = false;
180
181 Aws::String m_configFile;
182 bool m_configFileHasBeenSet = false;
183
184 Aws::String m_ownerId;
185 bool m_ownerIdHasBeenSet = false;
186
187 ProviderType m_providerType{ProviderType::NOT_SET};
188 bool m_providerTypeHasBeenSet = false;
189
190 Aws::String m_repositoryLinkId;
191 bool m_repositoryLinkIdHasBeenSet = false;
192
193 Aws::String m_repositoryName;
194 bool m_repositoryNameHasBeenSet = false;
195
196 Aws::String m_resourceName;
197 bool m_resourceNameHasBeenSet = false;
198
199 Aws::String m_roleArn;
200 bool m_roleArnHasBeenSet = false;
201
203 bool m_syncTypeHasBeenSet = false;
204
206 bool m_publishDeploymentStatusHasBeenSet = false;
207
209 bool m_triggerResourceUpdateOnHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace CodeStarconnections
214} // 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