Class RepositoryMetadata
- java.lang.Object
-
- com.amazonaws.services.codecommit.model.RepositoryMetadata
-
- All Implemented Interfaces:
Serializable,Cloneable
public class RepositoryMetadata extends Object implements Serializable, Cloneable
Information about a repository.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RepositoryMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryMetadataclone()booleanequals(Object obj)StringgetAccountId()The ID of the AWS account associated with the repository.StringgetArn()The Amazon Resource Name (ARN) of the repository.StringgetCloneUrlHttp()The URL to use for cloning the repository over HTTPS.StringgetCloneUrlSsh()The URL to use for cloning the repository over SSH.DategetCreationDate()The date and time the repository was created, in timestamp format.StringgetDefaultBranch()The repository's default branch name.DategetLastModifiedDate()The date and time the repository was last modified, in timestamp format.StringgetRepositoryDescription()A comment or description about the repository.StringgetRepositoryId()The ID of the repository.StringgetRepositoryName()The repository's name.inthashCode()voidsetAccountId(String accountId)The ID of the AWS account associated with the repository.voidsetArn(String arn)The Amazon Resource Name (ARN) of the repository.voidsetCloneUrlHttp(String cloneUrlHttp)The URL to use for cloning the repository over HTTPS.voidsetCloneUrlSsh(String cloneUrlSsh)The URL to use for cloning the repository over SSH.voidsetCreationDate(Date creationDate)The date and time the repository was created, in timestamp format.voidsetDefaultBranch(String defaultBranch)The repository's default branch name.voidsetLastModifiedDate(Date lastModifiedDate)The date and time the repository was last modified, in timestamp format.voidsetRepositoryDescription(String repositoryDescription)A comment or description about the repository.voidsetRepositoryId(String repositoryId)The ID of the repository.voidsetRepositoryName(String repositoryName)The repository's name.StringtoString()Returns a string representation of this object; useful for testing and debugging.RepositoryMetadatawithAccountId(String accountId)The ID of the AWS account associated with the repository.RepositoryMetadatawithArn(String arn)The Amazon Resource Name (ARN) of the repository.RepositoryMetadatawithCloneUrlHttp(String cloneUrlHttp)The URL to use for cloning the repository over HTTPS.RepositoryMetadatawithCloneUrlSsh(String cloneUrlSsh)The URL to use for cloning the repository over SSH.RepositoryMetadatawithCreationDate(Date creationDate)The date and time the repository was created, in timestamp format.RepositoryMetadatawithDefaultBranch(String defaultBranch)The repository's default branch name.RepositoryMetadatawithLastModifiedDate(Date lastModifiedDate)The date and time the repository was last modified, in timestamp format.RepositoryMetadatawithRepositoryDescription(String repositoryDescription)A comment or description about the repository.RepositoryMetadatawithRepositoryId(String repositoryId)The ID of the repository.RepositoryMetadatawithRepositoryName(String repositoryName)The repository's name.
-
-
-
Method Detail
-
setAccountId
public void setAccountId(String accountId)
The ID of the AWS account associated with the repository.
- Parameters:
accountId- The ID of the AWS account associated with the repository.
-
getAccountId
public String getAccountId()
The ID of the AWS account associated with the repository.
- Returns:
- The ID of the AWS account associated with the repository.
-
withAccountId
public RepositoryMetadata withAccountId(String accountId)
The ID of the AWS account associated with the repository.
- Parameters:
accountId- The ID of the AWS account associated with the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRepositoryId
public void setRepositoryId(String repositoryId)
The ID of the repository.
- Parameters:
repositoryId- The ID of the repository.
-
getRepositoryId
public String getRepositoryId()
The ID of the repository.
- Returns:
- The ID of the repository.
-
withRepositoryId
public RepositoryMetadata withRepositoryId(String repositoryId)
The ID of the repository.
- Parameters:
repositoryId- The ID of the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRepositoryName
public void setRepositoryName(String repositoryName)
The repository's name.
- Parameters:
repositoryName- The repository's name.
-
getRepositoryName
public String getRepositoryName()
The repository's name.
- Returns:
- The repository's name.
-
withRepositoryName
public RepositoryMetadata withRepositoryName(String repositoryName)
The repository's name.
- Parameters:
repositoryName- The repository's name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRepositoryDescription
public void setRepositoryDescription(String repositoryDescription)
A comment or description about the repository.
- Parameters:
repositoryDescription- A comment or description about the repository.
-
getRepositoryDescription
public String getRepositoryDescription()
A comment or description about the repository.
- Returns:
- A comment or description about the repository.
-
withRepositoryDescription
public RepositoryMetadata withRepositoryDescription(String repositoryDescription)
A comment or description about the repository.
- Parameters:
repositoryDescription- A comment or description about the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDefaultBranch
public void setDefaultBranch(String defaultBranch)
The repository's default branch name.
- Parameters:
defaultBranch- The repository's default branch name.
-
getDefaultBranch
public String getDefaultBranch()
The repository's default branch name.
- Returns:
- The repository's default branch name.
-
withDefaultBranch
public RepositoryMetadata withDefaultBranch(String defaultBranch)
The repository's default branch name.
- Parameters:
defaultBranch- The repository's default branch name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastModifiedDate
public void setLastModifiedDate(Date lastModifiedDate)
The date and time the repository was last modified, in timestamp format.
- Parameters:
lastModifiedDate- The date and time the repository was last modified, in timestamp format.
-
getLastModifiedDate
public Date getLastModifiedDate()
The date and time the repository was last modified, in timestamp format.
- Returns:
- The date and time the repository was last modified, in timestamp format.
-
withLastModifiedDate
public RepositoryMetadata withLastModifiedDate(Date lastModifiedDate)
The date and time the repository was last modified, in timestamp format.
- Parameters:
lastModifiedDate- The date and time the repository was last modified, in timestamp format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationDate
public void setCreationDate(Date creationDate)
The date and time the repository was created, in timestamp format.
- Parameters:
creationDate- The date and time the repository was created, in timestamp format.
-
getCreationDate
public Date getCreationDate()
The date and time the repository was created, in timestamp format.
- Returns:
- The date and time the repository was created, in timestamp format.
-
withCreationDate
public RepositoryMetadata withCreationDate(Date creationDate)
The date and time the repository was created, in timestamp format.
- Parameters:
creationDate- The date and time the repository was created, in timestamp format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCloneUrlHttp
public void setCloneUrlHttp(String cloneUrlHttp)
The URL to use for cloning the repository over HTTPS.
- Parameters:
cloneUrlHttp- The URL to use for cloning the repository over HTTPS.
-
getCloneUrlHttp
public String getCloneUrlHttp()
The URL to use for cloning the repository over HTTPS.
- Returns:
- The URL to use for cloning the repository over HTTPS.
-
withCloneUrlHttp
public RepositoryMetadata withCloneUrlHttp(String cloneUrlHttp)
The URL to use for cloning the repository over HTTPS.
- Parameters:
cloneUrlHttp- The URL to use for cloning the repository over HTTPS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCloneUrlSsh
public void setCloneUrlSsh(String cloneUrlSsh)
The URL to use for cloning the repository over SSH.
- Parameters:
cloneUrlSsh- The URL to use for cloning the repository over SSH.
-
getCloneUrlSsh
public String getCloneUrlSsh()
The URL to use for cloning the repository over SSH.
- Returns:
- The URL to use for cloning the repository over SSH.
-
withCloneUrlSsh
public RepositoryMetadata withCloneUrlSsh(String cloneUrlSsh)
The URL to use for cloning the repository over SSH.
- Parameters:
cloneUrlSsh- The URL to use for cloning the repository over SSH.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArn
public void setArn(String arn)
The Amazon Resource Name (ARN) of the repository.
- Parameters:
arn- The Amazon Resource Name (ARN) of the repository.
-
getArn
public String getArn()
The Amazon Resource Name (ARN) of the repository.
- Returns:
- The Amazon Resource Name (ARN) of the repository.
-
withArn
public RepositoryMetadata withArn(String arn)
The Amazon Resource Name (ARN) of the repository.
- Parameters:
arn- The Amazon Resource Name (ARN) of the repository.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RepositoryMetadata clone()
-
-