AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MergeBranchesBySquashRequest.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 MergeBranchesBySquashRequest();
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 "MergeBranchesBySquash"; }
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 MergeBranchesBySquashRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
51 inline MergeBranchesBySquashRequest& 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 MergeBranchesBySquashRequest& 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 MergeBranchesBySquashRequest& WithTargetBranch(const Aws::String& value) { SetTargetBranch(value); return *this;}
94 inline MergeBranchesBySquashRequest& WithTargetBranch(Aws::String&& value) { SetTargetBranch(std::move(value)); return *this;}
95 inline MergeBranchesBySquashRequest& 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 MergeBranchesBySquashRequest& WithAuthorName(const Aws::String& value) { SetAuthorName(value); return *this;}
140 inline MergeBranchesBySquashRequest& WithAuthorName(Aws::String&& value) { SetAuthorName(std::move(value)); return *this;}
141 inline MergeBranchesBySquashRequest& 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 MergeBranchesBySquashRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
155 inline MergeBranchesBySquashRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
156 inline MergeBranchesBySquashRequest& 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); }
168 inline MergeBranchesBySquashRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
169 inline MergeBranchesBySquashRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
170 inline MergeBranchesBySquashRequest& 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; }
182 inline MergeBranchesBySquashRequest& WithKeepEmptyFolders(bool value) { SetKeepEmptyFolders(value); return *this;}
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
void SetConflictDetailLevel(const ConflictDetailLevelTypeEnum &value)
MergeBranchesBySquashRequest & WithDestinationCommitSpecifier(Aws::String &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
MergeBranchesBySquashRequest & WithConflictDetailLevel(ConflictDetailLevelTypeEnum &&value)
MergeBranchesBySquashRequest & WithRepositoryName(Aws::String &&value)
MergeBranchesBySquashRequest & WithCommitMessage(const Aws::String &value)
MergeBranchesBySquashRequest & WithConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
MergeBranchesBySquashRequest & WithTargetBranch(const Aws::String &value)
MergeBranchesBySquashRequest & WithDestinationCommitSpecifier(const char *value)
MergeBranchesBySquashRequest & WithSourceCommitSpecifier(const char *value)
MergeBranchesBySquashRequest & WithEmail(Aws::String &&value)
MergeBranchesBySquashRequest & WithKeepEmptyFolders(bool value)
MergeBranchesBySquashRequest & WithSourceCommitSpecifier(const Aws::String &value)
MergeBranchesBySquashRequest & WithSourceCommitSpecifier(Aws::String &&value)
MergeBranchesBySquashRequest & WithRepositoryName(const Aws::String &value)
MergeBranchesBySquashRequest & WithCommitMessage(Aws::String &&value)
MergeBranchesBySquashRequest & WithConflictResolution(ConflictResolution &&value)
MergeBranchesBySquashRequest & WithTargetBranch(Aws::String &&value)
MergeBranchesBySquashRequest & WithTargetBranch(const char *value)
MergeBranchesBySquashRequest & WithEmail(const char *value)
MergeBranchesBySquashRequest & WithEmail(const Aws::String &value)
void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
MergeBranchesBySquashRequest & WithConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
void SetConflictDetailLevel(ConflictDetailLevelTypeEnum &&value)
MergeBranchesBySquashRequest & WithAuthorName(Aws::String &&value)
MergeBranchesBySquashRequest & WithAuthorName(const char *value)
MergeBranchesBySquashRequest & WithAuthorName(const Aws::String &value)
const ConflictDetailLevelTypeEnum & GetConflictDetailLevel() const
MergeBranchesBySquashRequest & WithConflictDetailLevel(const ConflictDetailLevelTypeEnum &value)
const ConflictResolutionStrategyTypeEnum & GetConflictResolutionStrategy() const
MergeBranchesBySquashRequest & WithConflictResolution(const ConflictResolution &value)
MergeBranchesBySquashRequest & WithCommitMessage(const char *value)
MergeBranchesBySquashRequest & WithRepositoryName(const char *value)
MergeBranchesBySquashRequest & WithDestinationCommitSpecifier(const Aws::String &value)
void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String