Class RepositorySummary
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RepositorySummary.Builder,RepositorySummary>
A repository that a Git connection can access.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositorySummary.Builderbuilder()final StringcloneUrl()The HTTPS URL for cloning the repository with Git.final StringThe repository's default branch, such as main.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringname()The name of the repository.final Stringowner()The account that the Git connection is for.final GitProviderprovider()The Git provider.final StringThe Git provider.final StringThe full path of the repository in the Git provider, for example my-org/my-app.static Class<? extends RepositorySummary.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final InstantThe time when the repository last changed in the Git provider.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
provider
The Git provider.
If the service returns an enum value that is not available in the current SDK version,
providerwill returnGitProvider.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromproviderAsString().- Returns:
- The Git provider.
- See Also:
-
providerAsString
The Git provider.
If the service returns an enum value that is not available in the current SDK version,
providerwill returnGitProvider.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromproviderAsString().- Returns:
- The Git provider.
- See Also:
-
owner
The account that the Git connection is for. The value depends on the provider:
-
For GitHub, this is the user or organization name.
-
For GitLab, this is the user name.
- Returns:
- The account that the Git connection is for. The value depends on the provider:
-
For GitHub, this is the user or organization name.
-
For GitLab, this is the user name.
-
-
-
name
-
defaultBranch
The repository's default branch, such as main.
- Returns:
- The repository's default branch, such as main.
-
repositoryPath
The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app.
- Returns:
- The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app.
-
updatedAt
The time when the repository last changed in the Git provider.
- Returns:
- The time when the repository last changed in the Git provider.
-
cloneUrl
The HTTPS URL for cloning the repository with Git.
- Returns:
- The HTTPS URL for cloning the repository with Git.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RepositorySummary.Builder,RepositorySummary> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-