Class BatchGetRepositoriesResult
- java.lang.Object
-
- com.amazonaws.services.codecommit.model.BatchGetRepositoriesResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class BatchGetRepositoriesResult extends Object implements Serializable, Cloneable
Represents the output of a batch get repositories operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BatchGetRepositoriesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchGetRepositoriesResult
clone()
boolean
equals(Object obj)
List<RepositoryMetadata>
getRepositories()
A list of repositories returned by the batch get repositories operation.List<String>
getRepositoriesNotFound()
Returns a list of repository names for which information could not be found.int
hashCode()
void
setRepositories(Collection<RepositoryMetadata> repositories)
A list of repositories returned by the batch get repositories operation.void
setRepositoriesNotFound(Collection<String> repositoriesNotFound)
Returns a list of repository names for which information could not be found.String
toString()
Returns a string representation of this object; useful for testing and debugging.BatchGetRepositoriesResult
withRepositories(RepositoryMetadata... repositories)
A list of repositories returned by the batch get repositories operation.BatchGetRepositoriesResult
withRepositories(Collection<RepositoryMetadata> repositories)
A list of repositories returned by the batch get repositories operation.BatchGetRepositoriesResult
withRepositoriesNotFound(String... repositoriesNotFound)
Returns a list of repository names for which information could not be found.BatchGetRepositoriesResult
withRepositoriesNotFound(Collection<String> repositoriesNotFound)
Returns a list of repository names for which information could not be found.
-
-
-
Method Detail
-
getRepositories
public List<RepositoryMetadata> getRepositories()
A list of repositories returned by the batch get repositories operation.
- Returns:
- A list of repositories returned by the batch get repositories operation.
-
setRepositories
public void setRepositories(Collection<RepositoryMetadata> repositories)
A list of repositories returned by the batch get repositories operation.
- Parameters:
repositories
- A list of repositories returned by the batch get repositories operation.
-
withRepositories
public BatchGetRepositoriesResult withRepositories(RepositoryMetadata... repositories)
A list of repositories returned by the batch get repositories operation.
NOTE: This method appends the values to the existing list (if any). Use
setRepositories(java.util.Collection)
orwithRepositories(java.util.Collection)
if you want to override the existing values.- Parameters:
repositories
- A list of repositories returned by the batch get repositories operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRepositories
public BatchGetRepositoriesResult withRepositories(Collection<RepositoryMetadata> repositories)
A list of repositories returned by the batch get repositories operation.
- Parameters:
repositories
- A list of repositories returned by the batch get repositories operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRepositoriesNotFound
public List<String> getRepositoriesNotFound()
Returns a list of repository names for which information could not be found.
- Returns:
- Returns a list of repository names for which information could not be found.
-
setRepositoriesNotFound
public void setRepositoriesNotFound(Collection<String> repositoriesNotFound)
Returns a list of repository names for which information could not be found.
- Parameters:
repositoriesNotFound
- Returns a list of repository names for which information could not be found.
-
withRepositoriesNotFound
public BatchGetRepositoriesResult withRepositoriesNotFound(String... repositoriesNotFound)
Returns a list of repository names for which information could not be found.
NOTE: This method appends the values to the existing list (if any). Use
setRepositoriesNotFound(java.util.Collection)
orwithRepositoriesNotFound(java.util.Collection)
if you want to override the existing values.- Parameters:
repositoriesNotFound
- Returns a list of repository names for which information could not be found.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRepositoriesNotFound
public BatchGetRepositoriesResult withRepositoriesNotFound(Collection<String> repositoriesNotFound)
Returns a list of repository names for which information could not be found.
- Parameters:
repositoriesNotFound
- Returns a list of repository names for which information could not be found.- 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 BatchGetRepositoriesResult clone()
-
-