public enum BambooYamlVersion extends Enum<BambooYamlVersion>
| Enum Constant and Description |
|---|
VERSION_1
First version, supporting only plans with very limited configuration options.
|
VERSION_2
Second version, supporting plans, deployments, plan permissions and deployment permissions.
|
| Modifier and Type | Method and Description |
|---|---|
static BambooYamlVersion |
fromVersion(String version)
Convert the given string value to an instance of this enum.
|
String |
getVersion()
The string value which is to be used in the YAML document to determine the YAML format version.
|
static BambooYamlVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BambooYamlVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BambooYamlVersion VERSION_1
public static final BambooYamlVersion VERSION_2
public static BambooYamlVersion[] values()
for (BambooYamlVersion c : BambooYamlVersion.values()) System.out.println(c);
public static BambooYamlVersion 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 String getVersion()
@NotNull public static BambooYamlVersion fromVersion(@NotNull String version) throws YamlSpecsValidationException
getVersion().YamlSpecsValidationException - if the given string is invalidCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.