Module com.github.copilot.sdk.java
Package com.github.copilot.sdk.generated
Enum Class SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType
java.lang.Object
java.lang.Enum<SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType>
com.github.copilot.sdk.generated.SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType
- All Implemented Interfaces:
Serializable,Comparable<SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType>,Constable
- Enclosing class:
- SessionShutdownEvent.SessionShutdownEventData
public static enum SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType
extends Enum<SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType>
Whether the session ended normally ("routine") or due to a crash/fatal error ("error")
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ROUTINE
public static final SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType ROUTINETheroutinevariant. -
ERROR
public static final SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType ERRORTheerrorvariant.
-
-
Method Details
-
values
public static SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType[] values()Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
public static SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType valueOf(String name) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
fromValue
public static SessionShutdownEvent.SessionShutdownEventData.SessionShutdownEventDataShutdownType fromValue(String value)
-