Package com.atlan.model.typedefs
Class EnumDef.ElementDef
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.typedefs.EnumDef.ElementDef
- All Implemented Interfaces:
Serializable
- Enclosing class:
EnumDef
Structure for definition of a valid value in an enumeration.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEnumDef.ElementDef.ElementDefBuilder<C extends EnumDef.ElementDef,B extends EnumDef.ElementDef.ElementDefBuilder<C, B>> Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumDef.ElementDef.ElementDefBuilder<?, ?> builder()protected booleanbooleanprotected static List<EnumDef.ElementDef> Build a list of valid values from the provided list of strings.(Optional) Description of the element.Position of the element within the list of valid values.getValue()Value of the element (the valid value).inthashCode()static EnumDef.ElementDefBuild a valid value definition.toString()Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Constructor Details
-
ElementDef
-
-
Method Details
-
of
Build a valid value definition.- Parameters:
ordinal- position of the valid value definition in the overall listvalue- of the valid value- Returns:
- the valid value definition
-
from
Build a list of valid values from the provided list of strings.- Parameters:
values- to enumerate as valid values- Returns:
- a list of the valid values
-
builder
-
getValue
Value of the element (the valid value). -
getDescription
(Optional) Description of the element. -
getOrdinal
Position of the element within the list of valid values. -
equals
- Overrides:
equalsin classAtlanObject
-
canEqual
- Overrides:
canEqualin classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classAtlanObject
-
toString
Description copied from class:AtlanObject- Overrides:
toStringin classAtlanObject
-