public enum SamSessionErrorReason extends Enum<SamSessionErrorReason>
Java class for SamSessionError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="SamSessionError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="COULD_NOT_REGISTER_SESSION"/>
<enumeration value="MALFORMED_SESSION_ID"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
COULD_NOT_REGISTER_SESSION
SAM session could not be registered for monitoring.
|
MALFORMED_SESSION_ID
User specified an invalid format for a session ID.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested
API version.
|
| Modifier and Type | Method and Description |
|---|---|
static SamSessionErrorReason |
fromValue(String v) |
String |
value() |
static SamSessionErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SamSessionErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SamSessionErrorReason COULD_NOT_REGISTER_SESSION
public static final SamSessionErrorReason MALFORMED_SESSION_ID
Session IDs are UUIDs and look like "123e4567-e89b-12d3-a456-426655440000".
public static final SamSessionErrorReason UNKNOWN
public static SamSessionErrorReason[] values()
for (SamSessionErrorReason c : SamSessionErrorReason.values()) System.out.println(c);
public static SamSessionErrorReason 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 static SamSessionErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.