AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateSyncConfigurationRequest.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 UpdateSyncConfigurationRequest() = 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 "UpdateSyncConfiguration"; }
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
58 inline const Aws::String& GetConfigFile() const { return m_configFile; }
59 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
60 template <typename ConfigFileT = Aws::String>
61 void SetConfigFile(ConfigFileT&& value) {
62 m_configFileHasBeenSet = true;
63 m_configFile = std::forward<ConfigFileT>(value);
64 }
65 template <typename ConfigFileT = Aws::String>
67 SetConfigFile(std::forward<ConfigFileT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
77 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
78 template <typename RepositoryLinkIdT = Aws::String>
79 void SetRepositoryLinkId(RepositoryLinkIdT&& value) {
80 m_repositoryLinkIdHasBeenSet = true;
81 m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value);
82 }
83 template <typename RepositoryLinkIdT = Aws::String>
85 SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetResourceName() const { return m_resourceName; }
96 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
97 template <typename ResourceNameT = Aws::String>
98 void SetResourceName(ResourceNameT&& value) {
99 m_resourceNameHasBeenSet = true;
100 m_resourceName = std::forward<ResourceNameT>(value);
101 }
102 template <typename ResourceNameT = Aws::String>
104 SetResourceName(std::forward<ResourceNameT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
114 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
115 template <typename RoleArnT = Aws::String>
116 void SetRoleArn(RoleArnT&& value) {
117 m_roleArnHasBeenSet = true;
118 m_roleArn = std::forward<RoleArnT>(value);
119 }
120 template <typename RoleArnT = Aws::String>
122 SetRoleArn(std::forward<RoleArnT>(value));
123 return *this;
124 }
126
128
131 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
132 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
134 m_syncTypeHasBeenSet = true;
135 m_syncType = value;
136 }
138 SetSyncType(value);
139 return *this;
140 }
142
144
148 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
149 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
151 m_publishDeploymentStatusHasBeenSet = true;
152 m_publishDeploymentStatus = value;
153 }
156 return *this;
157 }
159
161
164 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
165 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
167 m_triggerResourceUpdateOnHasBeenSet = true;
168 m_triggerResourceUpdateOn = value;
169 }
172 return *this;
173 }
175 private:
176 Aws::String m_branch;
177
178 Aws::String m_configFile;
179
180 Aws::String m_repositoryLinkId;
181
182 Aws::String m_resourceName;
183
184 Aws::String m_roleArn;
185
187
189
191 bool m_branchHasBeenSet = false;
192 bool m_configFileHasBeenSet = false;
193 bool m_repositoryLinkIdHasBeenSet = false;
194 bool m_resourceNameHasBeenSet = false;
195 bool m_roleArnHasBeenSet = false;
196 bool m_syncTypeHasBeenSet = false;
197 bool m_publishDeploymentStatusHasBeenSet = false;
198 bool m_triggerResourceUpdateOnHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace CodeStarconnections
203} // namespace Aws
UpdateSyncConfigurationRequest & WithPublishDeploymentStatus(PublishDeploymentStatus value)
UpdateSyncConfigurationRequest & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn value)
UpdateSyncConfigurationRequest & WithResourceName(ResourceNameT &&value)
AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override
AWS_CODESTARCONNECTIONS_API UpdateSyncConfigurationRequest()=default
UpdateSyncConfigurationRequest & WithSyncType(SyncConfigurationType value)
UpdateSyncConfigurationRequest & WithConfigFile(ConfigFileT &&value)
UpdateSyncConfigurationRequest & WithRepositoryLinkId(RepositoryLinkIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String