AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; }
48 inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); }
49 inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); }
50 inline UpdateSyncConfigurationRequest& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
51 inline UpdateSyncConfigurationRequest& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
52 inline UpdateSyncConfigurationRequest& WithBranch(const char* value) { SetBranch(value); return *this;}
54
56
59 inline const Aws::String& GetConfigFile() const{ return m_configFile; }
60 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
61 inline void SetConfigFile(const Aws::String& value) { m_configFileHasBeenSet = true; m_configFile = value; }
62 inline void SetConfigFile(Aws::String&& value) { m_configFileHasBeenSet = true; m_configFile = std::move(value); }
63 inline void SetConfigFile(const char* value) { m_configFileHasBeenSet = true; m_configFile.assign(value); }
64 inline UpdateSyncConfigurationRequest& WithConfigFile(const Aws::String& value) { SetConfigFile(value); return *this;}
65 inline UpdateSyncConfigurationRequest& WithConfigFile(Aws::String&& value) { SetConfigFile(std::move(value)); return *this;}
66 inline UpdateSyncConfigurationRequest& WithConfigFile(const char* value) { SetConfigFile(value); return *this;}
68
70
73 inline const Aws::String& GetRepositoryLinkId() const{ return m_repositoryLinkId; }
74 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
75 inline void SetRepositoryLinkId(const Aws::String& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = value; }
76 inline void SetRepositoryLinkId(Aws::String&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::move(value); }
77 inline void SetRepositoryLinkId(const char* value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId.assign(value); }
79 inline UpdateSyncConfigurationRequest& WithRepositoryLinkId(Aws::String&& value) { SetRepositoryLinkId(std::move(value)); return *this;}
80 inline UpdateSyncConfigurationRequest& WithRepositoryLinkId(const char* value) { SetRepositoryLinkId(value); return *this;}
82
84
88 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
89 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
90 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
91 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
92 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
93 inline UpdateSyncConfigurationRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
94 inline UpdateSyncConfigurationRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
95 inline UpdateSyncConfigurationRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
97
99
102 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
103 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
104 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
105 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
106 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
107 inline UpdateSyncConfigurationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
108 inline UpdateSyncConfigurationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
109 inline UpdateSyncConfigurationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
111
113
116 inline const SyncConfigurationType& GetSyncType() const{ return m_syncType; }
117 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
118 inline void SetSyncType(const SyncConfigurationType& value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
119 inline void SetSyncType(SyncConfigurationType&& value) { m_syncTypeHasBeenSet = true; m_syncType = std::move(value); }
121 inline UpdateSyncConfigurationRequest& WithSyncType(SyncConfigurationType&& value) { SetSyncType(std::move(value)); return *this;}
123
125
129 inline const PublishDeploymentStatus& GetPublishDeploymentStatus() const{ return m_publishDeploymentStatus; }
130 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
131 inline void SetPublishDeploymentStatus(const PublishDeploymentStatus& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
132 inline void SetPublishDeploymentStatus(PublishDeploymentStatus&& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = std::move(value); }
136
138
141 inline const TriggerResourceUpdateOn& GetTriggerResourceUpdateOn() const{ return m_triggerResourceUpdateOn; }
142 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
143 inline void SetTriggerResourceUpdateOn(const TriggerResourceUpdateOn& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
144 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn&& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = std::move(value); }
148
150
154 inline const PullRequestComment& GetPullRequestComment() const{ return m_pullRequestComment; }
155 inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; }
156 inline void SetPullRequestComment(const PullRequestComment& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = value; }
157 inline void SetPullRequestComment(PullRequestComment&& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = std::move(value); }
161 private:
162
163 Aws::String m_branch;
164 bool m_branchHasBeenSet = false;
165
166 Aws::String m_configFile;
167 bool m_configFileHasBeenSet = false;
168
169 Aws::String m_repositoryLinkId;
170 bool m_repositoryLinkIdHasBeenSet = false;
171
172 Aws::String m_resourceName;
173 bool m_resourceNameHasBeenSet = false;
174
175 Aws::String m_roleArn;
176 bool m_roleArnHasBeenSet = false;
177
178 SyncConfigurationType m_syncType;
179 bool m_syncTypeHasBeenSet = false;
180
181 PublishDeploymentStatus m_publishDeploymentStatus;
182 bool m_publishDeploymentStatusHasBeenSet = false;
183
184 TriggerResourceUpdateOn m_triggerResourceUpdateOn;
185 bool m_triggerResourceUpdateOnHasBeenSet = false;
186
187 PullRequestComment m_pullRequestComment;
188 bool m_pullRequestCommentHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace CodeConnections
193} // namespace Aws
UpdateSyncConfigurationRequest & WithRoleArn(const char *value)
UpdateSyncConfigurationRequest & WithBranch(Aws::String &&value)
AWS_CODECONNECTIONS_API Aws::String SerializePayload() const override
UpdateSyncConfigurationRequest & WithRepositoryLinkId(const Aws::String &value)
UpdateSyncConfigurationRequest & WithSyncType(const SyncConfigurationType &value)
UpdateSyncConfigurationRequest & WithBranch(const char *value)
UpdateSyncConfigurationRequest & WithPullRequestComment(const PullRequestComment &value)
UpdateSyncConfigurationRequest & WithPublishDeploymentStatus(const PublishDeploymentStatus &value)
UpdateSyncConfigurationRequest & WithRepositoryLinkId(Aws::String &&value)
UpdateSyncConfigurationRequest & WithConfigFile(const Aws::String &value)
UpdateSyncConfigurationRequest & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn &&value)
UpdateSyncConfigurationRequest & WithRepositoryLinkId(const char *value)
UpdateSyncConfigurationRequest & WithPublishDeploymentStatus(PublishDeploymentStatus &&value)
UpdateSyncConfigurationRequest & WithConfigFile(Aws::String &&value)
AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateSyncConfigurationRequest & WithRoleArn(Aws::String &&value)
UpdateSyncConfigurationRequest & WithSyncType(SyncConfigurationType &&value)
UpdateSyncConfigurationRequest & WithBranch(const Aws::String &value)
UpdateSyncConfigurationRequest & WithTriggerResourceUpdateOn(const TriggerResourceUpdateOn &value)
UpdateSyncConfigurationRequest & WithRoleArn(const Aws::String &value)
UpdateSyncConfigurationRequest & WithConfigFile(const char *value)
UpdateSyncConfigurationRequest & WithResourceName(Aws::String &&value)
UpdateSyncConfigurationRequest & WithResourceName(const Aws::String &value)
UpdateSyncConfigurationRequest & WithPullRequestComment(PullRequestComment &&value)
UpdateSyncConfigurationRequest & WithResourceName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String