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
PropertiesValidationException
public Project name(@NotNull @NotNull String name) throws PropertiesValidationException
PropertiesValidationException
public Project key(@Nullable @Nullable String key) throws PropertiesValidationException
PropertiesValidationException
public Project key(@Nullable @Nullable BambooKey key) throws PropertiesValidationException
PropertiesValidationException
public Project description(@Nullable @Nullable String description) throws PropertiesValidationException
PropertiesValidationException
public Project oid(@Nullable @Nullable String oid) throws PropertiesValidationException
PropertiesValidationException
public Project oid(@Nullable @Nullable BambooOid oid) throws PropertiesValidationException
PropertiesValidationException
public 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>
PropertiesValidationException
public String humanReadableType()
RootEntityPropertiesBuilder
humanReadableType
in class RootEntityPropertiesBuilder<ProjectProperties>
public String humanReadableId()
RootEntityPropertiesBuilder
humanReadableId
in class RootEntityPropertiesBuilder<ProjectProperties>
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.