Package io.micronaut.context.env
Enum ComputePlatform
- java.lang.Object
-
- java.lang.Enum<ComputePlatform>
-
- io.micronaut.context.env.ComputePlatform
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ComputePlatform>
public enum ComputePlatform extends java.lang.Enum<ComputePlatform>
- Since:
- 1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMAZON_EC2
Amazon EC2.AZURE
Microsoft Azure.BARE_METAL
Cloud or non cloud provider on bare metal (unknown).DIGITAL_OCEAN
Digital Ocean.GOOGLE_COMPUTE
Google Compute Platform.IBM
IBM Cloud.ORACLE_CLOUD
Oracle Cloud.OTHER
Other.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComputePlatform
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ComputePlatform[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GOOGLE_COMPUTE
public static final ComputePlatform GOOGLE_COMPUTE
Google Compute Platform.
-
AMAZON_EC2
public static final ComputePlatform AMAZON_EC2
Amazon EC2.
-
AZURE
public static final ComputePlatform AZURE
Microsoft Azure.
-
ORACLE_CLOUD
public static final ComputePlatform ORACLE_CLOUD
Oracle Cloud.
-
DIGITAL_OCEAN
public static final ComputePlatform DIGITAL_OCEAN
Digital Ocean.
-
BARE_METAL
public static final ComputePlatform BARE_METAL
Cloud or non cloud provider on bare metal (unknown).
-
IBM
public static final ComputePlatform IBM
IBM Cloud.
-
OTHER
public static final ComputePlatform OTHER
Other.
-
-
Method Detail
-
values
public static ComputePlatform[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ComputePlatform c : ComputePlatform.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ComputePlatform valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-