Class VcsRepositoryIdentifier
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<VcsRepositoryIdentifierProperties>
com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier
public class VcsRepositoryIdentifier
extends EntityPropertiesBuilder<VcsRepositoryIdentifierProperties>
References a vcs repository.
The exact semantics of this class depends on the context in which it is used. In particular, possible values can be restricted only to repositories that are linked to particular plan. In other contexts a reference to any global repository is allowed.
-
Constructor Summary
ConstructorsConstructorDescriptionVcsRepositoryIdentifier
(@NotNull BambooOid oid) References repository by oid.VcsRepositoryIdentifier
(@NotNull String name) References repository by name. -
Method Summary
Modifier and TypeMethodDescriptionprotected VcsRepositoryIdentifierProperties
build()
References repository by name.References repository by oid.References repository by oid.
-
Constructor Details
-
VcsRepositoryIdentifier
- Throws:
PropertiesValidationException
-
VcsRepositoryIdentifier
References repository by name. Name of the repository is ignored if oid is defined.- Throws:
PropertiesValidationException
-
VcsRepositoryIdentifier
public VcsRepositoryIdentifier(@NotNull @NotNull BambooOid oid) throws PropertiesValidationException References repository by oid.In many contexts, e.g. when linking repository to a plan, it will be matched to both repository's oid and parent oid.
- Throws:
PropertiesValidationException
-
-
Method Details
-
name
public VcsRepositoryIdentifier name(@NotNull @NotNull String name) throws PropertiesValidationException References repository by name. Name of the repository is ignored if oid is defined.- Throws:
PropertiesValidationException
-
oid
public VcsRepositoryIdentifier oid(@NotNull @NotNull String oid) throws PropertiesValidationException References repository by oid.In many contexts, e.g. when linking repository to a plan, it will be matched to both repository's oid and parent oid.
- Throws:
PropertiesValidationException
-
oid
public VcsRepositoryIdentifier oid(@NotNull @NotNull BambooOid oid) throws PropertiesValidationException References repository by oid.In many contexts, e.g. when linking repository to a plan, it will be matched to both repository's oid and parent oid.
- Throws:
PropertiesValidationException
-
build
- Specified by:
build
in classEntityPropertiesBuilder<VcsRepositoryIdentifierProperties>
- Throws:
PropertiesValidationException
-