AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = 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 "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 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 CreateSyncConfigurationRequest& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
52
54
59 inline const Aws::String& GetConfigFile() const { return m_configFile; }
60 inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; }
61 template<typename ConfigFileT = Aws::String>
62 void SetConfigFile(ConfigFileT&& value) { m_configFileHasBeenSet = true; m_configFile = std::forward<ConfigFileT>(value); }
63 template<typename ConfigFileT = Aws::String>
64 CreateSyncConfigurationRequest& WithConfigFile(ConfigFileT&& value) { SetConfigFile(std::forward<ConfigFileT>(value)); return *this;}
66
68
73 inline const Aws::String& GetRepositoryLinkId() const { return m_repositoryLinkId; }
74 inline bool RepositoryLinkIdHasBeenSet() const { return m_repositoryLinkIdHasBeenSet; }
75 template<typename RepositoryLinkIdT = Aws::String>
76 void SetRepositoryLinkId(RepositoryLinkIdT&& value) { m_repositoryLinkIdHasBeenSet = true; m_repositoryLinkId = std::forward<RepositoryLinkIdT>(value); }
77 template<typename RepositoryLinkIdT = Aws::String>
78 CreateSyncConfigurationRequest& WithRepositoryLinkId(RepositoryLinkIdT&& value) { SetRepositoryLinkId(std::forward<RepositoryLinkIdT>(value)); return *this;}
80
82
87 inline const Aws::String& GetResourceName() const { return m_resourceName; }
88 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
89 template<typename ResourceNameT = Aws::String>
90 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
91 template<typename ResourceNameT = Aws::String>
92 CreateSyncConfigurationRequest& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
94
96
100 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
101 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
102 template<typename RoleArnT = Aws::String>
103 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
104 template<typename RoleArnT = Aws::String>
105 CreateSyncConfigurationRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
107
109
112 inline SyncConfigurationType GetSyncType() const { return m_syncType; }
113 inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
114 inline void SetSyncType(SyncConfigurationType value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
117
119
123 inline PublishDeploymentStatus GetPublishDeploymentStatus() const { return m_publishDeploymentStatus; }
124 inline bool PublishDeploymentStatusHasBeenSet() const { return m_publishDeploymentStatusHasBeenSet; }
125 inline void SetPublishDeploymentStatus(PublishDeploymentStatus value) { m_publishDeploymentStatusHasBeenSet = true; m_publishDeploymentStatus = value; }
128
130
133 inline TriggerResourceUpdateOn GetTriggerResourceUpdateOn() const { return m_triggerResourceUpdateOn; }
134 inline bool TriggerResourceUpdateOnHasBeenSet() const { return m_triggerResourceUpdateOnHasBeenSet; }
135 inline void SetTriggerResourceUpdateOn(TriggerResourceUpdateOn value) { m_triggerResourceUpdateOnHasBeenSet = true; m_triggerResourceUpdateOn = value; }
138
140
144 inline PullRequestComment GetPullRequestComment() const { return m_pullRequestComment; }
145 inline bool PullRequestCommentHasBeenSet() const { return m_pullRequestCommentHasBeenSet; }
146 inline void SetPullRequestComment(PullRequestComment value) { m_pullRequestCommentHasBeenSet = true; m_pullRequestComment = value; }
149 private:
150
151 Aws::String m_branch;
152 bool m_branchHasBeenSet = false;
153
154 Aws::String m_configFile;
155 bool m_configFileHasBeenSet = false;
156
157 Aws::String m_repositoryLinkId;
158 bool m_repositoryLinkIdHasBeenSet = false;
159
160 Aws::String m_resourceName;
161 bool m_resourceNameHasBeenSet = false;
162
163 Aws::String m_roleArn;
164 bool m_roleArnHasBeenSet = false;
165
167 bool m_syncTypeHasBeenSet = false;
168
170 bool m_publishDeploymentStatusHasBeenSet = false;
171
173 bool m_triggerResourceUpdateOnHasBeenSet = false;
174
176 bool m_pullRequestCommentHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace CodeConnections
181} // namespace Aws
CreateSyncConfigurationRequest & WithRoleArn(RoleArnT &&value)
CreateSyncConfigurationRequest & WithPullRequestComment(PullRequestComment value)
CreateSyncConfigurationRequest & WithTriggerResourceUpdateOn(TriggerResourceUpdateOn value)
AWS_CODECONNECTIONS_API CreateSyncConfigurationRequest()=default
CreateSyncConfigurationRequest & WithBranch(BranchT &&value)
AWS_CODECONNECTIONS_API Aws::String SerializePayload() const override
CreateSyncConfigurationRequest & WithSyncType(SyncConfigurationType value)
CreateSyncConfigurationRequest & WithPublishDeploymentStatus(PublishDeploymentStatus value)
AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSyncConfigurationRequest & WithRepositoryLinkId(RepositoryLinkIdT &&value)
CreateSyncConfigurationRequest & WithResourceName(ResourceNameT &&value)
CreateSyncConfigurationRequest & WithConfigFile(ConfigFileT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String