Package com.atlan.model.typedefs
Class EnumDef
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.typedefs.TypeDef
com.atlan.model.typedefs.EnumDef
- All Implemented Interfaces:
Serializable
Structural definition of an enumeration.
Note that unlike other type definitions, enumerations do NOT use hashed internal string IDs. Their
name is precisely the same as the name viewable in the UI.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Structure for definition of a valid value in an enumeration.static class
EnumDef.EnumDefBuilder<C extends EnumDef,
B extends EnumDef.EnumDefBuilder<C, B>> Nested classes/interfaces inherited from class com.atlan.model.typedefs.TypeDef
TypeDef.TypeDefBuilder<C extends TypeDef,
B extends TypeDef.TypeDefBuilder<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
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnumDef.EnumDefBuilder<?,
?> builder()
protected boolean
create()
Create this enumeration definition in Atlan.create
(AtlanClient client) Create this enumeration definition in Atlan.static EnumDef.EnumDefBuilder<?,
?> Builds the minimal object necessary to create an enumeration definition.boolean
Fixed category for enum typedefs.Individual valid values for the enumeration.Translate the element definitions in this enumeration into a simple list of strings.int
hashCode()
static void
purge
(AtlanClient client, String displayName) Hard-deletes (purges) an enumeration by its human-readable name.static void
Hard-deletes (purges) an enumeration by its human-readable name.toString()
update()
Update this enumeration definition in Atlan.update
(AtlanClient client) Update this enumeration definition in Atlan.static EnumDef.EnumDefBuilder<?,
?> updater
(AtlanClient client, String displayName, List<String> values, boolean replaceExisting) Builds the minimal object necessary to update an enumeration definition.static EnumDef.EnumDefBuilder<?,
?> Builds the minimal object necessary to update an enumeration definition.Methods inherited from class com.atlan.model.typedefs.TypeDef
getAttributeDefs, getCreatedBy, getCreateTime, getDescription, getDisplayName, getGuid, getName, getServiceType, getTypeVersion, getUpdatedBy, getUpdateTime, getVersion
Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Constructor Details
-
EnumDef
-
-
Method Details
-
getValidValues
Translate the element definitions in this enumeration into a simple list of strings.- Returns:
- list of valid values for the enumeration
-
creator
Builds the minimal object necessary to create an enumeration definition.- Parameters:
displayName
- the human-readable name for the enumerationvalues
- the list of valid values (as strings) for the enumeration- Returns:
- the minimal request necessary to create the enumeration typedef, as a builder
-
updater
public static EnumDef.EnumDefBuilder<?,?> updater(String displayName, List<String> values, boolean replaceExisting) throws AtlanException Builds the minimal object necessary to update an enumeration definition.- Parameters:
displayName
- the human-readable name for the enumerationvalues
- the list of additional valid values (as strings) to add to the existing enumerationreplaceExisting
- if true, will replace all existing values in the enumeration with the new ones; or if false the new ones will be appended to the existing set- Returns:
- the minimal request necessary to update the enumeration typedef, as a builder
- Throws:
AtlanException
- on any API issues related to retrieving the existing enumeration
-
updater
public static EnumDef.EnumDefBuilder<?,?> updater(AtlanClient client, String displayName, List<String> values, boolean replaceExisting) throws AtlanException Builds the minimal object necessary to update an enumeration definition.- Parameters:
client
- connectivity to the Atlan tenant on which to update the enumerationdisplayName
- the human-readable name for the enumerationvalues
- the list of additional valid values (as strings) to add to the existing enumerationreplaceExisting
- if true, will replace all existing values in the enumeration with the new ones; or if false the new ones will be appended to the existing set- Returns:
- the minimal request necessary to update the enumeration typedef, as a builder
- Throws:
AtlanException
- on any API issues related to retrieving the existing enumeration
-
create
Create this enumeration definition in Atlan.- Returns:
- the result of the creation, or null if the creation failed
- Throws:
AtlanException
- on any API communication issues
-
create
Create this enumeration definition in Atlan.- Parameters:
client
- connectivity to the Atlan tenant on which to create the enumeration- Returns:
- the result of the creation, or null if the creation failed
- Throws:
AtlanException
- on any API communication issues
-
update
Update this enumeration definition in Atlan.- Returns:
- the result of the update, or null if the update failed
- Throws:
AtlanException
- on any API communication issues
-
update
Update this enumeration definition in Atlan.- Parameters:
client
- connectivity to the Atlan tenant on which to update the enumeration- Returns:
- the result of the update, or null if the update failed
- Throws:
AtlanException
- on any API communication issues
-
purge
Hard-deletes (purges) an enumeration by its human-readable name. This operation is irreversible. If there are any existing enumeration instances, this operation will fail.- Parameters:
displayName
- human-readable name of the enumeration- Throws:
AtlanException
- on any error during the API invocation
-
purge
Hard-deletes (purges) an enumeration by its human-readable name. This operation is irreversible. If there are any existing enumeration instances, this operation will fail.- Parameters:
client
- connectivity to the Atlan tenant from which to purge the enumerationdisplayName
- human-readable name of the enumeration- Throws:
AtlanException
- on any error during the API invocation
-
builder
-
toBuilder
-
getElementDefs
Individual valid values for the enumeration. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
Description copied from class:AtlanObject
-
getCategory
Fixed category for enum typedefs.- Overrides:
getCategory
in classTypeDef
-