AWS SDK for C++  1.9.40
AWS SDK for C++
GetMergeOptionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CodeCommit
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "GetMergeOptions"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
44 
49  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
50 
55  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
56 
61  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
62 
67  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
68 
73  inline GetMergeOptionsRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
74 
79  inline GetMergeOptionsRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
80 
85  inline GetMergeOptionsRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
86 
87 
92  inline const Aws::String& GetSourceCommitSpecifier() const{ return m_sourceCommitSpecifier; }
93 
98  inline bool SourceCommitSpecifierHasBeenSet() const { return m_sourceCommitSpecifierHasBeenSet; }
99 
104  inline void SetSourceCommitSpecifier(const Aws::String& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = value; }
105 
110  inline void SetSourceCommitSpecifier(Aws::String&& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = std::move(value); }
111 
116  inline void SetSourceCommitSpecifier(const char* value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier.assign(value); }
117 
122  inline GetMergeOptionsRequest& WithSourceCommitSpecifier(const Aws::String& value) { SetSourceCommitSpecifier(value); return *this;}
123 
128  inline GetMergeOptionsRequest& WithSourceCommitSpecifier(Aws::String&& value) { SetSourceCommitSpecifier(std::move(value)); return *this;}
129 
134  inline GetMergeOptionsRequest& WithSourceCommitSpecifier(const char* value) { SetSourceCommitSpecifier(value); return *this;}
135 
136 
141  inline const Aws::String& GetDestinationCommitSpecifier() const{ return m_destinationCommitSpecifier; }
142 
147  inline bool DestinationCommitSpecifierHasBeenSet() const { return m_destinationCommitSpecifierHasBeenSet; }
148 
153  inline void SetDestinationCommitSpecifier(const Aws::String& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = value; }
154 
159  inline void SetDestinationCommitSpecifier(Aws::String&& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = std::move(value); }
160 
165  inline void SetDestinationCommitSpecifier(const char* value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier.assign(value); }
166 
171  inline GetMergeOptionsRequest& WithDestinationCommitSpecifier(const Aws::String& value) { SetDestinationCommitSpecifier(value); return *this;}
172 
177  inline GetMergeOptionsRequest& WithDestinationCommitSpecifier(Aws::String&& value) { SetDestinationCommitSpecifier(std::move(value)); return *this;}
178 
183  inline GetMergeOptionsRequest& WithDestinationCommitSpecifier(const char* value) { SetDestinationCommitSpecifier(value); return *this;}
184 
185 
193  inline const ConflictDetailLevelTypeEnum& GetConflictDetailLevel() const{ return m_conflictDetailLevel; }
194 
202  inline bool ConflictDetailLevelHasBeenSet() const { return m_conflictDetailLevelHasBeenSet; }
203 
211  inline void SetConflictDetailLevel(const ConflictDetailLevelTypeEnum& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = value; }
212 
220  inline void SetConflictDetailLevel(ConflictDetailLevelTypeEnum&& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = std::move(value); }
221 
229  inline GetMergeOptionsRequest& WithConflictDetailLevel(const ConflictDetailLevelTypeEnum& value) { SetConflictDetailLevel(value); return *this;}
230 
238  inline GetMergeOptionsRequest& WithConflictDetailLevel(ConflictDetailLevelTypeEnum&& value) { SetConflictDetailLevel(std::move(value)); return *this;}
239 
240 
247  inline const ConflictResolutionStrategyTypeEnum& GetConflictResolutionStrategy() const{ return m_conflictResolutionStrategy; }
248 
255  inline bool ConflictResolutionStrategyHasBeenSet() const { return m_conflictResolutionStrategyHasBeenSet; }
256 
263  inline void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = value; }
264 
271  inline void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum&& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = std::move(value); }
272 
279  inline GetMergeOptionsRequest& WithConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum& value) { SetConflictResolutionStrategy(value); return *this;}
280 
287  inline GetMergeOptionsRequest& WithConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum&& value) { SetConflictResolutionStrategy(std::move(value)); return *this;}
288 
289  private:
290 
291  Aws::String m_repositoryName;
292  bool m_repositoryNameHasBeenSet;
293 
294  Aws::String m_sourceCommitSpecifier;
295  bool m_sourceCommitSpecifierHasBeenSet;
296 
297  Aws::String m_destinationCommitSpecifier;
298  bool m_destinationCommitSpecifierHasBeenSet;
299 
300  ConflictDetailLevelTypeEnum m_conflictDetailLevel;
301  bool m_conflictDetailLevelHasBeenSet;
302 
303  ConflictResolutionStrategyTypeEnum m_conflictResolutionStrategy;
304  bool m_conflictResolutionStrategyHasBeenSet;
305  };
306 
307 } // namespace Model
308 } // namespace CodeCommit
309 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetMergeOptionsRequest::GetDestinationCommitSpecifier
const Aws::String & GetDestinationCommitSpecifier() const
Definition: GetMergeOptionsRequest.h:141
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetSourceCommitSpecifier
void SetSourceCommitSpecifier(const Aws::String &value)
Definition: GetMergeOptionsRequest.h:104
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetConflictDetailLevel
void SetConflictDetailLevel(const ConflictDetailLevelTypeEnum &value)
Definition: GetMergeOptionsRequest.h:211
Aws::CodeCommit::Model::GetMergeOptionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetDestinationCommitSpecifier
void SetDestinationCommitSpecifier(const char *value)
Definition: GetMergeOptionsRequest.h:165
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithConflictDetailLevel
GetMergeOptionsRequest & WithConflictDetailLevel(const ConflictDetailLevelTypeEnum &value)
Definition: GetMergeOptionsRequest.h:229
Aws::CodeCommit::Model::GetMergeOptionsRequest::SourceCommitSpecifierHasBeenSet
bool SourceCommitSpecifierHasBeenSet() const
Definition: GetMergeOptionsRequest.h:98
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: GetMergeOptionsRequest.h:55
Aws::CodeCommit::Model::ConflictDetailLevelTypeEnum
ConflictDetailLevelTypeEnum
Definition: ConflictDetailLevelTypeEnum.h:17
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithDestinationCommitSpecifier
GetMergeOptionsRequest & WithDestinationCommitSpecifier(Aws::String &&value)
Definition: GetMergeOptionsRequest.h:177
CodeCommitRequest.h
Aws::CodeCommit::Model::GetMergeOptionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::GetMergeOptionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetMergeOptionsRequest.h:32
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetConflictDetailLevel
void SetConflictDetailLevel(ConflictDetailLevelTypeEnum &&value)
Definition: GetMergeOptionsRequest.h:220
Aws::CodeCommit::Model::GetMergeOptionsRequest::GetMergeOptionsRequest
GetMergeOptionsRequest()
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetConflictResolutionStrategy
void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
Definition: GetMergeOptionsRequest.h:271
Aws::CodeCommit::Model::GetMergeOptionsRequest::ConflictDetailLevelHasBeenSet
bool ConflictDetailLevelHasBeenSet() const
Definition: GetMergeOptionsRequest.h:202
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: GetMergeOptionsRequest.h:61
Aws::CodeCommit::Model::GetMergeOptionsRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: GetMergeOptionsRequest.h:43
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithConflictDetailLevel
GetMergeOptionsRequest & WithConflictDetailLevel(ConflictDetailLevelTypeEnum &&value)
Definition: GetMergeOptionsRequest.h:238
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetDestinationCommitSpecifier
void SetDestinationCommitSpecifier(Aws::String &&value)
Definition: GetMergeOptionsRequest.h:159
Aws::CodeCommit::Model::GetMergeOptionsRequest::ConflictResolutionStrategyHasBeenSet
bool ConflictResolutionStrategyHasBeenSet() const
Definition: GetMergeOptionsRequest.h:255
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithConflictResolutionStrategy
GetMergeOptionsRequest & WithConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
Definition: GetMergeOptionsRequest.h:279
Aws::CodeCommit::Model::GetMergeOptionsRequest::GetConflictResolutionStrategy
const ConflictResolutionStrategyTypeEnum & GetConflictResolutionStrategy() const
Definition: GetMergeOptionsRequest.h:247
ConflictResolutionStrategyTypeEnum.h
Aws::CodeCommit::Model::GetMergeOptionsRequest::DestinationCommitSpecifierHasBeenSet
bool DestinationCommitSpecifierHasBeenSet() const
Definition: GetMergeOptionsRequest.h:147
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithRepositoryName
GetMergeOptionsRequest & WithRepositoryName(Aws::String &&value)
Definition: GetMergeOptionsRequest.h:79
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: GetMergeOptionsRequest.h:67
AWSString.h
Aws::CodeCommit::Model::ConflictResolutionStrategyTypeEnum
ConflictResolutionStrategyTypeEnum
Definition: ConflictResolutionStrategyTypeEnum.h:17
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetDestinationCommitSpecifier
void SetDestinationCommitSpecifier(const Aws::String &value)
Definition: GetMergeOptionsRequest.h:153
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetConflictResolutionStrategy
void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
Definition: GetMergeOptionsRequest.h:263
Aws::CodeCommit::Model::GetMergeOptionsRequest::GetConflictDetailLevel
const ConflictDetailLevelTypeEnum & GetConflictDetailLevel() const
Definition: GetMergeOptionsRequest.h:193
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithSourceCommitSpecifier
GetMergeOptionsRequest & WithSourceCommitSpecifier(const Aws::String &value)
Definition: GetMergeOptionsRequest.h:122
ConflictDetailLevelTypeEnum.h
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithSourceCommitSpecifier
GetMergeOptionsRequest & WithSourceCommitSpecifier(Aws::String &&value)
Definition: GetMergeOptionsRequest.h:128
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithDestinationCommitSpecifier
GetMergeOptionsRequest & WithDestinationCommitSpecifier(const Aws::String &value)
Definition: GetMergeOptionsRequest.h:171
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithSourceCommitSpecifier
GetMergeOptionsRequest & WithSourceCommitSpecifier(const char *value)
Definition: GetMergeOptionsRequest.h:134
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetSourceCommitSpecifier
void SetSourceCommitSpecifier(Aws::String &&value)
Definition: GetMergeOptionsRequest.h:110
Aws::CodeCommit::Model::GetMergeOptionsRequest::GetSourceCommitSpecifier
const Aws::String & GetSourceCommitSpecifier() const
Definition: GetMergeOptionsRequest.h:92
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithRepositoryName
GetMergeOptionsRequest & WithRepositoryName(const char *value)
Definition: GetMergeOptionsRequest.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithDestinationCommitSpecifier
GetMergeOptionsRequest & WithDestinationCommitSpecifier(const char *value)
Definition: GetMergeOptionsRequest.h:183
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithRepositoryName
GetMergeOptionsRequest & WithRepositoryName(const Aws::String &value)
Definition: GetMergeOptionsRequest.h:73
Aws::CodeCommit::Model::GetMergeOptionsRequest::SetSourceCommitSpecifier
void SetSourceCommitSpecifier(const char *value)
Definition: GetMergeOptionsRequest.h:116
Aws::CodeCommit::Model::GetMergeOptionsRequest
Definition: GetMergeOptionsRequest.h:24
Aws::CodeCommit::Model::GetMergeOptionsRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: GetMergeOptionsRequest.h:49
Aws::CodeCommit::Model::GetMergeOptionsRequest::WithConflictResolutionStrategy
GetMergeOptionsRequest & WithConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
Definition: GetMergeOptionsRequest.h:287