AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
UpdateSyncConfigurationRequest.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnectionsRequest.h>
8#include <aws/codeconnections/CodeConnections_EXPORTS.h>
9#include <aws/codeconnections/model/PublishDeploymentStatus.h>
10#include <aws/codeconnections/model/PullRequestComment.h>
11#include <aws/codeconnections/model/SyncConfigurationType.h>
12#include <aws/codeconnections/model/TriggerResourceUpdateOn.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CodeConnections {
19namespace Model {
20
24 public:
25 AWS_CODECONNECTIONS_API UpdateSyncConfigurationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateSyncConfiguration"; }
32
33 AWS_CODECONNECTIONS_API Aws::String SerializePayload() const override;
34
35 AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetBranch() const { return m_branch; }
42 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
43 template <typename BranchT = Aws::String>
44 void SetBranch(BranchT&& value) {
45 m_branchHasBeenSet = true;
46 m_branch = std::forward<BranchT>(value);
47 }
48 template <typename BranchT = Aws::String>
50 SetBranch(std::forward<BranchT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetConfigFile() const { return m_configFile; }
60 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
61 template <typename ConfigFileT = Aws::String>
62 void SetConfigFile(ConfigFileT&& value) {
63 m_configFileHasBeenSet = true;
64 m_configFile = std::forward<ConfigFileT>(value);
65 }
66 template <typename ConfigFileT = Aws::String>
68 SetConfigFile(std::forward<ConfigFileT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
78 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
79 template <typename RepositoryLinkIdT = Aws::String>
80 void SetRepositoryLinkId(RepositoryLinkIdT&& value) {
81 m_repositoryLinkIdHasBeenSet = true;
82 m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value);
83 }
84 template <typename RepositoryLinkIdT = Aws::String>
86 SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetResourceName() const { return m_resourceName; }
97 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
98 template <typename ResourceNameT = Aws::String>
99 void SetResourceName(ResourceNameT&& value) {
100 m_resourceNameHasBeenSet = true;
101 m_resourceName = std::forward<ResourceNameT>(value);
102 }
103 template <typename ResourceNameT = Aws::String>
105 SetResourceName(std::forward<ResourceNameT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
115 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
116 template <typename RoleArnT = Aws::String>
117 void SetRoleArn(RoleArnT&& value) {
118 m_roleArnHasBeenSet = true;
119 m_roleArn = std::forward<RoleArnT>(value);
120 }
121 template <typename RoleArnT = Aws::String>
123 SetRoleArn(std::forward<RoleArnT>(value));
124 return *this;
125 }
127
129
132 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
133 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
135 m_syncTypeHasBeenSet = true;
136 m_syncType = value;
137 }
139 SetSyncType(value);
140 return *this;
141 }
143
145
149 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
150 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
152 m_publishDeploymentStatusHasBeenSet = true;
153 m_publishDeploymentStatus = value;
154 }
157 return *this;
158 }
160
162
165 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
166 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
168 m_triggerResourceUpdateOnHasBeenSet = true;
169 m_triggerResourceUpdateOn = value;
170 }
173 return *this;
174 }
176
178
182 inline PullRequestComment GetPullRequestComment() const { return m_pullRequestComment; }
183 inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; }
185 m_pullRequestCommentHasBeenSet = true;
186 m_pullRequestComment = value;
187 }
190 return *this;
191 }
193 private:
194 Aws::String m_branch;
195
196 Aws::String m_configFile;
197
198 Aws::String m_repositoryLinkId;
199
200 Aws::String m_resourceName;
201
202 Aws::String m_roleArn;
203
205
207
209
211 bool m_branchHasBeenSet = false;
212 bool m_configFileHasBeenSet = false;
213 bool m_repositoryLinkIdHasBeenSet = false;
214 bool m_resourceNameHasBeenSet = false;
215 bool m_roleArnHasBeenSet = false;
216 bool m_syncTypeHasBeenSet = false;
217 bool m_publishDeploymentStatusHasBeenSet = false;
218 bool m_triggerResourceUpdateOnHasBeenSet = false;
219 bool m_pullRequestCommentHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace CodeConnections
224} // namespace Aws
UpdateSyncConfigurationRequest & WithPublishDeploymentStatus(PublishDeploymentStatus value)
UpdateSyncConfigurationRequest & WithPullRequestComment(PullRequestComment value)
UpdateSyncConfigurationRequest & WithSyncType(SyncConfigurationType value)
UpdateSyncConfigurationRequest & WithRoleArn(RoleArnT &&value)
AWS_CODECONNECTIONS_API Aws::String SerializePayload() const override
UpdateSyncConfigurationRequest & WithConfigFile(ConfigFileT &&value)
UpdateSyncConfigurationRequest & WithResourceName(ResourceNameT &&value)
AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateSyncConfigurationRequest & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn value)
UpdateSyncConfigurationRequest & WithRepositoryLinkId(RepositoryLinkIdT &&value)
AWS_CODECONNECTIONS_API UpdateSyncConfigurationRequest()=default
UpdateSyncConfigurationRequest & WithBranch(BranchT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String