/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace CodeCommit { namespace Model { /** */ class GetMergeConflictsRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API GetMergeConflictsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetMergeConflicts"; } AWS_CODECOMMIT_API Aws::String SerializePayload() const override; AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the repository where the pull request was created.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the repository where the pull request was created.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the repository where the pull request was created.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the repository where the pull request was created.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the repository where the pull request was created.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the repository where the pull request was created.

*/ inline GetMergeConflictsRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository where the pull request was created.

*/ inline GetMergeConflictsRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the repository where the pull request was created.

*/ inline GetMergeConflictsRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline const Aws::String& GetDestinationCommitSpecifier() const{ return m_destinationCommitSpecifier; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline bool DestinationCommitSpecifierHasBeenSet() const { return m_destinationCommitSpecifierHasBeenSet; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetDestinationCommitSpecifier(const Aws::String& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = value; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetDestinationCommitSpecifier(Aws::String&& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = std::move(value); } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetDestinationCommitSpecifier(const char* value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier.assign(value); } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline GetMergeConflictsRequest& WithDestinationCommitSpecifier(const Aws::String& value) { SetDestinationCommitSpecifier(value); return *this;} /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline GetMergeConflictsRequest& WithDestinationCommitSpecifier(Aws::String&& value) { SetDestinationCommitSpecifier(std::move(value)); return *this;} /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline GetMergeConflictsRequest& WithDestinationCommitSpecifier(const char* value) { SetDestinationCommitSpecifier(value); return *this;} /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline const Aws::String& GetSourceCommitSpecifier() const{ return m_sourceCommitSpecifier; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline bool SourceCommitSpecifierHasBeenSet() const { return m_sourceCommitSpecifierHasBeenSet; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetSourceCommitSpecifier(const Aws::String& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = value; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetSourceCommitSpecifier(Aws::String&& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = std::move(value); } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetSourceCommitSpecifier(const char* value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier.assign(value); } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline GetMergeConflictsRequest& WithSourceCommitSpecifier(const Aws::String& value) { SetSourceCommitSpecifier(value); return *this;} /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline GetMergeConflictsRequest& WithSourceCommitSpecifier(Aws::String&& value) { SetSourceCommitSpecifier(std::move(value)); return *this;} /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline GetMergeConflictsRequest& WithSourceCommitSpecifier(const char* value) { SetSourceCommitSpecifier(value); return *this;} /** *

The merge option or strategy you want to use to merge the code.

*/ inline const MergeOptionTypeEnum& GetMergeOption() const{ return m_mergeOption; } /** *

The merge option or strategy you want to use to merge the code.

*/ inline bool MergeOptionHasBeenSet() const { return m_mergeOptionHasBeenSet; } /** *

The merge option or strategy you want to use to merge the code.

*/ inline void SetMergeOption(const MergeOptionTypeEnum& value) { m_mergeOptionHasBeenSet = true; m_mergeOption = value; } /** *

The merge option or strategy you want to use to merge the code.

*/ inline void SetMergeOption(MergeOptionTypeEnum&& value) { m_mergeOptionHasBeenSet = true; m_mergeOption = std::move(value); } /** *

The merge option or strategy you want to use to merge the code.

*/ inline GetMergeConflictsRequest& WithMergeOption(const MergeOptionTypeEnum& value) { SetMergeOption(value); return *this;} /** *

The merge option or strategy you want to use to merge the code.

*/ inline GetMergeConflictsRequest& WithMergeOption(MergeOptionTypeEnum&& value) { SetMergeOption(std::move(value)); return *this;} /** *

The level of conflict detail to use. If unspecified, the default FILE_LEVEL * is used, which returns a not-mergeable result if the same file has differences * in both branches. If LINE_LEVEL is specified, a conflict is considered not * mergeable if the same file in both branches has differences on the same * line.

*/ inline const ConflictDetailLevelTypeEnum& GetConflictDetailLevel() const{ return m_conflictDetailLevel; } /** *

The level of conflict detail to use. If unspecified, the default FILE_LEVEL * is used, which returns a not-mergeable result if the same file has differences * in both branches. If LINE_LEVEL is specified, a conflict is considered not * mergeable if the same file in both branches has differences on the same * line.

*/ inline bool ConflictDetailLevelHasBeenSet() const { return m_conflictDetailLevelHasBeenSet; } /** *

The level of conflict detail to use. If unspecified, the default FILE_LEVEL * is used, which returns a not-mergeable result if the same file has differences * in both branches. If LINE_LEVEL is specified, a conflict is considered not * mergeable if the same file in both branches has differences on the same * line.

*/ inline void SetConflictDetailLevel(const ConflictDetailLevelTypeEnum& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = value; } /** *

The level of conflict detail to use. If unspecified, the default FILE_LEVEL * is used, which returns a not-mergeable result if the same file has differences * in both branches. If LINE_LEVEL is specified, a conflict is considered not * mergeable if the same file in both branches has differences on the same * line.

*/ inline void SetConflictDetailLevel(ConflictDetailLevelTypeEnum&& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = std::move(value); } /** *

The level of conflict detail to use. If unspecified, the default FILE_LEVEL * is used, which returns a not-mergeable result if the same file has differences * in both branches. If LINE_LEVEL is specified, a conflict is considered not * mergeable if the same file in both branches has differences on the same * line.

*/ inline GetMergeConflictsRequest& WithConflictDetailLevel(const ConflictDetailLevelTypeEnum& value) { SetConflictDetailLevel(value); return *this;} /** *

The level of conflict detail to use. If unspecified, the default FILE_LEVEL * is used, which returns a not-mergeable result if the same file has differences * in both branches. If LINE_LEVEL is specified, a conflict is considered not * mergeable if the same file in both branches has differences on the same * line.

*/ inline GetMergeConflictsRequest& WithConflictDetailLevel(ConflictDetailLevelTypeEnum&& value) { SetConflictDetailLevel(std::move(value)); return *this;} /** *

The maximum number of files to include in the output.

*/ inline int GetMaxConflictFiles() const{ return m_maxConflictFiles; } /** *

The maximum number of files to include in the output.

*/ inline bool MaxConflictFilesHasBeenSet() const { return m_maxConflictFilesHasBeenSet; } /** *

The maximum number of files to include in the output.

*/ inline void SetMaxConflictFiles(int value) { m_maxConflictFilesHasBeenSet = true; m_maxConflictFiles = value; } /** *

The maximum number of files to include in the output.

*/ inline GetMergeConflictsRequest& WithMaxConflictFiles(int value) { SetMaxConflictFiles(value); return *this;} /** *

Specifies which branch to use when resolving conflicts, or whether to attempt * automatically merging two versions of a file. The default is NONE, which * requires any conflicts to be resolved manually before the merge operation is * successful.

*/ inline const ConflictResolutionStrategyTypeEnum& GetConflictResolutionStrategy() const{ return m_conflictResolutionStrategy; } /** *

Specifies which branch to use when resolving conflicts, or whether to attempt * automatically merging two versions of a file. The default is NONE, which * requires any conflicts to be resolved manually before the merge operation is * successful.

*/ inline bool ConflictResolutionStrategyHasBeenSet() const { return m_conflictResolutionStrategyHasBeenSet; } /** *

Specifies which branch to use when resolving conflicts, or whether to attempt * automatically merging two versions of a file. The default is NONE, which * requires any conflicts to be resolved manually before the merge operation is * successful.

*/ inline void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = value; } /** *

Specifies which branch to use when resolving conflicts, or whether to attempt * automatically merging two versions of a file. The default is NONE, which * requires any conflicts to be resolved manually before the merge operation is * successful.

*/ inline void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum&& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = std::move(value); } /** *

Specifies which branch to use when resolving conflicts, or whether to attempt * automatically merging two versions of a file. The default is NONE, which * requires any conflicts to be resolved manually before the merge operation is * successful.

*/ inline GetMergeConflictsRequest& WithConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum& value) { SetConflictResolutionStrategy(value); return *this;} /** *

Specifies which branch to use when resolving conflicts, or whether to attempt * automatically merging two versions of a file. The default is NONE, which * requires any conflicts to be resolved manually before the merge operation is * successful.

*/ inline GetMergeConflictsRequest& WithConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum&& value) { SetConflictResolutionStrategy(std::move(value)); return *this;} /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline GetMergeConflictsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline GetMergeConflictsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

An enumeration token that, when provided in a request, returns the next batch * of the results.

*/ inline GetMergeConflictsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_destinationCommitSpecifier; bool m_destinationCommitSpecifierHasBeenSet = false; Aws::String m_sourceCommitSpecifier; bool m_sourceCommitSpecifierHasBeenSet = false; MergeOptionTypeEnum m_mergeOption; bool m_mergeOptionHasBeenSet = false; ConflictDetailLevelTypeEnum m_conflictDetailLevel; bool m_conflictDetailLevelHasBeenSet = false; int m_maxConflictFiles; bool m_maxConflictFilesHasBeenSet = false; ConflictResolutionStrategyTypeEnum m_conflictResolutionStrategy; bool m_conflictResolutionStrategyHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws