This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codecommit/include/aws/codecommit/model/MergePullRequestBySquashRequest.h

531 lines
23 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codecommit/CodeCommit_EXPORTS.h>
#include <aws/codecommit/CodeCommitRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codecommit/model/ConflictDetailLevelTypeEnum.h>
#include <aws/codecommit/model/ConflictResolutionStrategyTypeEnum.h>
#include <aws/codecommit/model/ConflictResolution.h>
#include <utility>
namespace Aws
{
namespace CodeCommit
{
namespace Model
{
/**
*/
class AWS_CODECOMMIT_API MergePullRequestBySquashRequest : public CodeCommitRequest
{
public:
MergePullRequestBySquashRequest();
// 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 "MergePullRequestBySquash"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The system-generated ID of the pull request. To get this ID, use
* <a>ListPullRequests</a>.</p>
*/
inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
/**
* <p>The system-generated ID of the pull request. To get this ID, use
* <a>ListPullRequests</a>.</p>
*/
inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
/**
* <p>The system-generated ID of the pull request. To get this ID, use
* <a>ListPullRequests</a>.</p>
*/
inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
/**
* <p>The system-generated ID of the pull request. To get this ID, use
* <a>ListPullRequests</a>.</p>
*/
inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
/**
* <p>The system-generated ID of the pull request. To get this ID, use
* <a>ListPullRequests</a>.</p>
*/
inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
/**
* <p>The system-generated ID of the pull request. To get this ID, use
* <a>ListPullRequests</a>.</p>
*/
inline MergePullRequestBySquashRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
/**
* <p>The system-generated ID of the pull request. To get this ID, use
* <a>ListPullRequests</a>.</p>
*/
inline MergePullRequestBySquashRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
/**
* <p>The system-generated ID of the pull request. To get this ID, use
* <a>ListPullRequests</a>.</p>
*/
inline MergePullRequestBySquashRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
/**
* <p>The name of the repository where the pull request was created.</p>
*/
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
/**
* <p>The name of the repository where the pull request was created.</p>
*/
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
/**
* <p>The name of the repository where the pull request was created.</p>
*/
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
/**
* <p>The name of the repository where the pull request was created.</p>
*/
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
/**
* <p>The name of the repository where the pull request was created.</p>
*/
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
/**
* <p>The name of the repository where the pull request was created.</p>
*/
inline MergePullRequestBySquashRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
/**
* <p>The name of the repository where the pull request was created.</p>
*/
inline MergePullRequestBySquashRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
/**
* <p>The name of the repository where the pull request was created.</p>
*/
inline MergePullRequestBySquashRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
/**
* <p>The full commit ID of the original or updated commit in the pull request
* source branch. Pass this value if you want an exception thrown if the current
* commit ID of the tip of the source branch does not match this commit ID.</p>
*/
inline const Aws::String& GetSourceCommitId() const{ return m_sourceCommitId; }
/**
* <p>The full commit ID of the original or updated commit in the pull request
* source branch. Pass this value if you want an exception thrown if the current
* commit ID of the tip of the source branch does not match this commit ID.</p>
*/
inline bool SourceCommitIdHasBeenSet() const { return m_sourceCommitIdHasBeenSet; }
/**
* <p>The full commit ID of the original or updated commit in the pull request
* source branch. Pass this value if you want an exception thrown if the current
* commit ID of the tip of the source branch does not match this commit ID.</p>
*/
inline void SetSourceCommitId(const Aws::String& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = value; }
/**
* <p>The full commit ID of the original or updated commit in the pull request
* source branch. Pass this value if you want an exception thrown if the current
* commit ID of the tip of the source branch does not match this commit ID.</p>
*/
inline void SetSourceCommitId(Aws::String&& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = std::move(value); }
/**
* <p>The full commit ID of the original or updated commit in the pull request
* source branch. Pass this value if you want an exception thrown if the current
* commit ID of the tip of the source branch does not match this commit ID.</p>
*/
inline void SetSourceCommitId(const char* value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId.assign(value); }
/**
* <p>The full commit ID of the original or updated commit in the pull request
* source branch. Pass this value if you want an exception thrown if the current
* commit ID of the tip of the source branch does not match this commit ID.</p>
*/
inline MergePullRequestBySquashRequest& WithSourceCommitId(const Aws::String& value) { SetSourceCommitId(value); return *this;}
/**
* <p>The full commit ID of the original or updated commit in the pull request
* source branch. Pass this value if you want an exception thrown if the current
* commit ID of the tip of the source branch does not match this commit ID.</p>
*/
inline MergePullRequestBySquashRequest& WithSourceCommitId(Aws::String&& value) { SetSourceCommitId(std::move(value)); return *this;}
/**
* <p>The full commit ID of the original or updated commit in the pull request
* source branch. Pass this value if you want an exception thrown if the current
* commit ID of the tip of the source branch does not match this commit ID.</p>
*/
inline MergePullRequestBySquashRequest& WithSourceCommitId(const char* value) { SetSourceCommitId(value); return *this;}
/**
* <p>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.</p>
*/
inline const ConflictDetailLevelTypeEnum& GetConflictDetailLevel() const{ return m_conflictDetailLevel; }
/**
* <p>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.</p>
*/
inline bool ConflictDetailLevelHasBeenSet() const { return m_conflictDetailLevelHasBeenSet; }
/**
* <p>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.</p>
*/
inline void SetConflictDetailLevel(const ConflictDetailLevelTypeEnum& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = value; }
/**
* <p>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.</p>
*/
inline void SetConflictDetailLevel(ConflictDetailLevelTypeEnum&& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = std::move(value); }
/**
* <p>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.</p>
*/
inline MergePullRequestBySquashRequest& WithConflictDetailLevel(const ConflictDetailLevelTypeEnum& value) { SetConflictDetailLevel(value); return *this;}
/**
* <p>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.</p>
*/
inline MergePullRequestBySquashRequest& WithConflictDetailLevel(ConflictDetailLevelTypeEnum&& value) { SetConflictDetailLevel(std::move(value)); return *this;}
/**
* <p>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.</p>
*/
inline const ConflictResolutionStrategyTypeEnum& GetConflictResolutionStrategy() const{ return m_conflictResolutionStrategy; }
/**
* <p>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.</p>
*/
inline bool ConflictResolutionStrategyHasBeenSet() const { return m_conflictResolutionStrategyHasBeenSet; }
/**
* <p>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.</p>
*/
inline void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = value; }
/**
* <p>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.</p>
*/
inline void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum&& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = std::move(value); }
/**
* <p>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.</p>
*/
inline MergePullRequestBySquashRequest& WithConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum& value) { SetConflictResolutionStrategy(value); return *this;}
/**
* <p>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.</p>
*/
inline MergePullRequestBySquashRequest& WithConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum&& value) { SetConflictResolutionStrategy(std::move(value)); return *this;}
/**
* <p>The commit message to include in the commit information for the merge.</p>
*/
inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
/**
* <p>The commit message to include in the commit information for the merge.</p>
*/
inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
/**
* <p>The commit message to include in the commit information for the merge.</p>
*/
inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
/**
* <p>The commit message to include in the commit information for the merge.</p>
*/
inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
/**
* <p>The commit message to include in the commit information for the merge.</p>
*/
inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
/**
* <p>The commit message to include in the commit information for the merge.</p>
*/
inline MergePullRequestBySquashRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
/**
* <p>The commit message to include in the commit information for the merge.</p>
*/
inline MergePullRequestBySquashRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
/**
* <p>The commit message to include in the commit information for the merge.</p>
*/
inline MergePullRequestBySquashRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
/**
* <p>The name of the author who created the commit. This information is used as
* both the author and committer for the commit.</p>
*/
inline const Aws::String& GetAuthorName() const{ return m_authorName; }
/**
* <p>The name of the author who created the commit. This information is used as
* both the author and committer for the commit.</p>
*/
inline bool AuthorNameHasBeenSet() const { return m_authorNameHasBeenSet; }
/**
* <p>The name of the author who created the commit. This information is used as
* both the author and committer for the commit.</p>
*/
inline void SetAuthorName(const Aws::String& value) { m_authorNameHasBeenSet = true; m_authorName = value; }
/**
* <p>The name of the author who created the commit. This information is used as
* both the author and committer for the commit.</p>
*/
inline void SetAuthorName(Aws::String&& value) { m_authorNameHasBeenSet = true; m_authorName = std::move(value); }
/**
* <p>The name of the author who created the commit. This information is used as
* both the author and committer for the commit.</p>
*/
inline void SetAuthorName(const char* value) { m_authorNameHasBeenSet = true; m_authorName.assign(value); }
/**
* <p>The name of the author who created the commit. This information is used as
* both the author and committer for the commit.</p>
*/
inline MergePullRequestBySquashRequest& WithAuthorName(const Aws::String& value) { SetAuthorName(value); return *this;}
/**
* <p>The name of the author who created the commit. This information is used as
* both the author and committer for the commit.</p>
*/
inline MergePullRequestBySquashRequest& WithAuthorName(Aws::String&& value) { SetAuthorName(std::move(value)); return *this;}
/**
* <p>The name of the author who created the commit. This information is used as
* both the author and committer for the commit.</p>
*/
inline MergePullRequestBySquashRequest& WithAuthorName(const char* value) { SetAuthorName(value); return *this;}
/**
* <p>The email address of the person merging the branches. This information is
* used in the commit information for the merge.</p>
*/
inline const Aws::String& GetEmail() const{ return m_email; }
/**
* <p>The email address of the person merging the branches. This information is
* used in the commit information for the merge.</p>
*/
inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
/**
* <p>The email address of the person merging the branches. This information is
* used in the commit information for the merge.</p>
*/
inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
/**
* <p>The email address of the person merging the branches. This information is
* used in the commit information for the merge.</p>
*/
inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
/**
* <p>The email address of the person merging the branches. This information is
* used in the commit information for the merge.</p>
*/
inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
/**
* <p>The email address of the person merging the branches. This information is
* used in the commit information for the merge.</p>
*/
inline MergePullRequestBySquashRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
/**
* <p>The email address of the person merging the branches. This information is
* used in the commit information for the merge.</p>
*/
inline MergePullRequestBySquashRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
/**
* <p>The email address of the person merging the branches. This information is
* used in the commit information for the merge.</p>
*/
inline MergePullRequestBySquashRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
/**
* <p>If the commit contains deletions, whether to keep a folder or folder
* structure if the changes leave the folders empty. If true, a .gitkeep file is
* created for empty folders. The default is false.</p>
*/
inline bool GetKeepEmptyFolders() const{ return m_keepEmptyFolders; }
/**
* <p>If the commit contains deletions, whether to keep a folder or folder
* structure if the changes leave the folders empty. If true, a .gitkeep file is
* created for empty folders. The default is false.</p>
*/
inline bool KeepEmptyFoldersHasBeenSet() const { return m_keepEmptyFoldersHasBeenSet; }
/**
* <p>If the commit contains deletions, whether to keep a folder or folder
* structure if the changes leave the folders empty. If true, a .gitkeep file is
* created for empty folders. The default is false.</p>
*/
inline void SetKeepEmptyFolders(bool value) { m_keepEmptyFoldersHasBeenSet = true; m_keepEmptyFolders = value; }
/**
* <p>If the commit contains deletions, whether to keep a folder or folder
* structure if the changes leave the folders empty. If true, a .gitkeep file is
* created for empty folders. The default is false.</p>
*/
inline MergePullRequestBySquashRequest& WithKeepEmptyFolders(bool value) { SetKeepEmptyFolders(value); return *this;}
/**
* <p>If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
* when resolving conflicts during a merge.</p>
*/
inline const ConflictResolution& GetConflictResolution() const{ return m_conflictResolution; }
/**
* <p>If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
* when resolving conflicts during a merge.</p>
*/
inline bool ConflictResolutionHasBeenSet() const { return m_conflictResolutionHasBeenSet; }
/**
* <p>If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
* when resolving conflicts during a merge.</p>
*/
inline void SetConflictResolution(const ConflictResolution& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = value; }
/**
* <p>If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
* when resolving conflicts during a merge.</p>
*/
inline void SetConflictResolution(ConflictResolution&& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = std::move(value); }
/**
* <p>If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
* when resolving conflicts during a merge.</p>
*/
inline MergePullRequestBySquashRequest& WithConflictResolution(const ConflictResolution& value) { SetConflictResolution(value); return *this;}
/**
* <p>If AUTOMERGE is the conflict resolution strategy, a list of inputs to use
* when resolving conflicts during a merge.</p>
*/
inline MergePullRequestBySquashRequest& WithConflictResolution(ConflictResolution&& value) { SetConflictResolution(std::move(value)); return *this;}
private:
Aws::String m_pullRequestId;
bool m_pullRequestIdHasBeenSet;
Aws::String m_repositoryName;
bool m_repositoryNameHasBeenSet;
Aws::String m_sourceCommitId;
bool m_sourceCommitIdHasBeenSet;
ConflictDetailLevelTypeEnum m_conflictDetailLevel;
bool m_conflictDetailLevelHasBeenSet;
ConflictResolutionStrategyTypeEnum m_conflictResolutionStrategy;
bool m_conflictResolutionStrategyHasBeenSet;
Aws::String m_commitMessage;
bool m_commitMessageHasBeenSet;
Aws::String m_authorName;
bool m_authorNameHasBeenSet;
Aws::String m_email;
bool m_emailHasBeenSet;
bool m_keepEmptyFolders;
bool m_keepEmptyFoldersHasBeenSet;
ConflictResolution m_conflictResolution;
bool m_conflictResolutionHasBeenSet;
};
} // namespace Model
} // namespace CodeCommit
} // namespace Aws