Class MergePullRequestByThreeWayRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.codecommit.model.CodeCommitRequest
-
- software.amazon.awssdk.services.codecommit.model.MergePullRequestByThreeWayRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<MergePullRequestByThreeWayRequest.Builder,MergePullRequestByThreeWayRequest>
@Generated("software.amazon.awssdk:codegen") public final class MergePullRequestByThreeWayRequest extends CodeCommitRequest implements ToCopyableBuilder<MergePullRequestByThreeWayRequest.Builder,MergePullRequestByThreeWayRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMergePullRequestByThreeWayRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringauthorName()The name of the author who created the commit.static MergePullRequestByThreeWayRequest.Builderbuilder()StringcommitMessage()The commit message to include in the commit information for the merge.ConflictDetailLevelTypeEnumconflictDetailLevel()The level of conflict detail to use.StringconflictDetailLevelAsString()The level of conflict detail to use.ConflictResolutionconflictResolution()If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.ConflictResolutionStrategyTypeEnumconflictResolutionStrategy()Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file.StringconflictResolutionStrategyAsString()Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file.Stringemail()The email address of the person merging the branches.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleankeepEmptyFolders()If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty.StringpullRequestId()The system-generated ID of the pull request.StringrepositoryName()The name of the repository where the pull request was created.List<SdkField<?>>sdkFields()static Class<? extends MergePullRequestByThreeWayRequest.Builder>serializableBuilderClass()StringsourceCommitId()The full commit ID of the original or updated commit in the pull request source branch.MergePullRequestByThreeWayRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
pullRequestId
public final String pullRequestId()
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
- Returns:
- The system-generated ID of the pull request. To get this ID, use ListPullRequests.
-
repositoryName
public final String repositoryName()
The name of the repository where the pull request was created.
- Returns:
- The name of the repository where the pull request was created.
-
sourceCommitId
public final 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.
- Returns:
- 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.
-
conflictDetailLevel
public final 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.
If the service returns an enum value that is not available in the current SDK version,
conflictDetailLevelwill returnConflictDetailLevelTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconflictDetailLevelAsString().- Returns:
- 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.
- See Also:
ConflictDetailLevelTypeEnum
-
conflictDetailLevelAsString
public final String conflictDetailLevelAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
conflictDetailLevelwill returnConflictDetailLevelTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconflictDetailLevelAsString().- Returns:
- 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.
- See Also:
ConflictDetailLevelTypeEnum
-
conflictResolutionStrategy
public final 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.
If the service returns an enum value that is not available in the current SDK version,
conflictResolutionStrategywill returnConflictResolutionStrategyTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconflictResolutionStrategyAsString().- Returns:
- 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.
- See Also:
ConflictResolutionStrategyTypeEnum
-
conflictResolutionStrategyAsString
public final String conflictResolutionStrategyAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
conflictResolutionStrategywill returnConflictResolutionStrategyTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconflictResolutionStrategyAsString().- Returns:
- 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.
- See Also:
ConflictResolutionStrategyTypeEnum
-
commitMessage
public final String commitMessage()
The commit message to include in the commit information for the merge.
- Returns:
- The commit message to include in the commit information for the merge.
-
authorName
public final String authorName()
The name of the author who created the commit. This information is used as both the author and committer for the commit.
- Returns:
- The name of the author who created the commit. This information is used as both the author and committer for the commit.
-
email
public final String email()
The email address of the person merging the branches. This information is used in the commit information for the merge.
- Returns:
- The email address of the person merging the branches. This information is used in the commit information for the merge.
-
keepEmptyFolders
public final 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.
- Returns:
- 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.
-
conflictResolution
public final ConflictResolution conflictResolution()
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
- Returns:
- If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
-
toBuilder
public MergePullRequestByThreeWayRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MergePullRequestByThreeWayRequest.Builder,MergePullRequestByThreeWayRequest>- Specified by:
toBuilderin classCodeCommitRequest
-
builder
public static MergePullRequestByThreeWayRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends MergePullRequestByThreeWayRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-