public static enum SpotInstanceRequest.Type extends Enum<SpotInstanceRequest.Type>
Enum Constant and Description |
---|
ONE_TIME |
PERSISTENT |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static SpotInstanceRequest.Type |
fromValue(String type) |
String |
toString() |
String |
value() |
static SpotInstanceRequest.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpotInstanceRequest.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpotInstanceRequest.Type ONE_TIME
public static final SpotInstanceRequest.Type PERSISTENT
public static final SpotInstanceRequest.Type UNRECOGNIZED
public static SpotInstanceRequest.Type[] values()
for (SpotInstanceRequest.Type c : SpotInstanceRequest.Type.values()) System.out.println(c);
public static SpotInstanceRequest.Type 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 value()
public String toString()
toString
in class Enum<SpotInstanceRequest.Type>
public static SpotInstanceRequest.Type fromValue(String type)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.