Package com.amazonaws.xray.entities
Enum TraceHeader.SampleDecision
- java.lang.Object
-
- java.lang.Enum<TraceHeader.SampleDecision>
-
- com.amazonaws.xray.entities.TraceHeader.SampleDecision
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TraceHeader.SampleDecision>
- Enclosing class:
- TraceHeader
public static enum TraceHeader.SampleDecision extends java.lang.Enum<TraceHeader.SampleDecision>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_SAMPLED
REQUESTED
SAMPLED
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TraceHeader.SampleDecision
fromString(java.lang.String text)
java.lang.String
toString()
static TraceHeader.SampleDecision
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TraceHeader.SampleDecision[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SAMPLED
public static final TraceHeader.SampleDecision SAMPLED
-
NOT_SAMPLED
public static final TraceHeader.SampleDecision NOT_SAMPLED
-
UNKNOWN
public static final TraceHeader.SampleDecision UNKNOWN
-
REQUESTED
public static final TraceHeader.SampleDecision REQUESTED
-
-
Method Detail
-
values
public static TraceHeader.SampleDecision[] 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 (TraceHeader.SampleDecision c : TraceHeader.SampleDecision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TraceHeader.SampleDecision 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<TraceHeader.SampleDecision>
-
fromString
public static TraceHeader.SampleDecision fromString(java.lang.String text)
-
-