AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateSyncConfigurationRequest.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 CreateSyncConfigurationRequest() = 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 "CreateSyncConfiguration"; }
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
61 inline const Aws::String& GetConfigFile() const { return m_configFile; }
62 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
63 template <typename ConfigFileT = Aws::String>
64 void SetConfigFile(ConfigFileT&& value) {
65 m_configFileHasBeenSet = true;
66 m_configFile = std::forward<ConfigFileT>(value);
67 }
68 template <typename ConfigFileT = Aws::String>
70 SetConfigFile(std::forward<ConfigFileT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
82 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
83 template <typename RepositoryLinkIdT = Aws::String>
84 void SetRepositoryLinkId(RepositoryLinkIdT&& value) {
85 m_repositoryLinkIdHasBeenSet = true;
86 m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value);
87 }
88 template <typename RepositoryLinkIdT = Aws::String>
90 SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetResourceName() const { return m_resourceName; }
102 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
103 template <typename ResourceNameT = Aws::String>
104 void SetResourceName(ResourceNameT&& value) {
105 m_resourceNameHasBeenSet = true;
106 m_resourceName = std::forward<ResourceNameT>(value);
107 }
108 template <typename ResourceNameT = Aws::String>
110 SetResourceName(std::forward<ResourceNameT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
121 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
122 template <typename RoleArnT = Aws::String>
123 void SetRoleArn(RoleArnT&& value) {
124 m_roleArnHasBeenSet = true;
125 m_roleArn = std::forward<RoleArnT>(value);
126 }
127 template <typename RoleArnT = Aws::String>
129 SetRoleArn(std::forward<RoleArnT>(value));
130 return *this;
131 }
133
135
138 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
139 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
141 m_syncTypeHasBeenSet = true;
142 m_syncType = value;
143 }
145 SetSyncType(value);
146 return *this;
147 }
149
151
155 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
156 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
158 m_publishDeploymentStatusHasBeenSet = true;
159 m_publishDeploymentStatus = value;
160 }
163 return *this;
164 }
166
168
171 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
172 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
174 m_triggerResourceUpdateOnHasBeenSet = true;
175 m_triggerResourceUpdateOn = value;
176 }
179 return *this;
180 }
182
184
188 inline PullRequestComment GetPullRequestComment() const { return m_pullRequestComment; }
189 inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; }
191 m_pullRequestCommentHasBeenSet = true;
192 m_pullRequestComment = value;
193 }
196 return *this;
197 }
199 private:
200 Aws::String m_branch;
201
202 Aws::String m_configFile;
203
204 Aws::String m_repositoryLinkId;
205
206 Aws::String m_resourceName;
207
208 Aws::String m_roleArn;
209
211
213
215
217 bool m_branchHasBeenSet = false;
218 bool m_configFileHasBeenSet = false;
219 bool m_repositoryLinkIdHasBeenSet = false;
220 bool m_resourceNameHasBeenSet = false;
221 bool m_roleArnHasBeenSet = false;
222 bool m_syncTypeHasBeenSet = false;
223 bool m_publishDeploymentStatusHasBeenSet = false;
224 bool m_triggerResourceUpdateOnHasBeenSet = false;
225 bool m_pullRequestCommentHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace CodeConnections
230} // namespace Aws
CreateSyncConfigurationRequest & WithRoleArn(RoleArnT &&value)
CreateSyncConfigurationRequest & WithPullRequestComment(PullRequestComment value)
CreateSyncConfigurationRequest & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn value)
AWS_CODECONNECTIONS_API CreateSyncConfigurationRequest()=default
CreateSyncConfigurationRequest & WithBranch(BranchT &&value)
AWS_CODECONNECTIONS_API Aws::String SerializePayload() const override
CreateSyncConfigurationRequest & WithSyncType(SyncConfigurationType value)
CreateSyncConfigurationRequest & WithPublishDeploymentStatus(PublishDeploymentStatus value)
AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSyncConfigurationRequest & WithRepositoryLinkId(RepositoryLinkIdT &&value)
CreateSyncConfigurationRequest & WithResourceName(ResourceNameT &&value)
CreateSyncConfigurationRequest & WithConfigFile(ConfigFileT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String