Enum Class IPVersion
- All Implemented Interfaces:
ODataLiteral, Serializable, Comparable<IPVersion>, Constable
@Generated("io.skipcheck.tm1.codegen")
@Since("11.0.0")
public enum IPVersion
extends Enum<IPVersion>
implements ODataLiteral
The
IPVersion enum type of the TM1 REST API.
Generated from $metadata; the fallback constant stands for a value this client doesn't know, such as one a newer server added. It's never sent.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic IPVersionThe constant for a value TM1 sent.@Nullable Stringjson()The value as TM1 writes it.The value as an OData literal, for filters:ibm.tm1.api.v1.IPVersion'IPv4'.static IPVersionReturns the enum constant of this class with the specified name.static IPVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
I_PV4
IPv4. -
I_PV6
IPv6. -
DUAL
Dual. -
UNKNOWN
A value this client doesn't know.
-
-
Method Details
-
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
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
-
json
The value as TM1 writes it.- Returns:
- the value, or
nullfor the fallback constant
-
odataLiteral
The value as an OData literal, for filters:ibm.tm1.api.v1.IPVersion'IPv4'.- Specified by:
odataLiteralin interfaceODataLiteral- Returns:
- the literal
- Throws:
IllegalStateException- forUNKNOWN, which has none
-
fromJson
-