AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateSyncConfigurationRequest.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/codeconnections/CodeConnectionsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codeconnections/model/SyncConfigurationType.h>
11#include <aws/codeconnections/model/PublishDeploymentStatus.h>
12#include <aws/codeconnections/model/TriggerResourceUpdateOn.h>
13#include <aws/codeconnections/model/PullRequestComment.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CodeConnections
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CODECONNECTIONS_API UpdateSyncConfigurationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateSyncConfiguration"; }
35
36 AWS_CODECONNECTIONS_API Aws::String SerializePayload() const override;
37
38 AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetBranch() const { return m_branch; }
46 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
47 template<typename BranchT = Aws::String>
48 void SetBranch(BranchT&& value) { m_branchHasBeenSet = true; m_branch = std::forward<BranchT>(value); }
49 template<typename BranchT = Aws::String>
50 UpdateSyncConfigurationRequest& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
52
54
57 inline const Aws::String& GetConfigFile() const { return m_configFile; }
58 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
59 template<typename ConfigFileT = Aws::String>
60 void SetConfigFile(ConfigFileT&& value) { m_configFileHasBeenSet = true; m_configFile = std::forward<ConfigFileT>(value); }
61 template<typename ConfigFileT = Aws::String>
62 UpdateSyncConfigurationRequest& WithConfigFile(ConfigFileT&& value) { SetConfigFile(std::forward<ConfigFileT>(value)); return *this;}
64
66
69 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
70 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
71 template<typename RepositoryLinkIdT = Aws::String>
72 void SetRepositoryLinkId(RepositoryLinkIdT&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value); }
73 template<typename RepositoryLinkIdT = Aws::String>
74 UpdateSyncConfigurationRequest& WithRepositoryLinkId(RepositoryLinkIdT&& value) { SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value)); return *this;}
76
78
82 inline const Aws::String& GetResourceName() const { return m_resourceName; }
83 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
84 template<typename ResourceNameT = Aws::String>
85 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
86 template<typename ResourceNameT = Aws::String>
87 UpdateSyncConfigurationRequest& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
89
91
94 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
95 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
96 template<typename RoleArnT = Aws::String>
97 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
98 template<typename RoleArnT = Aws::String>
99 UpdateSyncConfigurationRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
101
103
106 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
107 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
108 inline void SetSyncType(SyncConfigurationType value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
111
113
117 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
118 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
119 inline void SetPublishDeploymentStatus(PublishDeploymentStatus value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
122
124
127 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
128 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
129 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
132
134
138 inline PullRequestComment GetPullRequestComment() const { return m_pullRequestComment; }
139 inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; }
140 inline void SetPullRequestComment(PullRequestComment value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = value; }
143 private:
144
145 Aws::String m_branch;
146 bool m_branchHasBeenSet = false;
147
148 Aws::String m_configFile;
149 bool m_configFileHasBeenSet = false;
150
151 Aws::String m_repositoryLinkId;
152 bool m_repositoryLinkIdHasBeenSet = false;
153
154 Aws::String m_resourceName;
155 bool m_resourceNameHasBeenSet = false;
156
157 Aws::String m_roleArn;
158 bool m_roleArnHasBeenSet = false;
159
161 bool m_syncTypeHasBeenSet = false;
162
164 bool m_publishDeploymentStatusHasBeenSet = false;
165
167 bool m_triggerResourceUpdateOnHasBeenSet = false;
168
170 bool m_pullRequestCommentHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace CodeConnections
175} // 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