Class Revision
- java.lang.Object
-
- software.amazon.awssdk.services.codeconnections.model.Revision
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Revision.Builder,Revision>
@Generated("software.amazon.awssdk:codegen") public final class Revision extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Revision.Builder,Revision>
Information about the revision for a specific sync event, such as the branch, owner ID, and name of the repository.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRevision.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbranch()The branch name for a specific revision.static Revision.Builderbuilder()Stringdirectory()The directory, if any, for a specific revision.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringownerId()The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.ProviderTypeproviderType()The provider type for a revision, such as GitHub.StringproviderTypeAsString()The provider type for a revision, such as GitHub.StringrepositoryName()The repository name for a specific revision.List<SdkField<?>>sdkFields()static Class<? extends Revision.Builder>serializableBuilderClass()Stringsha()The SHA, such as the commit ID, for a specific revision.Revision.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
-
branch
public final String branch()
The branch name for a specific revision.
- Returns:
- The branch name for a specific revision.
-
directory
public final String directory()
The directory, if any, for a specific revision.
- Returns:
- The directory, if any, for a specific revision.
-
ownerId
public final String ownerId()
The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.
- Returns:
- The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.
-
repositoryName
public final String repositoryName()
The repository name for a specific revision.
- Returns:
- The repository name for a specific revision.
-
providerType
public final ProviderType providerType()
The provider type for a revision, such as GitHub.
If the service returns an enum value that is not available in the current SDK version,
providerTypewill returnProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromproviderTypeAsString().- Returns:
- The provider type for a revision, such as GitHub.
- See Also:
ProviderType
-
providerTypeAsString
public final String providerTypeAsString()
The provider type for a revision, such as GitHub.
If the service returns an enum value that is not available in the current SDK version,
providerTypewill returnProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromproviderTypeAsString().- Returns:
- The provider type for a revision, such as GitHub.
- See Also:
ProviderType
-
sha
public final String sha()
The SHA, such as the commit ID, for a specific revision.
- Returns:
- The SHA, such as the commit ID, for a specific revision.
-
toBuilder
public Revision.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Revision.Builder,Revision>
-
builder
public static Revision.Builder builder()
-
serializableBuilderClass
public static Class<? extends Revision.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.
-
-