枚举 InstanceType
- java.lang.Object
-
- java.lang.Enum<InstanceType>
-
- com.baidubce.services.bcc.model.instance.InstanceType
-
- 所有已实现的接口:
Serializable,Comparable<InstanceType>
public enum InstanceType extends Enum<InstanceType>
The enum class to enumerate all the supported instance type in SDK.
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static InstanceTypevalueOf(String name)返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)static InstanceType[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (InstanceType c : InstanceType.values()) System.out.println(c);
-
-
-
枚举常量详细资料
-
N1
public static final InstanceType N1
The instance of normal purpose.
-
N2
public static final InstanceType N2
The second Enhanced instance of normal purpose forN1.
-
N3
public static final InstanceType N3
The third Enhanced instance of normal purpose using Intel Skylake.
-
C1
public static final InstanceType C1
The compute optimized instance. See more information on introduction for Compute optimized BCC
-
S1
public static final InstanceType S1
The storage optimized instance. See more information on introduction for Storage optimized BCC When creating the storage optimized instance, one ephemeral disk must be created together.
-
G1
public static final InstanceType G1
The gpu instance. See more information on introduction for gpu BCC When creating the gpu instance, one or more gpu card info must be created. More gpu specification see document on the specification for gpu instance
-
F1
public static final InstanceType F1
The fpga instance. See more information on introduction for fpga BCC When creating the fpga instance, one or more fpga card info must be created. More fpga specification see document on the specification for fpga instance
-
-
方法详细资料
-
values
public static InstanceType[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (InstanceType c : InstanceType.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static InstanceType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
-