AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MergePullRequestBySquashRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/CodeCommitRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codecommit/model/ConflictDetailLevelTypeEnum.h>
11#include <aws/codecommit/model/ConflictResolutionStrategyTypeEnum.h>
12#include <aws/codecommit/model/ConflictResolution.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CodeCommit
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CODECOMMIT_API MergePullRequestBySquashRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "MergePullRequestBySquash"; }
34
35 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetPullRequestId() const { return m_pullRequestId; }
46 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
47 template<typename PullRequestIdT = Aws::String>
48 void SetPullRequestId(PullRequestIdT&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::forward<PullRequestIdT>(value); }
49 template<typename PullRequestIdT = Aws::String>
50 MergePullRequestBySquashRequest& WithPullRequestId(PullRequestIdT&& value) { SetPullRequestId(std::forward<PullRequestIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
58 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
59 template<typename RepositoryNameT = Aws::String>
60 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
61 template<typename RepositoryNameT = Aws::String>
62 MergePullRequestBySquashRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
64
66
71 inline const Aws::String& GetSourceCommitId() const { return m_sourceCommitId; }
72 inline bool SourceCommitIdHasBeenSet() const { return m_sourceCommitIdHasBeenSet; }
73 template<typename SourceCommitIdT = Aws::String>
74 void SetSourceCommitId(SourceCommitIdT&& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = std::forward<SourceCommitIdT>(value); }
75 template<typename SourceCommitIdT = Aws::String>
76 MergePullRequestBySquashRequest& WithSourceCommitId(SourceCommitIdT&& value) { SetSourceCommitId(std::forward<SourceCommitIdT>(value)); return *this;}
78
80
87 inline ConflictDetailLevelTypeEnum GetConflictDetailLevel() const { return m_conflictDetailLevel; }
88 inline bool ConflictDetailLevelHasBeenSet() const { return m_conflictDetailLevelHasBeenSet; }
89 inline void SetConflictDetailLevel(ConflictDetailLevelTypeEnum value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = value; }
92
94
100 inline ConflictResolutionStrategyTypeEnum GetConflictResolutionStrategy() const { return m_conflictResolutionStrategy; }
101 inline bool ConflictResolutionStrategyHasBeenSet() const { return m_conflictResolutionStrategyHasBeenSet; }
102 inline void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = value; }
105
107
110 inline const Aws::String& GetCommitMessage() const { return m_commitMessage; }
111 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
112 template<typename CommitMessageT = Aws::String>
113 void SetCommitMessage(CommitMessageT&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::forward<CommitMessageT>(value); }
114 template<typename CommitMessageT = Aws::String>
115 MergePullRequestBySquashRequest& WithCommitMessage(CommitMessageT&& value) { SetCommitMessage(std::forward<CommitMessageT>(value)); return *this;}
117
119
123 inline const Aws::String& GetAuthorName() const { return m_authorName; }
124 inline bool AuthorNameHasBeenSet() const { return m_authorNameHasBeenSet; }
125 template<typename AuthorNameT = Aws::String>
126 void SetAuthorName(AuthorNameT&& value) { m_authorNameHasBeenSet = true; m_authorName = std::forward<AuthorNameT>(value); }
127 template<typename AuthorNameT = Aws::String>
128 MergePullRequestBySquashRequest& WithAuthorName(AuthorNameT&& value) { SetAuthorName(std::forward<AuthorNameT>(value)); return *this;}
130
132
136 inline const Aws::String& GetEmail() const { return m_email; }
137 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
138 template<typename EmailT = Aws::String>
139 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
140 template<typename EmailT = Aws::String>
141 MergePullRequestBySquashRequest& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
143
145
150 inline bool GetKeepEmptyFolders() const { return m_keepEmptyFolders; }
151 inline bool KeepEmptyFoldersHasBeenSet() const { return m_keepEmptyFoldersHasBeenSet; }
152 inline void SetKeepEmptyFolders(bool value) { m_keepEmptyFoldersHasBeenSet = true; m_keepEmptyFolders = value; }
155
157
161 inline const ConflictResolution& GetConflictResolution() const { return m_conflictResolution; }
162 inline bool ConflictResolutionHasBeenSet() const { return m_conflictResolutionHasBeenSet; }
163 template<typename ConflictResolutionT = ConflictResolution>
164 void SetConflictResolution(ConflictResolutionT&& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = std::forward<ConflictResolutionT>(value); }
165 template<typename ConflictResolutionT = ConflictResolution>
166 MergePullRequestBySquashRequest& WithConflictResolution(ConflictResolutionT&& value) { SetConflictResolution(std::forward<ConflictResolutionT>(value)); return *this;}
168 private:
169
170 Aws::String m_pullRequestId;
171 bool m_pullRequestIdHasBeenSet = false;
172
173 Aws::String m_repositoryName;
174 bool m_repositoryNameHasBeenSet = false;
175
176 Aws::String m_sourceCommitId;
177 bool m_sourceCommitIdHasBeenSet = false;
178
180 bool m_conflictDetailLevelHasBeenSet = false;
181
183 bool m_conflictResolutionStrategyHasBeenSet = false;
184
185 Aws::String m_commitMessage;
186 bool m_commitMessageHasBeenSet = false;
187
188 Aws::String m_authorName;
189 bool m_authorNameHasBeenSet = false;
190
191 Aws::String m_email;
192 bool m_emailHasBeenSet = false;
193
194 bool m_keepEmptyFolders{false};
195 bool m_keepEmptyFoldersHasBeenSet = false;
196
197 ConflictResolution m_conflictResolution;
198 bool m_conflictResolutionHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace CodeCommit
203} // namespace Aws
ConflictResolutionStrategyTypeEnum GetConflictResolutionStrategy() const
MergePullRequestBySquashRequest & WithPullRequestId(PullRequestIdT &&value)
MergePullRequestBySquashRequest & WithRepositoryName(RepositoryNameT &&value)
MergePullRequestBySquashRequest & WithSourceCommitId(SourceCommitIdT &&value)
AWS_CODECOMMIT_API MergePullRequestBySquashRequest()=default
MergePullRequestBySquashRequest & WithEmail(EmailT &&value)
MergePullRequestBySquashRequest & WithCommitMessage(CommitMessageT &&value)
MergePullRequestBySquashRequest & WithAuthorName(AuthorNameT &&value)
MergePullRequestBySquashRequest & WithConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum value)
void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
MergePullRequestBySquashRequest & WithKeepEmptyFolders(bool value)
MergePullRequestBySquashRequest & WithConflictResolution(ConflictResolutionT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
MergePullRequestBySquashRequest & WithConflictDetailLevel(ConflictDetailLevelTypeEnum value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String