Class Repository
- java.lang.Object
-
- com.amazonaws.services.ecr.model.Repository
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Repository extends Object implements Serializable, Cloneable
Object representing a repository.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Repository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Repository
clone()
boolean
equals(Object obj)
String
getRegistryId()
The AWS account ID associated with the registry that contains the repository.String
getRepositoryArn()
The Amazon Resource Name (ARN) that identifies the repository.String
getRepositoryName()
The name of the repository.String
getRepositoryUri()
The URI for the repository.int
hashCode()
void
setRegistryId(String registryId)
The AWS account ID associated with the registry that contains the repository.void
setRepositoryArn(String repositoryArn)
The Amazon Resource Name (ARN) that identifies the repository.void
setRepositoryName(String repositoryName)
The name of the repository.void
setRepositoryUri(String repositoryUri)
The URI for the repository.String
toString()
Returns a string representation of this object; useful for testing and debugging.Repository
withRegistryId(String registryId)
The AWS account ID associated with the registry that contains the repository.Repository
withRepositoryArn(String repositoryArn)
The Amazon Resource Name (ARN) that identifies the repository.Repository
withRepositoryName(String repositoryName)
The name of the repository.Repository
withRepositoryUri(String repositoryUri)
The URI for the repository.
-
-
-
Method Detail
-
setRepositoryArn
public void setRepositoryArn(String repositoryArn)
The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the
arn:aws:ecr
namespace, followed by the region of the repository, the AWS account ID of the repository owner, the repository namespace, and then the repository name. For example,arn:aws:ecr:region:012345678910:repository/test
.- Parameters:
repositoryArn
- The Amazon Resource Name (ARN) that identifies the repository. The ARN contains thearn:aws:ecr
namespace, followed by the region of the repository, the AWS account ID of the repository owner, the repository namespace, and then the repository name. For example,arn:aws:ecr:region:012345678910:repository/test
.
-
getRepositoryArn
public String getRepositoryArn()
The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the
arn:aws:ecr
namespace, followed by the region of the repository, the AWS account ID of the repository owner, the repository namespace, and then the repository name. For example,arn:aws:ecr:region:012345678910:repository/test
.- Returns:
- The Amazon Resource Name (ARN) that identifies the repository.
The ARN contains the
arn:aws:ecr
namespace, followed by the region of the repository, the AWS account ID of the repository owner, the repository namespace, and then the repository name. For example,arn:aws:ecr:region:012345678910:repository/test
.
-
withRepositoryArn
public Repository withRepositoryArn(String repositoryArn)
The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the
arn:aws:ecr
namespace, followed by the region of the repository, the AWS account ID of the repository owner, the repository namespace, and then the repository name. For example,arn:aws:ecr:region:012345678910:repository/test
.- Parameters:
repositoryArn
- The Amazon Resource Name (ARN) that identifies the repository. The ARN contains thearn:aws:ecr
namespace, followed by the region of the repository, the AWS account ID of the repository owner, the repository namespace, and then the repository name. For example,arn:aws:ecr:region:012345678910:repository/test
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRegistryId
public void setRegistryId(String registryId)
The AWS account ID associated with the registry that contains the repository.
- Parameters:
registryId
- The AWS account ID associated with the registry that contains the repository.
-
getRegistryId
public String getRegistryId()
The AWS account ID associated with the registry that contains the repository.
- Returns:
- The AWS account ID associated with the registry that contains the repository.
-
withRegistryId
public Repository withRegistryId(String registryId)
The AWS account ID associated with the registry that contains the repository.
- Parameters:
registryId
- The AWS account ID associated with the registry that contains the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRepositoryName
public void setRepositoryName(String repositoryName)
The name of the repository.
- Parameters:
repositoryName
- The name of the repository.
-
getRepositoryName
public String getRepositoryName()
The name of the repository.
- Returns:
- The name of the repository.
-
withRepositoryName
public Repository withRepositoryName(String repositoryName)
The name of the repository.
- Parameters:
repositoryName
- The name of the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRepositoryUri
public void setRepositoryUri(String repositoryUri)
The URI for the repository. You can use this URI for Docker
push
andpull
operations.- Parameters:
repositoryUri
- The URI for the repository. You can use this URI for Dockerpush
andpull
operations.
-
getRepositoryUri
public String getRepositoryUri()
The URI for the repository. You can use this URI for Docker
push
andpull
operations.- Returns:
- The URI for the repository. You can use this URI for Docker
push
andpull
operations.
-
withRepositoryUri
public Repository withRepositoryUri(String repositoryUri)
The URI for the repository. You can use this URI for Docker
push
andpull
operations.- Parameters:
repositoryUri
- The URI for the repository. You can use this URI for Dockerpush
andpull
operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Repository clone()
-
-