AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSyncConfigurationRequest.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 CreateSyncConfigurationRequest();
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 "CreateSyncConfiguration"; }
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 CreateSyncConfigurationRequest& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
51 inline CreateSyncConfigurationRequest& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
52 inline CreateSyncConfigurationRequest& WithBranch(const char* value) { SetBranch(value); return *this;}
54
56
61 inline const Aws::String& GetConfigFile() const{ return m_configFile; }
62 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
63 inline void SetConfigFile(const Aws::String& value) { m_configFileHasBeenSet = true; m_configFile = value; }
64 inline void SetConfigFile(Aws::String&& value) { m_configFileHasBeenSet = true; m_configFile = std::move(value); }
65 inline void SetConfigFile(const char* value) { m_configFileHasBeenSet = true; m_configFile.assign(value); }
66 inline CreateSyncConfigurationRequest& WithConfigFile(const Aws::String& value) { SetConfigFile(value); return *this;}
67 inline CreateSyncConfigurationRequest& WithConfigFile(Aws::String&& value) { SetConfigFile(std::move(value)); return *this;}
68 inline CreateSyncConfigurationRequest& WithConfigFile(const char* value) { SetConfigFile(value); return *this;}
70
72
77 inline const Aws::String& GetRepositoryLinkId() const{ return m_repositoryLinkId; }
78 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
79 inline void SetRepositoryLinkId(const Aws::String& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = value; }
80 inline void SetRepositoryLinkId(Aws::String&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::move(value); }
81 inline void SetRepositoryLinkId(const char* value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId.assign(value); }
83 inline CreateSyncConfigurationRequest& WithRepositoryLinkId(Aws::String&& value) { SetRepositoryLinkId(std::move(value)); return *this;}
84 inline CreateSyncConfigurationRequest& WithRepositoryLinkId(const char* value) { SetRepositoryLinkId(value); return *this;}
86
88
93 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
94 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
95 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
96 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
97 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
98 inline CreateSyncConfigurationRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
99 inline CreateSyncConfigurationRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
100 inline CreateSyncConfigurationRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
102
104
108 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
109 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
110 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
111 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
112 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
113 inline CreateSyncConfigurationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
114 inline CreateSyncConfigurationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
115 inline CreateSyncConfigurationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
117
119
122 inline const SyncConfigurationType& GetSyncType() const{ return m_syncType; }
123 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
124 inline void SetSyncType(const SyncConfigurationType& value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
125 inline void SetSyncType(SyncConfigurationType&& value) { m_syncTypeHasBeenSet = true; m_syncType = std::move(value); }
127 inline CreateSyncConfigurationRequest& WithSyncType(SyncConfigurationType&& value) { SetSyncType(std::move(value)); return *this;}
129
131
135 inline const PublishDeploymentStatus& GetPublishDeploymentStatus() const{ return m_publishDeploymentStatus; }
136 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
137 inline void SetPublishDeploymentStatus(const PublishDeploymentStatus& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
138 inline void SetPublishDeploymentStatus(PublishDeploymentStatus&& value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = std::move(value); }
142
144
147 inline const TriggerResourceUpdateOn& GetTriggerResourceUpdateOn() const{ return m_triggerResourceUpdateOn; }
148 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
149 inline void SetTriggerResourceUpdateOn(const TriggerResourceUpdateOn& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
150 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn&& value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = std::move(value); }
154
156
160 inline const PullRequestComment& GetPullRequestComment() const{ return m_pullRequestComment; }
161 inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; }
162 inline void SetPullRequestComment(const PullRequestComment& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = value; }
163 inline void SetPullRequestComment(PullRequestComment&& value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = std::move(value); }
167 private:
168
169 Aws::String m_branch;
170 bool m_branchHasBeenSet = false;
171
172 Aws::String m_configFile;
173 bool m_configFileHasBeenSet = false;
174
175 Aws::String m_repositoryLinkId;
176 bool m_repositoryLinkIdHasBeenSet = false;
177
178 Aws::String m_resourceName;
179 bool m_resourceNameHasBeenSet = false;
180
181 Aws::String m_roleArn;
182 bool m_roleArnHasBeenSet = false;
183
184 SyncConfigurationType m_syncType;
185 bool m_syncTypeHasBeenSet = false;
186
187 PublishDeploymentStatus m_publishDeploymentStatus;
188 bool m_publishDeploymentStatusHasBeenSet = false;
189
190 TriggerResourceUpdateOn m_triggerResourceUpdateOn;
191 bool m_triggerResourceUpdateOnHasBeenSet = false;
192
193 PullRequestComment m_pullRequestComment;
194 bool m_pullRequestCommentHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace CodeConnections
199} // namespace Aws
CreateSyncConfigurationRequest & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn &&value)
CreateSyncConfigurationRequest & WithRoleArn(Aws::String &&value)
CreateSyncConfigurationRequest & WithPublishDeploymentStatus(const PublishDeploymentStatus &value)
CreateSyncConfigurationRequest & WithRoleArn(const char *value)
CreateSyncConfigurationRequest & WithRepositoryLinkId(const Aws::String &value)
CreateSyncConfigurationRequest & WithPublishDeploymentStatus(PublishDeploymentStatus &&value)
CreateSyncConfigurationRequest & WithBranch(const char *value)
CreateSyncConfigurationRequest & WithSyncType(SyncConfigurationType &&value)
CreateSyncConfigurationRequest & WithBranch(Aws::String &&value)
CreateSyncConfigurationRequest & WithConfigFile(Aws::String &&value)
CreateSyncConfigurationRequest & WithSyncType(const SyncConfigurationType &value)
CreateSyncConfigurationRequest & WithPullRequestComment(PullRequestComment &&value)
AWS_CODECONNECTIONS_API Aws::String SerializePayload() const override
CreateSyncConfigurationRequest & WithRepositoryLinkId(const char *value)
AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSyncConfigurationRequest & WithResourceName(Aws::String &&value)
CreateSyncConfigurationRequest & WithConfigFile(const char *value)
CreateSyncConfigurationRequest & WithConfigFile(const Aws::String &value)
CreateSyncConfigurationRequest & WithResourceName(const char *value)
CreateSyncConfigurationRequest & WithBranch(const Aws::String &value)
CreateSyncConfigurationRequest & WithTriggerResourceUpdateOn(const TriggerResourceUpdateOn &value)
CreateSyncConfigurationRequest & WithResourceName(const Aws::String &value)
CreateSyncConfigurationRequest & WithRepositoryLinkId(Aws::String &&value)
CreateSyncConfigurationRequest & WithRoleArn(const Aws::String &value)
CreateSyncConfigurationRequest & WithPullRequestComment(const PullRequestComment &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String