com.baidubce.services.bcc.model.instance
Enum InstanceType

java.lang.Object
  extended by java.lang.Enum<InstanceType>
      extended by com.baidubce.services.bcc.model.instance.InstanceType
All Implemented Interfaces:
Serializable, Comparable<InstanceType>

public enum InstanceType
extends Enum<InstanceType>

The enum class to enumerate all the supported instance type in SDK.


Enum Constant Summary
C1
          The compute optimized instance.
F1
          The fpga instance.
G1
          The gpu instance.
N1
          The instance of normal purpose.
N2
          The second Enhanced instance of normal purpose for N1.
N3
          The third Enhanced instance of normal purpose using Intel Skylake.
S1
          The storage optimized instance.
 
Method Summary
static InstanceType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static InstanceType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

N1

public static final InstanceType N1
The instance of normal purpose.


N2

public static final InstanceType N2
The second Enhanced instance of normal purpose for N1.


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

Method Detail

values

public static InstanceType[] 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 (InstanceType c : InstanceType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static InstanceType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2018. All rights reserved.