Class PullRequestCreatedEventMetadata
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.PullRequestCreatedEventMetadata
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PullRequestCreatedEventMetadata.Builder,PullRequestCreatedEventMetadata>
@Generated("software.amazon.awssdk:codegen") public final class PullRequestCreatedEventMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PullRequestCreatedEventMetadata.Builder,PullRequestCreatedEventMetadata>
Metadata about the pull request that is used when comparing the pull request source with its destination.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePullRequestCreatedEventMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PullRequestCreatedEventMetadata.Builderbuilder()StringdestinationCommitId()The commit ID of the tip of the branch specified as the destination branch when the pull request was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringmergeBase()The commit ID of the most recent commit that the source branch and the destination branch have in common.StringrepositoryName()The name of the repository where the pull request was created.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PullRequestCreatedEventMetadata.Builder>serializableBuilderClass()StringsourceCommitId()The commit ID on the source branch used when the pull request was created.PullRequestCreatedEventMetadata.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
-
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 commit ID on the source branch used when the pull request was created.
- Returns:
- The commit ID on the source branch used when the pull request was created.
-
destinationCommitId
public final String destinationCommitId()
The commit ID of the tip of the branch specified as the destination branch when the pull request was created.
- Returns:
- The commit ID of the tip of the branch specified as the destination branch when the pull request was created.
-
mergeBase
public final String mergeBase()
The commit ID of the most recent commit that the source branch and the destination branch have in common.
- Returns:
- The commit ID of the most recent commit that the source branch and the destination branch have in common.
-
toBuilder
public PullRequestCreatedEventMetadata.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PullRequestCreatedEventMetadata.Builder,PullRequestCreatedEventMetadata>
-
builder
public static PullRequestCreatedEventMetadata.Builder builder()
-
serializableBuilderClass
public static Class<? extends PullRequestCreatedEventMetadata.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
-
-