@Internal public class ImmutableTaskDefinition extends Object implements TaskDefinition
TaskDefinition
implementationDISABLED, ENABLED
Constructor and Description |
---|
ImmutableTaskDefinition(@NotNull TaskDefinition taskDefinition) |
Modifier and Type | Method and Description |
---|---|
@NotNull List<TaskConditionConfig> |
getConditions() |
@NotNull Map<String,String> |
getConfiguration()
Represents the raw configuration data for this configuration.
|
long |
getId() |
BambooEntityOid |
getOid()
OID assigned to this object.
|
@NotNull String |
getPluginKey() |
@NotNull TaskRootDirectorySelector |
getRootDirectorySelector() |
@Nullable String |
getUserDescription() |
boolean |
isEnabled() |
boolean |
isFinalising() |
void |
setConditions(@NotNull List<TaskConditionConfig> conditions) |
void |
setConfiguration(@NotNull Map<String,String> configuration) |
void |
setEnabled(boolean isEnabled)
Tells bamboo whether this task should run as a part of this build or not.
|
void |
setFinalising(boolean finalising) |
void |
setOid(BambooEntityOid oid)
Assign a new
BambooEntityOid to this object. |
void |
setRootDirectorySelector(@NotNull TaskRootDirectorySelector taskRootDirectorySelector) |
void |
setUserDescription(@Nullable String userDescription) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityType
public ImmutableTaskDefinition(@NotNull @NotNull TaskDefinition taskDefinition)
@NotNull public @NotNull Map<String,String> getConfiguration()
TaskDefinition
getConfiguration
in interface TaskDefinition
public long getId()
getId
in interface TaskIdentifier
Job
@NotNull public @NotNull String getPluginKey()
getPluginKey
in interface PluginKeyProvider
getPluginKey
in interface TaskIdentifier
@Nullable public @Nullable String getUserDescription()
getUserDescription
in interface TaskIdentifier
public boolean isEnabled()
isEnabled
in interface TaskIdentifier
public boolean isFinalising()
isFinalising
in interface TaskIdentifier
@NotNull public @NotNull TaskRootDirectorySelector getRootDirectorySelector()
getRootDirectorySelector
in interface TaskDefinition
public BambooEntityOid getOid()
ImmutableEntityWithOid
BambooEntityOid.getEntityType()
should be the same as this object's
ImmutableEntityWithOid.getEntityType()
.getOid
in interface ImmutableEntityWithOid
public void setOid(BambooEntityOid oid)
EntityWithOid
BambooEntityOid
to this object. The BambooEntityOid.getEntityType()
should be the
same as this object's ImmutableEntityWithOid.getEntityType()
.setOid
in interface EntityWithOid
public void setUserDescription(@Nullable @Nullable String userDescription)
setUserDescription
in interface TaskDefinition
public void setEnabled(boolean isEnabled)
TaskDefinition
setEnabled
in interface TaskDefinition
public void setFinalising(boolean finalising)
setFinalising
in interface TaskDefinition
public void setConfiguration(@NotNull @NotNull Map<String,String> configuration)
setConfiguration
in interface TaskDefinition
public void setConditions(@NotNull @NotNull List<TaskConditionConfig> conditions)
setConditions
in interface TaskDefinition
@NotNull public @NotNull List<TaskConditionConfig> getConditions()
getConditions
in interface TaskDefinition
public void setRootDirectorySelector(@NotNull @NotNull TaskRootDirectorySelector taskRootDirectorySelector)
setRootDirectorySelector
in interface TaskDefinition
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.