@Generated(value="software.amazon.awssdk:codegen") public final class RepositoryDescription extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RepositoryDescription.Builder,RepositoryDescription>
The details of a repository stored in CodeArtifact. A CodeArtifact repository contains a set of package versions,
each of which maps to a set of assets. Repositories are polyglotâa single repository can contain packages of any
supported type. Each repository exposes endpoints for fetching and publishing packages using tools like the
npm CLI, the Maven CLI (mvn), and pip. You can create up to 100 repositories
per Amazon Web Services account.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RepositoryDescription.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
administratorAccount()
The 12-digit account number of the Amazon Web Services account that manages the repository.
|
String |
arn()
The Amazon Resource Name (ARN) of the repository.
|
static RepositoryDescription.Builder |
builder() |
Instant |
createdTime()
A timestamp that represents the date and time the repository was created.
|
String |
description()
A text description of the repository.
|
String |
domainName()
The name of the domain that contains the repository.
|
String |
domainOwner()
The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<RepositoryExternalConnectionInfo> |
externalConnections()
An array of external connections associated with the repository.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasExternalConnections()
For responses, this returns true if the service returned a value for the ExternalConnections property.
|
int |
hashCode() |
boolean |
hasUpstreams()
For responses, this returns true if the service returned a value for the Upstreams property.
|
String |
name()
The name of the repository.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RepositoryDescription.Builder> |
serializableBuilderClass() |
RepositoryDescription.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<UpstreamRepositoryInfo> |
upstreams()
A list of upstream repositories to associate with the repository.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the repository.
public final String administratorAccount()
The 12-digit account number of the Amazon Web Services account that manages the repository.
public final String domainName()
The name of the domain that contains the repository.
public final String domainOwner()
The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository. It does not include dashes or spaces.
public final String arn()
The Amazon Resource Name (ARN) of the repository.
public final String description()
A text description of the repository.
public final boolean hasUpstreams()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<UpstreamRepositoryInfo> upstreams()
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasUpstreams() method.
public final boolean hasExternalConnections()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<RepositoryExternalConnectionInfo> externalConnections()
An array of external connections associated with the repository.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasExternalConnections() method.
public final Instant createdTime()
A timestamp that represents the date and time the repository was created.
public RepositoryDescription.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RepositoryDescription.Builder,RepositoryDescription>public static RepositoryDescription.Builder builder()
public static Class<? extends RepositoryDescription.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.