@Entity public class VariableDefinitionImpl extends BambooEntityObject implements VariableDefinition
Modifier and Type | Field and Description |
---|---|
static long |
KEY_MAX_LENGTH |
ORDERING
Constructor and Description |
---|
VariableDefinitionImpl() |
VariableDefinitionImpl(String key,
String value,
Plan plan,
VariableType variableType) |
VariableDefinitionImpl(VariableDefinition other) |
Modifier and Type | Method and Description |
---|---|
static VariableDefinition |
clone(@NotNull VariableDefinition input) |
@Nullable Long |
getDeploymentVersionId() |
@Nullable Long |
getEnvironmentId() |
@NotNull String |
getKey()
Variable key as defined in UI
|
Plan |
getPlan() |
@Nullable Long |
getProjectId() |
String |
getValue()
Variable value as set in UI
|
VariableType |
getVariableType()
VariableType shows the source of variable value as it was evaluated before build execution |
void |
setDeploymentVersionId(@Nullable Long deploymentVersionId) |
void |
setEnvironmentId(@Nullable Long environmentId) |
void |
setKey(String key) |
void |
setPlan(Plan plan) |
void |
setProjectId(Long projectId) |
void |
setValue(String value) |
void |
setVariableType(VariableType variableType) |
String |
toString() |
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
setId
getId
public static final long KEY_MAX_LENGTH
public VariableDefinitionImpl()
public VariableDefinitionImpl(String key, String value, Plan plan, VariableType variableType)
public VariableDefinitionImpl(VariableDefinition other)
public static VariableDefinition clone(@NotNull @NotNull VariableDefinition input)
@NotNull public @NotNull String getKey()
VariableDefinitionContext
getKey
in interface VariableDefinitionContext
getKey
in interface VariableDefinitionIdentifier
public void setKey(String key)
setKey
in interface VariableDefinitionContext
public String getValue()
VariableDefinitionContext
getValue
in interface VariableDefinitionContext
getValue
in interface VariableDefinitionIdentifier
public void setValue(String value)
setValue
in interface VariableDefinitionContext
public VariableType getVariableType()
VariableDefinitionContext
VariableType
shows the source of variable value as it was evaluated before build executiongetVariableType
in interface VariableDefinitionContext
getVariableType
in interface VariableDefinitionIdentifier
public void setVariableType(VariableType variableType)
setVariableType
in interface VariableDefinitionContext
public Plan getPlan()
getPlan
in interface VariableDefinition
Plan
or null if not of VariableType.PLAN
typepublic void setPlan(Plan plan)
setPlan
in interface VariableDefinition
@Nullable public @Nullable Long getEnvironmentId()
getEnvironmentId
in interface VariableDefinition
VariableType.ENVIRONMENT
typepublic void setEnvironmentId(@Nullable @Nullable Long environmentId)
setEnvironmentId
in interface VariableDefinition
@Nullable public @Nullable Long getDeploymentVersionId()
getDeploymentVersionId
in interface VariableDefinition
VariableType.VERSION
typepublic void setDeploymentVersionId(@Nullable @Nullable Long deploymentVersionId)
setDeploymentVersionId
in interface VariableDefinition
@Nullable public @Nullable Long getProjectId()
getProjectId
in interface VariableDefinition
Project
or null if not of VariableType.PROJECT
typepublic void setProjectId(Long projectId)
setProjectId
in interface VariableDefinition
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.