public class Project extends RootEntityPropertiesBuilder<ProjectProperties>
| Constructor and Description |
|---|
Project()
Specifies Bamboo project.
|
| Modifier and Type | Method and Description |
|---|---|
protected ProjectProperties |
build() |
Project |
description(@Nullable String description)
Sets a project description.
|
BambooKey |
getKey()
Returns project's key.
|
String |
getName()
Returns project's name.
|
BambooOid |
getOid()
Returns project's oid.
|
String |
humanReadableId()
Entity type and id representation that is shown to human.
|
String |
humanReadableType()
Entity type that is shown to human.
|
Project |
key(@Nullable BambooKey key)
Sets a project key.
|
Project |
key(@Nullable String key)
Sets a project key.
|
Project |
name(@NotNull String name)
Sets a project name.
|
Project |
oid(@Nullable BambooOid oid)
Sets a project's oid.
|
Project |
oid(@Nullable String oid)
Sets a project's oid.
|
Project |
repositories(VcsRepository<?,?>... repositories)
Adds project repositories.
|
Project |
sharedCredentials(SharedCredentials<?,?>... credentials)
Adds project shared credentials.
|
Project |
variables(Variable... variables)
Adds project variables.
|
public static final String TYPE
public Project()
throws PropertiesValidationException
PropertiesValidationExceptionpublic Project name(@NotNull @NotNull String name) throws PropertiesValidationException
PropertiesValidationExceptionpublic Project key(@Nullable @Nullable String key) throws PropertiesValidationException
PropertiesValidationExceptionpublic Project key(@Nullable @Nullable BambooKey key) throws PropertiesValidationException
PropertiesValidationExceptionpublic Project description(@Nullable @Nullable String description) throws PropertiesValidationException
PropertiesValidationExceptionpublic Project oid(@Nullable @Nullable String oid) throws PropertiesValidationException
PropertiesValidationExceptionpublic Project oid(@Nullable @Nullable BambooOid oid) throws PropertiesValidationException
PropertiesValidationExceptionpublic Project sharedCredentials(@NotNull SharedCredentials<?,?>... credentials)
public Project repositories(@NotNull VcsRepository<?,?>... repositories)
public BambooOid getOid()
IllegalStateException - if oid is undefinedpublic BambooKey getKey()
IllegalStateException - if key is undefinedpublic String getName()
protected ProjectProperties build() throws PropertiesValidationException
build in class EntityPropertiesBuilder<ProjectProperties>PropertiesValidationExceptionpublic String humanReadableType()
RootEntityPropertiesBuilderhumanReadableType in class RootEntityPropertiesBuilder<ProjectProperties>public String humanReadableId()
RootEntityPropertiesBuilderhumanReadableId in class RootEntityPropertiesBuilder<ProjectProperties>Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.