AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
48 inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
49 inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
51 inline MergePullRequestBySquashRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
52 inline MergePullRequestBySquashRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
54
56
59 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
60 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
61 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
62 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
63 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
65 inline MergePullRequestBySquashRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
66 inline MergePullRequestBySquashRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
68
70
75 inline const Aws::String& GetSourceCommitId() const{ return m_sourceCommitId; }
76 inline bool SourceCommitIdHasBeenSet() const { return m_sourceCommitIdHasBeenSet; }
77 inline void SetSourceCommitId(const Aws::String& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = value; }
78 inline void SetSourceCommitId(Aws::String&& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = std::move(value); }
79 inline void SetSourceCommitId(const char* value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId.assign(value); }
81 inline MergePullRequestBySquashRequest& WithSourceCommitId(Aws::String&& value) { SetSourceCommitId(std::move(value)); return *this;}
82 inline MergePullRequestBySquashRequest& WithSourceCommitId(const char* value) { SetSourceCommitId(value); return *this;}
84
86
93 inline const ConflictDetailLevelTypeEnum& GetConflictDetailLevel() const{ return m_conflictDetailLevel; }
94 inline bool ConflictDetailLevelHasBeenSet() const { return m_conflictDetailLevelHasBeenSet; }
95 inline void SetConflictDetailLevel(const ConflictDetailLevelTypeEnum& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = value; }
96 inline void SetConflictDetailLevel(ConflictDetailLevelTypeEnum&& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = std::move(value); }
100
102
108 inline const ConflictResolutionStrategyTypeEnum& GetConflictResolutionStrategy() const{ return m_conflictResolutionStrategy; }
109 inline bool ConflictResolutionStrategyHasBeenSet() const { return m_conflictResolutionStrategyHasBeenSet; }
110 inline void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = value; }
111 inline void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum&& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = std::move(value); }
115
117
120 inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
121 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
122 inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
123 inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
124 inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
126 inline MergePullRequestBySquashRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
127 inline MergePullRequestBySquashRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
129
131
135 inline const Aws::String& GetAuthorName() const{ return m_authorName; }
136 inline bool AuthorNameHasBeenSet() const { return m_authorNameHasBeenSet; }
137 inline void SetAuthorName(const Aws::String& value) { m_authorNameHasBeenSet = true; m_authorName = value; }
138 inline void SetAuthorName(Aws::String&& value) { m_authorNameHasBeenSet = true; m_authorName = std::move(value); }
139 inline void SetAuthorName(const char* value) { m_authorNameHasBeenSet = true; m_authorName.assign(value); }
140 inline MergePullRequestBySquashRequest& WithAuthorName(const Aws::String& value) { SetAuthorName(value); return *this;}
141 inline MergePullRequestBySquashRequest& WithAuthorName(Aws::String&& value) { SetAuthorName(std::move(value)); return *this;}
142 inline MergePullRequestBySquashRequest& WithAuthorName(const char* value) { SetAuthorName(value); return *this;}
144
146
150 inline const Aws::String& GetEmail() const{ return m_email; }
151 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
152 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
153 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
154 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
155 inline MergePullRequestBySquashRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
156 inline MergePullRequestBySquashRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
157 inline MergePullRequestBySquashRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
159
161
166 inline bool GetKeepEmptyFolders() const{ return m_keepEmptyFolders; }
167 inline bool KeepEmptyFoldersHasBeenSet() const { return m_keepEmptyFoldersHasBeenSet; }
168 inline void SetKeepEmptyFolders(bool value) { m_keepEmptyFoldersHasBeenSet = true; m_keepEmptyFolders = value; }
171
173
177 inline const ConflictResolution& GetConflictResolution() const{ return m_conflictResolution; }
178 inline bool ConflictResolutionHasBeenSet() const { return m_conflictResolutionHasBeenSet; }
179 inline void SetConflictResolution(const ConflictResolution& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = value; }
180 inline void SetConflictResolution(ConflictResolution&& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = std::move(value); }
184 private:
185
186 Aws::String m_pullRequestId;
187 bool m_pullRequestIdHasBeenSet = false;
188
189 Aws::String m_repositoryName;
190 bool m_repositoryNameHasBeenSet = false;
191
192 Aws::String m_sourceCommitId;
193 bool m_sourceCommitIdHasBeenSet = false;
194
195 ConflictDetailLevelTypeEnum m_conflictDetailLevel;
196 bool m_conflictDetailLevelHasBeenSet = false;
197
198 ConflictResolutionStrategyTypeEnum m_conflictResolutionStrategy;
199 bool m_conflictResolutionStrategyHasBeenSet = false;
200
201 Aws::String m_commitMessage;
202 bool m_commitMessageHasBeenSet = false;
203
204 Aws::String m_authorName;
205 bool m_authorNameHasBeenSet = false;
206
207 Aws::String m_email;
208 bool m_emailHasBeenSet = false;
209
210 bool m_keepEmptyFolders;
211 bool m_keepEmptyFoldersHasBeenSet = false;
212
213 ConflictResolution m_conflictResolution;
214 bool m_conflictResolutionHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace CodeCommit
219} // namespace Aws
MergePullRequestBySquashRequest & WithConflictDetailLevel(ConflictDetailLevelTypeEnum &&value)
MergePullRequestBySquashRequest & WithCommitMessage(Aws::String &&value)
MergePullRequestBySquashRequest & WithRepositoryName(const Aws::String &value)
MergePullRequestBySquashRequest & WithAuthorName(Aws::String &&value)
void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
MergePullRequestBySquashRequest & WithCommitMessage(const char *value)
MergePullRequestBySquashRequest & WithConflictResolution(const ConflictResolution &value)
MergePullRequestBySquashRequest & WithPullRequestId(Aws::String &&value)
MergePullRequestBySquashRequest & WithCommitMessage(const Aws::String &value)
MergePullRequestBySquashRequest & WithSourceCommitId(const Aws::String &value)
MergePullRequestBySquashRequest & WithConflictResolution(ConflictResolution &&value)
MergePullRequestBySquashRequest & WithAuthorName(const char *value)
MergePullRequestBySquashRequest & WithRepositoryName(Aws::String &&value)
const ConflictDetailLevelTypeEnum & GetConflictDetailLevel() const
MergePullRequestBySquashRequest & WithConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
MergePullRequestBySquashRequest & WithConflictDetailLevel(const ConflictDetailLevelTypeEnum &value)
MergePullRequestBySquashRequest & WithPullRequestId(const char *value)
MergePullRequestBySquashRequest & WithConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
MergePullRequestBySquashRequest & WithEmail(const char *value)
void SetConflictDetailLevel(const ConflictDetailLevelTypeEnum &value)
MergePullRequestBySquashRequest & WithKeepEmptyFolders(bool value)
MergePullRequestBySquashRequest & WithRepositoryName(const char *value)
MergePullRequestBySquashRequest & WithAuthorName(const Aws::String &value)
MergePullRequestBySquashRequest & WithSourceCommitId(const char *value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
MergePullRequestBySquashRequest & WithEmail(Aws::String &&value)
MergePullRequestBySquashRequest & WithEmail(const Aws::String &value)
MergePullRequestBySquashRequest & WithPullRequestId(const Aws::String &value)
MergePullRequestBySquashRequest & WithSourceCommitId(Aws::String &&value)
void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
const ConflictResolutionStrategyTypeEnum & GetConflictResolutionStrategy() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String