@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MergePullRequestBySquashRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
MergePullRequestBySquashRequest() |
Modifier and Type | Method and Description |
---|---|
MergePullRequestBySquashRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAuthorName()
The name of the author who created the commit.
|
String |
getCommitMessage()
The commit message to include in the commit information for the merge.
|
String |
getConflictDetailLevel()
The level of conflict detail to use.
|
ConflictResolution |
getConflictResolution()
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a
merge.
|
String |
getConflictResolutionStrategy()
Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions
of a file.
|
String |
getEmail()
The email address of the person merging the branches.
|
Boolean |
getKeepEmptyFolders()
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders
empty.
|
String |
getPullRequestId()
The system-generated ID of the pull request.
|
String |
getRepositoryName()
The name of the repository where the pull request was created.
|
String |
getSourceCommitId()
The full commit ID of the original or updated commit in the pull request source branch.
|
int |
hashCode() |
Boolean |
isKeepEmptyFolders()
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders
empty.
|
void |
setAuthorName(String authorName)
The name of the author who created the commit.
|
void |
setCommitMessage(String commitMessage)
The commit message to include in the commit information for the merge.
|
void |
setConflictDetailLevel(String conflictDetailLevel)
The level of conflict detail to use.
|
void |
setConflictResolution(ConflictResolution conflictResolution)
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a
merge.
|
void |
setConflictResolutionStrategy(String conflictResolutionStrategy)
Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions
of a file.
|
void |
setEmail(String email)
The email address of the person merging the branches.
|
void |
setKeepEmptyFolders(Boolean keepEmptyFolders)
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders
empty.
|
void |
setPullRequestId(String pullRequestId)
The system-generated ID of the pull request.
|
void |
setRepositoryName(String repositoryName)
The name of the repository where the pull request was created.
|
void |
setSourceCommitId(String sourceCommitId)
The full commit ID of the original or updated commit in the pull request source branch.
|
String |
toString()
Returns a string representation of this object.
|
MergePullRequestBySquashRequest |
withAuthorName(String authorName)
The name of the author who created the commit.
|
MergePullRequestBySquashRequest |
withCommitMessage(String commitMessage)
The commit message to include in the commit information for the merge.
|
MergePullRequestBySquashRequest |
withConflictDetailLevel(ConflictDetailLevelTypeEnum conflictDetailLevel)
The level of conflict detail to use.
|
MergePullRequestBySquashRequest |
withConflictDetailLevel(String conflictDetailLevel)
The level of conflict detail to use.
|
MergePullRequestBySquashRequest |
withConflictResolution(ConflictResolution conflictResolution)
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a
merge.
|
MergePullRequestBySquashRequest |
withConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum conflictResolutionStrategy)
Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions
of a file.
|
MergePullRequestBySquashRequest |
withConflictResolutionStrategy(String conflictResolutionStrategy)
Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions
of a file.
|
MergePullRequestBySquashRequest |
withEmail(String email)
The email address of the person merging the branches.
|
MergePullRequestBySquashRequest |
withKeepEmptyFolders(Boolean keepEmptyFolders)
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders
empty.
|
MergePullRequestBySquashRequest |
withPullRequestId(String pullRequestId)
The system-generated ID of the pull request.
|
MergePullRequestBySquashRequest |
withRepositoryName(String repositoryName)
The name of the repository where the pull request was created.
|
MergePullRequestBySquashRequest |
withSourceCommitId(String sourceCommitId)
The full commit ID of the original or updated commit in the pull request source branch.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setPullRequestId(String pullRequestId)
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
pullRequestId
- The system-generated ID of the pull request. To get this ID, use ListPullRequests.public String getPullRequestId()
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
public MergePullRequestBySquashRequest withPullRequestId(String pullRequestId)
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
pullRequestId
- The system-generated ID of the pull request. To get this ID, use ListPullRequests.public void setRepositoryName(String repositoryName)
The name of the repository where the pull request was created.
repositoryName
- The name of the repository where the pull request was created.public String getRepositoryName()
The name of the repository where the pull request was created.
public MergePullRequestBySquashRequest withRepositoryName(String repositoryName)
The name of the repository where the pull request was created.
repositoryName
- The name of the repository where the pull request was created.public void setSourceCommitId(String sourceCommitId)
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.
sourceCommitId
- 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.public String getSourceCommitId()
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.
public MergePullRequestBySquashRequest withSourceCommitId(String sourceCommitId)
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.
sourceCommitId
- 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.public void setConflictDetailLevel(String 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.
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.ConflictDetailLevelTypeEnum
public String getConflictDetailLevel()
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.
ConflictDetailLevelTypeEnum
public MergePullRequestBySquashRequest withConflictDetailLevel(String 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.
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.ConflictDetailLevelTypeEnum
public MergePullRequestBySquashRequest withConflictDetailLevel(ConflictDetailLevelTypeEnum 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.
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.ConflictDetailLevelTypeEnum
public void setConflictResolutionStrategy(String 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.
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.ConflictResolutionStrategyTypeEnum
public String getConflictResolutionStrategy()
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.
ConflictResolutionStrategyTypeEnum
public MergePullRequestBySquashRequest withConflictResolutionStrategy(String 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.
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.ConflictResolutionStrategyTypeEnum
public MergePullRequestBySquashRequest withConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum 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.
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.ConflictResolutionStrategyTypeEnum
public void setCommitMessage(String commitMessage)
The commit message to include in the commit information for the merge.
commitMessage
- The commit message to include in the commit information for the merge.public String getCommitMessage()
The commit message to include in the commit information for the merge.
public MergePullRequestBySquashRequest withCommitMessage(String commitMessage)
The commit message to include in the commit information for the merge.
commitMessage
- The commit message to include in the commit information for the merge.public void setAuthorName(String authorName)
The name of the author who created the commit. This information is used as both the author and committer for the commit.
authorName
- The name of the author who created the commit. This information is used as both the author and committer
for the commit.public String getAuthorName()
The name of the author who created the commit. This information is used as both the author and committer for the commit.
public MergePullRequestBySquashRequest withAuthorName(String authorName)
The name of the author who created the commit. This information is used as both the author and committer for the commit.
authorName
- The name of the author who created the commit. This information is used as both the author and committer
for the commit.public void setEmail(String email)
The email address of the person merging the branches. This information is used in the commit information for the merge.
email
- The email address of the person merging the branches. This information is used in the commit information
for the merge.public String getEmail()
The email address of the person merging the branches. This information is used in the commit information for the merge.
public MergePullRequestBySquashRequest withEmail(String email)
The email address of the person merging the branches. This information is used in the commit information for the merge.
email
- The email address of the person merging the branches. This information is used in the commit information
for the merge.public void setKeepEmptyFolders(Boolean keepEmptyFolders)
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.
keepEmptyFolders
- 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.public Boolean getKeepEmptyFolders()
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.
public MergePullRequestBySquashRequest withKeepEmptyFolders(Boolean keepEmptyFolders)
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.
keepEmptyFolders
- 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.public Boolean isKeepEmptyFolders()
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.
public void setConflictResolution(ConflictResolution conflictResolution)
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
conflictResolution
- If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during
a merge.public ConflictResolution getConflictResolution()
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
public MergePullRequestBySquashRequest withConflictResolution(ConflictResolution conflictResolution)
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
conflictResolution
- If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during
a merge.public String toString()
toString
in class Object
Object.toString()
public MergePullRequestBySquashRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()