public class VcsRepositoryIdentifier extends EntityPropertiesBuilder<VcsRepositoryIdentifierProperties>
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 and Description |
---|
VcsRepositoryIdentifier() |
VcsRepositoryIdentifier(BambooOid oid)
References repository by oid.
|
VcsRepositoryIdentifier(String name)
References repository by name.
|
Modifier and Type | Method and Description |
---|---|
protected VcsRepositoryIdentifierProperties |
build() |
VcsRepositoryIdentifier |
name(String name)
References repository by name.
|
VcsRepositoryIdentifier |
oid(BambooOid oid)
References repository by oid.
|
VcsRepositoryIdentifier |
oid(String oid)
References repository by oid.
|
public VcsRepositoryIdentifier() throws PropertiesValidationException
PropertiesValidationException
public VcsRepositoryIdentifier(@NotNull String name) throws PropertiesValidationException
PropertiesValidationException
public VcsRepositoryIdentifier(@NotNull BambooOid oid) throws PropertiesValidationException
In many contexts, e.g. when linking repository to a plan, it will be matched to both repository's oid and parent oid.
PropertiesValidationException
public VcsRepositoryIdentifier name(@NotNull String name) throws PropertiesValidationException
PropertiesValidationException
public VcsRepositoryIdentifier oid(@NotNull String oid) throws PropertiesValidationException
In many contexts, e.g. when linking repository to a plan, it will be matched to both repository's oid and parent oid.
PropertiesValidationException
public VcsRepositoryIdentifier oid(@NotNull BambooOid oid) throws PropertiesValidationException
In many contexts, e.g. when linking repository to a plan, it will be matched to both repository's oid and parent oid.
PropertiesValidationException
protected VcsRepositoryIdentifierProperties build() throws PropertiesValidationException
build
in class EntityPropertiesBuilder<VcsRepositoryIdentifierProperties>
PropertiesValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.