AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateSyncConfigurationRequest.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnectionsRequest.h>
8#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
9#include <aws/codestar-connections/model/PublishDeploymentStatus.h>
10#include <aws/codestar-connections/model/SyncConfigurationType.h>
11#include <aws/codestar-connections/model/TriggerResourceUpdateOn.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CodeStarconnections {
18namespace Model {
19
23 public:
24 AWS_CODESTARCONNECTIONS_API CreateSyncConfigurationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSyncConfiguration"; }
31
32 AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override;
33
34 AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetBranch() const { return m_branch; }
41 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
42 template <typename BranchT = Aws::String>
43 void SetBranch(BranchT&& value) {
44 m_branchHasBeenSet = true;
45 m_branch = std::forward<BranchT>(value);
46 }
47 template <typename BranchT = Aws::String>
49 SetBranch(std::forward<BranchT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetConfigFile() const { return m_configFile; }
61 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
62 template <typename ConfigFileT = Aws::String>
63 void SetConfigFile(ConfigFileT&& value) {
64 m_configFileHasBeenSet = true;
65 m_configFile = std::forward<ConfigFileT>(value);
66 }
67 template <typename ConfigFileT = Aws::String>
69 SetConfigFile(std::forward<ConfigFileT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
81 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
82 template <typename RepositoryLinkIdT = Aws::String>
83 void SetRepositoryLinkId(RepositoryLinkIdT&& value) {
84 m_repositoryLinkIdHasBeenSet = true;
85 m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value);
86 }
87 template <typename RepositoryLinkIdT = Aws::String>
89 SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetResourceName() const { return m_resourceName; }
101 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
102 template <typename ResourceNameT = Aws::String>
103 void SetResourceName(ResourceNameT&& value) {
104 m_resourceNameHasBeenSet = true;
105 m_resourceName = std::forward<ResourceNameT>(value);
106 }
107 template <typename ResourceNameT = Aws::String>
109 SetResourceName(std::forward<ResourceNameT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
120 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
121 template <typename RoleArnT = Aws::String>
122 void SetRoleArn(RoleArnT&& value) {
123 m_roleArnHasBeenSet = true;
124 m_roleArn = std::forward<RoleArnT>(value);
125 }
126 template <typename RoleArnT = Aws::String>
128 SetRoleArn(std::forward<RoleArnT>(value));
129 return *this;
130 }
132
134
137 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
138 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
140 m_syncTypeHasBeenSet = true;
141 m_syncType = value;
142 }
144 SetSyncType(value);
145 return *this;
146 }
148
150
154 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
155 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
157 m_publishDeploymentStatusHasBeenSet = true;
158 m_publishDeploymentStatus = value;
159 }
162 return *this;
163 }
165
167
170 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
171 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
173 m_triggerResourceUpdateOnHasBeenSet = true;
174 m_triggerResourceUpdateOn = value;
175 }
178 return *this;
179 }
181 private:
182 Aws::String m_branch;
183
184 Aws::String m_configFile;
185
186 Aws::String m_repositoryLinkId;
187
188 Aws::String m_resourceName;
189
190 Aws::String m_roleArn;
191
193
195
197 bool m_branchHasBeenSet = false;
198 bool m_configFileHasBeenSet = false;
199 bool m_repositoryLinkIdHasBeenSet = false;
200 bool m_resourceNameHasBeenSet = false;
201 bool m_roleArnHasBeenSet = false;
202 bool m_syncTypeHasBeenSet = false;
203 bool m_publishDeploymentStatusHasBeenSet = false;
204 bool m_triggerResourceUpdateOnHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace CodeStarconnections
209} // namespace Aws
CreateSyncConfigurationRequest & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn value)
CreateSyncConfigurationRequest & WithSyncType(SyncConfigurationType value)
CreateSyncConfigurationRequest & WithRepositoryLinkId(RepositoryLinkIdT &&value)
CreateSyncConfigurationRequest & WithPublishDeploymentStatus(PublishDeploymentStatus value)
AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSyncConfigurationRequest & WithResourceName(ResourceNameT &&value)
AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override
CreateSyncConfigurationRequest & WithConfigFile(ConfigFileT &&value)
AWS_CODESTARCONNECTIONS_API CreateSyncConfigurationRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String