AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MergeBranchesByThreeWayRequest.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 MergeBranchesByThreeWayRequest();
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 "MergeBranchesByThreeWay"; }
34
35 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
45 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
46 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
47 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
48 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
50 inline MergeBranchesByThreeWayRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
51 inline MergeBranchesByThreeWayRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
53
55
59 inline const Aws::String& GetSourceCommitSpecifier() const{ return m_sourceCommitSpecifier; }
60 inline bool SourceCommitSpecifierHasBeenSet() const { return m_sourceCommitSpecifierHasBeenSet; }
61 inline void SetSourceCommitSpecifier(const Aws::String& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = value; }
62 inline void SetSourceCommitSpecifier(Aws::String&& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = std::move(value); }
63 inline void SetSourceCommitSpecifier(const char* value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier.assign(value); }
66 inline MergeBranchesByThreeWayRequest& WithSourceCommitSpecifier(const char* value) { SetSourceCommitSpecifier(value); return *this;}
68
70
74 inline const Aws::String& GetDestinationCommitSpecifier() const{ return m_destinationCommitSpecifier; }
75 inline bool DestinationCommitSpecifierHasBeenSet() const { return m_destinationCommitSpecifierHasBeenSet; }
76 inline void SetDestinationCommitSpecifier(const Aws::String& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = value; }
77 inline void SetDestinationCommitSpecifier(Aws::String&& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = std::move(value); }
78 inline void SetDestinationCommitSpecifier(const char* value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier.assign(value); }
83
85
88 inline const Aws::String& GetTargetBranch() const{ return m_targetBranch; }
89 inline bool TargetBranchHasBeenSet() const { return m_targetBranchHasBeenSet; }
90 inline void SetTargetBranch(const Aws::String& value) { m_targetBranchHasBeenSet = true; m_targetBranch = value; }
91 inline void SetTargetBranch(Aws::String&& value) { m_targetBranchHasBeenSet = true; m_targetBranch = std::move(value); }
92 inline void SetTargetBranch(const char* value) { m_targetBranchHasBeenSet = true; m_targetBranch.assign(value); }
93 inline MergeBranchesByThreeWayRequest& WithTargetBranch(const Aws::String& value) { SetTargetBranch(value); return *this;}
94 inline MergeBranchesByThreeWayRequest& WithTargetBranch(Aws::String&& value) { SetTargetBranch(std::move(value)); return *this;}
95 inline MergeBranchesByThreeWayRequest& WithTargetBranch(const char* value) { SetTargetBranch(value); return *this;}
97
99
106 inline const ConflictDetailLevelTypeEnum& GetConflictDetailLevel() const{ return m_conflictDetailLevel; }
107 inline bool ConflictDetailLevelHasBeenSet() const { return m_conflictDetailLevelHasBeenSet; }
108 inline void SetConflictDetailLevel(const ConflictDetailLevelTypeEnum& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = value; }
109 inline void SetConflictDetailLevel(ConflictDetailLevelTypeEnum&& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = std::move(value); }
113
115
121 inline const ConflictResolutionStrategyTypeEnum& GetConflictResolutionStrategy() const{ return m_conflictResolutionStrategy; }
122 inline bool ConflictResolutionStrategyHasBeenSet() const { return m_conflictResolutionStrategyHasBeenSet; }
123 inline void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = value; }
124 inline void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum&& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = std::move(value); }
128
130
134 inline const Aws::String& GetAuthorName() const{ return m_authorName; }
135 inline bool AuthorNameHasBeenSet() const { return m_authorNameHasBeenSet; }
136 inline void SetAuthorName(const Aws::String& value) { m_authorNameHasBeenSet = true; m_authorName = value; }
137 inline void SetAuthorName(Aws::String&& value) { m_authorNameHasBeenSet = true; m_authorName = std::move(value); }
138 inline void SetAuthorName(const char* value) { m_authorNameHasBeenSet = true; m_authorName.assign(value); }
139 inline MergeBranchesByThreeWayRequest& WithAuthorName(const Aws::String& value) { SetAuthorName(value); return *this;}
140 inline MergeBranchesByThreeWayRequest& WithAuthorName(Aws::String&& value) { SetAuthorName(std::move(value)); return *this;}
141 inline MergeBranchesByThreeWayRequest& WithAuthorName(const char* value) { SetAuthorName(value); return *this;}
143
145
149 inline const Aws::String& GetEmail() const{ return m_email; }
150 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
151 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
152 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
153 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
154 inline MergeBranchesByThreeWayRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
155 inline MergeBranchesByThreeWayRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
156 inline MergeBranchesByThreeWayRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
158
160
163 inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
164 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
165 inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
166 inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
167 inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
169 inline MergeBranchesByThreeWayRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
170 inline MergeBranchesByThreeWayRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
172
174
179 inline bool GetKeepEmptyFolders() const{ return m_keepEmptyFolders; }
180 inline bool KeepEmptyFoldersHasBeenSet() const { return m_keepEmptyFoldersHasBeenSet; }
181 inline void SetKeepEmptyFolders(bool value) { m_keepEmptyFoldersHasBeenSet = true; m_keepEmptyFolders = value; }
184
186
190 inline const ConflictResolution& GetConflictResolution() const{ return m_conflictResolution; }
191 inline bool ConflictResolutionHasBeenSet() const { return m_conflictResolutionHasBeenSet; }
192 inline void SetConflictResolution(const ConflictResolution& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = value; }
193 inline void SetConflictResolution(ConflictResolution&& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = std::move(value); }
197 private:
198
199 Aws::String m_repositoryName;
200 bool m_repositoryNameHasBeenSet = false;
201
202 Aws::String m_sourceCommitSpecifier;
203 bool m_sourceCommitSpecifierHasBeenSet = false;
204
205 Aws::String m_destinationCommitSpecifier;
206 bool m_destinationCommitSpecifierHasBeenSet = false;
207
208 Aws::String m_targetBranch;
209 bool m_targetBranchHasBeenSet = false;
210
211 ConflictDetailLevelTypeEnum m_conflictDetailLevel;
212 bool m_conflictDetailLevelHasBeenSet = false;
213
214 ConflictResolutionStrategyTypeEnum m_conflictResolutionStrategy;
215 bool m_conflictResolutionStrategyHasBeenSet = false;
216
217 Aws::String m_authorName;
218 bool m_authorNameHasBeenSet = false;
219
220 Aws::String m_email;
221 bool m_emailHasBeenSet = false;
222
223 Aws::String m_commitMessage;
224 bool m_commitMessageHasBeenSet = false;
225
226 bool m_keepEmptyFolders;
227 bool m_keepEmptyFoldersHasBeenSet = false;
228
229 ConflictResolution m_conflictResolution;
230 bool m_conflictResolutionHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace CodeCommit
235} // namespace Aws
MergeBranchesByThreeWayRequest & WithCommitMessage(const Aws::String &value)
MergeBranchesByThreeWayRequest & WithRepositoryName(Aws::String &&value)
MergeBranchesByThreeWayRequest & WithConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
MergeBranchesByThreeWayRequest & WithDestinationCommitSpecifier(const char *value)
const ConflictResolutionStrategyTypeEnum & GetConflictResolutionStrategy() const
MergeBranchesByThreeWayRequest & WithSourceCommitSpecifier(Aws::String &&value)
MergeBranchesByThreeWayRequest & WithKeepEmptyFolders(bool value)
MergeBranchesByThreeWayRequest & WithEmail(const char *value)
MergeBranchesByThreeWayRequest & WithConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
MergeBranchesByThreeWayRequest & WithSourceCommitSpecifier(const char *value)
MergeBranchesByThreeWayRequest & WithRepositoryName(const Aws::String &value)
MergeBranchesByThreeWayRequest & WithDestinationCommitSpecifier(const Aws::String &value)
MergeBranchesByThreeWayRequest & WithTargetBranch(const Aws::String &value)
MergeBranchesByThreeWayRequest & WithSourceCommitSpecifier(const Aws::String &value)
MergeBranchesByThreeWayRequest & WithConflictDetailLevel(ConflictDetailLevelTypeEnum &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
MergeBranchesByThreeWayRequest & WithEmail(Aws::String &&value)
MergeBranchesByThreeWayRequest & WithDestinationCommitSpecifier(Aws::String &&value)
MergeBranchesByThreeWayRequest & WithCommitMessage(const char *value)
MergeBranchesByThreeWayRequest & WithAuthorName(const Aws::String &value)
MergeBranchesByThreeWayRequest & WithTargetBranch(Aws::String &&value)
void SetConflictDetailLevel(const ConflictDetailLevelTypeEnum &value)
MergeBranchesByThreeWayRequest & WithTargetBranch(const char *value)
MergeBranchesByThreeWayRequest & WithAuthorName(const char *value)
MergeBranchesByThreeWayRequest & WithConflictDetailLevel(const ConflictDetailLevelTypeEnum &value)
MergeBranchesByThreeWayRequest & WithConflictResolution(ConflictResolution &&value)
MergeBranchesByThreeWayRequest & WithCommitMessage(Aws::String &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
MergeBranchesByThreeWayRequest & WithEmail(const Aws::String &value)
MergeBranchesByThreeWayRequest & WithConflictResolution(const ConflictResolution &value)
MergeBranchesByThreeWayRequest & WithAuthorName(Aws::String &&value)
MergeBranchesByThreeWayRequest & WithRepositoryName(const char *value)
const ConflictDetailLevelTypeEnum & GetConflictDetailLevel() const
void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String