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
Constructors Constructor Description VcsRepositoryIdentifier()VcsRepositoryIdentifier(@NotNull BambooOid oid)References repository by oid.VcsRepositoryIdentifier(@NotNull java.lang.String name)References repository by name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VcsRepositoryIdentifierPropertiesbuild()VcsRepositoryIdentifiername(@NotNull java.lang.String name)References repository by name.VcsRepositoryIdentifieroid(@NotNull BambooOid oid)References repository by oid.VcsRepositoryIdentifieroid(@NotNull java.lang.String oid)References repository by oid.
-
-
-
Constructor Detail
-
VcsRepositoryIdentifier
public VcsRepositoryIdentifier() throws PropertiesValidationException- Throws:
PropertiesValidationException
-
VcsRepositoryIdentifier
public VcsRepositoryIdentifier(@NotNull @NotNull java.lang.String name) throws PropertiesValidationExceptionReferences repository by name. Name of the repository is ignored if oid is defined.- Throws:
PropertiesValidationException
-
VcsRepositoryIdentifier
public VcsRepositoryIdentifier(@NotNull @NotNull BambooOid oid) throws PropertiesValidationExceptionReferences 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 Detail
-
name
public VcsRepositoryIdentifier name(@NotNull @NotNull java.lang.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 java.lang.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
protected VcsRepositoryIdentifierProperties build() throws PropertiesValidationException
- Specified by:
buildin classEntityPropertiesBuilder<VcsRepositoryIdentifierProperties>- Throws:
PropertiesValidationException
-
-