Class Repository
- All Implemented Interfaces:
Serializable
,Cloneable
Object representing a repository.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The AWS account ID associated with the registry that contains the repository.The Amazon Resource Name (ARN) that identifies the repository.The name of the repository.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.toString()
Returns a string representation of this object; useful for testing and debugging.withRegistryId
(String registryId) The AWS account ID associated with the registry that contains the repository.withRepositoryArn
(String repositoryArn) The Amazon Resource Name (ARN) that identifies the repository.withRepositoryName
(String repositoryName) The name of the repository.withRepositoryUri
(String repositoryUri) The URI for the repository.
-
Constructor Details
-
Repository
public Repository()
-
-
Method Details
-
setRepositoryArn
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
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
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
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
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
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
The name of the repository.
- Parameters:
repositoryName
- The name of the repository.
-
getRepositoryName
The name of the repository.
- Returns:
- The name of the repository.
-
withRepositoryName
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-