public enum PlanBranchWorkflow extends Enum<PlanBranchWorkflow>
Enum Constant and Description |
---|
BRANCH_WORKFLOW
Branch workflow indicates that Bamboo will react on VCS branches being created and/or deleted in the repository
when managing plan branches.
|
MANUAL_WORKFLOW
Manual workflow indicates that Bamboo will not react on VCS branches nor pull requests
being created and/or deleted in the repository when managing plan branches.
|
PULL_REQUEST_WORKFLOW
Pull request workflow indicates that Bamboo will react on pull requests being created and/or deleted in the
repository when managing plan branches.
|
Modifier and Type | Method and Description |
---|---|
static PlanBranchWorkflow |
defaultValue()
Returns the default workflow.
|
static PlanBranchWorkflow |
fromKey(String key)
Returns an instance of
PlanBranchWorkflow based on the passed key . |
Set<BranchIntegrationStrategy> |
getIntegrationStrategies()
Allowed integration strategies for this workflow.
|
String |
getKey()
Key to be used for storing this enum in any configuration as string.
|
static PlanBranchWorkflow |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlanBranchWorkflow[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlanBranchWorkflow BRANCH_WORKFLOW
public static final PlanBranchWorkflow MANUAL_WORKFLOW
public static final PlanBranchWorkflow PULL_REQUEST_WORKFLOW
public static PlanBranchWorkflow[] values()
for (PlanBranchWorkflow c : PlanBranchWorkflow.values()) System.out.println(c);
public static PlanBranchWorkflow valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PlanBranchWorkflow defaultValue()
@NotNull public static PlanBranchWorkflow fromKey(@NotNull String key)
PlanBranchWorkflow
based on the passed key
.key
- key of the workflowIllegalArgumentException
- if the key does not match any known workflow@NotNull public String getKey()
@NotNull public Set<BranchIntegrationStrategy> getIntegrationStrategies()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.