AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateUnreferencedMergeCommitRequest.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/MergeOptionTypeEnum.h>
11#include <aws/codecommit/model/ConflictDetailLevelTypeEnum.h>
12#include <aws/codecommit/model/ConflictResolutionStrategyTypeEnum.h>
13#include <aws/codecommit/model/ConflictResolution.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CodeCommit
19{
20namespace Model
21{
22
26 {
27 public:
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 "CreateUnreferencedMergeCommit"; }
35
36 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
47 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
48 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
49 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
50 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
52 inline CreateUnreferencedMergeCommitRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
53 inline CreateUnreferencedMergeCommitRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
55
57
61 inline const Aws::String& GetSourceCommitSpecifier() const{ return m_sourceCommitSpecifier; }
62 inline bool SourceCommitSpecifierHasBeenSet() const { return m_sourceCommitSpecifierHasBeenSet; }
63 inline void SetSourceCommitSpecifier(const Aws::String& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = value; }
64 inline void SetSourceCommitSpecifier(Aws::String&& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = std::move(value); }
65 inline void SetSourceCommitSpecifier(const char* value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier.assign(value); }
70
72
76 inline const Aws::String& GetDestinationCommitSpecifier() const{ return m_destinationCommitSpecifier; }
77 inline bool DestinationCommitSpecifierHasBeenSet() const { return m_destinationCommitSpecifierHasBeenSet; }
78 inline void SetDestinationCommitSpecifier(const Aws::String& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = value; }
79 inline void SetDestinationCommitSpecifier(Aws::String&& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = std::move(value); }
80 inline void SetDestinationCommitSpecifier(const char* value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier.assign(value); }
85
87
90 inline const MergeOptionTypeEnum& GetMergeOption() const{ return m_mergeOption; }
91 inline bool MergeOptionHasBeenSet() const { return m_mergeOptionHasBeenSet; }
92 inline void SetMergeOption(const MergeOptionTypeEnum& value) { m_mergeOptionHasBeenSet = true; m_mergeOption = value; }
93 inline void SetMergeOption(MergeOptionTypeEnum&& value) { m_mergeOptionHasBeenSet = true; m_mergeOption = std::move(value); }
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); }
140 inline CreateUnreferencedMergeCommitRequest& WithAuthorName(Aws::String&& value) { SetAuthorName(std::move(value)); return *this;}
141 inline CreateUnreferencedMergeCommitRequest& WithAuthorName(const char* value) { SetAuthorName(value); return *this;}
143
145
148 inline const Aws::String& GetEmail() const{ return m_email; }
149 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
150 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
151 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
152 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
153 inline CreateUnreferencedMergeCommitRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
154 inline CreateUnreferencedMergeCommitRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
155 inline CreateUnreferencedMergeCommitRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
157
159
162 inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
163 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
164 inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
165 inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
166 inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
168 inline CreateUnreferencedMergeCommitRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
169 inline CreateUnreferencedMergeCommitRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
171
173
178 inline bool GetKeepEmptyFolders() const{ return m_keepEmptyFolders; }
179 inline bool KeepEmptyFoldersHasBeenSet() const { return m_keepEmptyFoldersHasBeenSet; }
180 inline void SetKeepEmptyFolders(bool value) { m_keepEmptyFoldersHasBeenSet = true; m_keepEmptyFolders = value; }
183
185
189 inline const ConflictResolution& GetConflictResolution() const{ return m_conflictResolution; }
190 inline bool ConflictResolutionHasBeenSet() const { return m_conflictResolutionHasBeenSet; }
191 inline void SetConflictResolution(const ConflictResolution& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = value; }
192 inline void SetConflictResolution(ConflictResolution&& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = std::move(value); }
196 private:
197
198 Aws::String m_repositoryName;
199 bool m_repositoryNameHasBeenSet = false;
200
201 Aws::String m_sourceCommitSpecifier;
202 bool m_sourceCommitSpecifierHasBeenSet = false;
203
204 Aws::String m_destinationCommitSpecifier;
205 bool m_destinationCommitSpecifierHasBeenSet = false;
206
207 MergeOptionTypeEnum m_mergeOption;
208 bool m_mergeOptionHasBeenSet = false;
209
210 ConflictDetailLevelTypeEnum m_conflictDetailLevel;
211 bool m_conflictDetailLevelHasBeenSet = false;
212
213 ConflictResolutionStrategyTypeEnum m_conflictResolutionStrategy;
214 bool m_conflictResolutionStrategyHasBeenSet = false;
215
216 Aws::String m_authorName;
217 bool m_authorNameHasBeenSet = false;
218
219 Aws::String m_email;
220 bool m_emailHasBeenSet = false;
221
222 Aws::String m_commitMessage;
223 bool m_commitMessageHasBeenSet = false;
224
225 bool m_keepEmptyFolders;
226 bool m_keepEmptyFoldersHasBeenSet = false;
227
228 ConflictResolution m_conflictResolution;
229 bool m_conflictResolutionHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace CodeCommit
234} // namespace Aws
CreateUnreferencedMergeCommitRequest & WithRepositoryName(const char *value)
CreateUnreferencedMergeCommitRequest & WithConflictResolution(const ConflictResolution &value)
void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
const ConflictResolutionStrategyTypeEnum & GetConflictResolutionStrategy() const
CreateUnreferencedMergeCommitRequest & WithSourceCommitSpecifier(Aws::String &&value)
CreateUnreferencedMergeCommitRequest & WithConflictDetailLevel(ConflictDetailLevelTypeEnum &&value)
CreateUnreferencedMergeCommitRequest & WithAuthorName(Aws::String &&value)
CreateUnreferencedMergeCommitRequest & WithAuthorName(const Aws::String &value)
CreateUnreferencedMergeCommitRequest & WithEmail(const Aws::String &value)
CreateUnreferencedMergeCommitRequest & WithSourceCommitSpecifier(const Aws::String &value)
CreateUnreferencedMergeCommitRequest & WithConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
CreateUnreferencedMergeCommitRequest & WithCommitMessage(const Aws::String &value)
CreateUnreferencedMergeCommitRequest & WithEmail(Aws::String &&value)
CreateUnreferencedMergeCommitRequest & WithConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
CreateUnreferencedMergeCommitRequest & WithSourceCommitSpecifier(const char *value)
CreateUnreferencedMergeCommitRequest & WithDestinationCommitSpecifier(const char *value)
CreateUnreferencedMergeCommitRequest & WithRepositoryName(const Aws::String &value)
CreateUnreferencedMergeCommitRequest & WithCommitMessage(const char *value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUnreferencedMergeCommitRequest & WithConflictDetailLevel(const ConflictDetailLevelTypeEnum &value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
CreateUnreferencedMergeCommitRequest & WithDestinationCommitSpecifier(const Aws::String &value)
CreateUnreferencedMergeCommitRequest & WithEmail(const char *value)
CreateUnreferencedMergeCommitRequest & WithAuthorName(const char *value)
CreateUnreferencedMergeCommitRequest & WithConflictResolution(ConflictResolution &&value)
void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
CreateUnreferencedMergeCommitRequest & WithMergeOption(const MergeOptionTypeEnum &value)
CreateUnreferencedMergeCommitRequest & WithCommitMessage(Aws::String &&value)
CreateUnreferencedMergeCommitRequest & WithDestinationCommitSpecifier(Aws::String &&value)
CreateUnreferencedMergeCommitRequest & WithRepositoryName(Aws::String &&value)
CreateUnreferencedMergeCommitRequest & WithMergeOption(MergeOptionTypeEnum &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String