Class MergeHunk
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.MergeHunk
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MergeHunk.Builder,MergeHunk>
@Generated("software.amazon.awssdk:codegen") public final class MergeHunk extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MergeHunk.Builder,MergeHunk>
Information about merge hunks in a merge or pull request operation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMergeHunk.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MergeHunkDetailbase()Information about the merge hunk in the base of a merge or pull request.static MergeHunk.Builderbuilder()MergeHunkDetaildestination()Information about the merge hunk in the destination of a merge or pull request.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanisConflict()A Boolean value indicating whether a combination of hunks contains a conflict.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends MergeHunk.Builder>serializableBuilderClass()MergeHunkDetailsource()Information about the merge hunk in the source of a merge or pull request.MergeHunk.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
isConflict
public final Boolean isConflict()
A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. True when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge do not set this to true.
- Returns:
- A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. True when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge do not set this to true.
-
source
public final MergeHunkDetail source()
Information about the merge hunk in the source of a merge or pull request.
- Returns:
- Information about the merge hunk in the source of a merge or pull request.
-
destination
public final MergeHunkDetail destination()
Information about the merge hunk in the destination of a merge or pull request.
- Returns:
- Information about the merge hunk in the destination of a merge or pull request.
-
base
public final MergeHunkDetail base()
Information about the merge hunk in the base of a merge or pull request.
- Returns:
- Information about the merge hunk in the base of a merge or pull request.
-
toBuilder
public MergeHunk.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MergeHunk.Builder,MergeHunk>
-
builder
public static MergeHunk.Builder builder()
-
serializableBuilderClass
public static Class<? extends MergeHunk.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-