Class Deployment
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<T>
-
- com.atlassian.bamboo.specs.api.builders.RootEntityPropertiesBuilder<DeploymentProperties>
-
- com.atlassian.bamboo.specs.api.builders.deployment.Deployment
-
public class Deployment extends RootEntityPropertiesBuilder<DeploymentProperties>
Represents a deployment project.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE
-
Constructor Summary
Constructors Constructor Description Deployment(@NotNull PlanIdentifier plan, @NotNull java.lang.String name)Specifies a deployment project.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DeploymentPropertiesbuild()Deploymentdescription(java.lang.String description)Sets the deployment description.Deploymentenvironments(@NotNull Environment... environments)Adds the environments to the end of environments list.java.lang.StringgetName()BambooOidPropertiesgetOid()java.lang.StringhumanReadableId()Entity type and id representation that is shown to human.java.lang.StringhumanReadableType()Entity type that is shown to human.Deploymentname(@NotNull java.lang.String name)Sets the deployment name.Deploymentoid(@Nullable BambooOid oid)Sets the deployments's oid.Deploymentoid(@Nullable java.lang.String oid)Sets the deployments's oid.DeploymentreleaseNaming(@NotNull ReleaseNaming releaseNaming)
-
-
-
Field Detail
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Deployment
public Deployment(@NotNull @NotNull PlanIdentifier plan, @NotNull @NotNull java.lang.String name)Specifies a deployment project.- Parameters:
plan- plan that serves as source of artifacts and variables for this deployment projectname- name of the project
-
-
Method Detail
-
name
public Deployment name(@NotNull @NotNull java.lang.String name) throws PropertiesValidationException
Sets the deployment name.- Throws:
PropertiesValidationException
-
oid
public Deployment oid(@Nullable @Nullable java.lang.String oid) throws PropertiesValidationException
Sets the deployments's oid.If set, it is used to identify the deployment project. If a deployment with specified oid does not exist, a new one is created, otherwise it is updated.
- Throws:
PropertiesValidationException
-
oid
public Deployment oid(@Nullable @Nullable BambooOid oid) throws PropertiesValidationException
Sets the deployments's oid.If set, it is used to identify the deployment project. If a deployment with specified oid does not exist, a new one is created, otherwise it is updated.
- Throws:
PropertiesValidationException
-
description
public Deployment description(java.lang.String description)
Sets the deployment description.
-
releaseNaming
public Deployment releaseNaming(@NotNull @NotNull ReleaseNaming releaseNaming)
-
environments
public Deployment environments(@NotNull @NotNull Environment... environments)
Adds the environments to the end of environments list. The order of environments is preserved.
-
build
protected DeploymentProperties build()
- Specified by:
buildin classEntityPropertiesBuilder<DeploymentProperties>
-
humanReadableType
public java.lang.String humanReadableType()
Description copied from class:RootEntityPropertiesBuilderEntity type that is shown to human.- Specified by:
humanReadableTypein classRootEntityPropertiesBuilder<DeploymentProperties>
-
humanReadableId
public java.lang.String humanReadableId()
Description copied from class:RootEntityPropertiesBuilderEntity type and id representation that is shown to human.- Specified by:
humanReadableIdin classRootEntityPropertiesBuilder<DeploymentProperties>
-
getOid
public BambooOidProperties getOid()
-
getName
public java.lang.String getName()
-
-