Package com.atlan.model.typedefs
Class CustomMetadataDef
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.typedefs.TypeDef
com.atlan.model.typedefs.CustomMetadataDef
- All Implemented Interfaces:
Serializable
Structural definition of custom metadata.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
CustomMetadataDef.CustomMetadataDefBuilder<C extends CustomMetadataDef,
B extends CustomMetadataDef.CustomMetadataDefBuilder<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
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomMetadataDef.CustomMetadataDefBuilder<?,
?> builder()
protected boolean
create()
Create this custom metadata definition in Atlan.create
(AtlanClient client) Create this custom metadata definition in Atlan.static CustomMetadataDef.CustomMetadataDefBuilder<?,
?> Builds the minimal object necessary to create a custom metadata definition.boolean
Fixed category for custom metadata typedefs.Options for the custom metadata.int
hashCode()
static void
purge
(AtlanClient client, String displayName) Hard-deletes (purges) a custom metadata definition by its human-readable name.static void
Hard-deletes (purges) a custom metadata definition by its human-readable name.toString()
update()
Update this custom metadata definition in Atlan.update
(AtlanClient client) Update this custom metadata definition in Atlan.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
-
CustomMetadataDef
-
-
Method Details
-
creator
Builds the minimal object necessary to create a custom metadata definition. Note: without any enrichment, this will create a custom metadata set with no attributes. This is valid, but probably not useful for anything!- Parameters:
displayName
- the human-readable name for the custom metadata set- Returns:
- the minimal request necessary to create the custom metadata typedef, as a builder
-
create
Create this custom metadata 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 custom metadata definition in Atlan.- Parameters:
client
- connectivity to the Atlan tenant on which to create the custom metadata- Returns:
- the result of the creation, or null if the creation failed
- Throws:
AtlanException
- on any API communication issues
-
update
Update this custom metadata definition in Atlan. Note: there are many restrictions on what you can / should update, so this should really be treated as an internal method. (This will also force a refresh of the custom metadata cache.)- Returns:
- the result of the update, or null if the update failed
- Throws:
AtlanException
- on any API communication issues
-
update
Update this custom metadata definition in Atlan. Note: there are many restrictions on what you can / should update, so this should really be treated as an internal method. (This will also force a refresh of the custom metadata cache.)- Parameters:
client
- connectivity to the Atlan tenant on which to update the custom metadata- Returns:
- the result of the update, or null if the update failed
- Throws:
AtlanException
- on any API communication issues
-
purge
Hard-deletes (purges) a custom metadata definition by its human-readable name. This operation is irreversible. If there are any existing uses of the custom metadata on an asset, this operation will fail.- Parameters:
displayName
- human-readable name of the custom metadata definition- Throws:
AtlanException
- on any error during the API invocation
-
purge
Hard-deletes (purges) a custom metadata definition by its human-readable name. This operation is irreversible. If there are any existing uses of the custom metadata on an asset, this operation will fail.- Parameters:
client
- connectivity to the Atlan tenant from which to purge the custom metadatadisplayName
- human-readable name of the custom metadata definition- Throws:
AtlanException
- on any error during the API invocation
-
builder
-
toBuilder
-
getOptions
Options for the custom metadata. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
Description copied from class:AtlanObject
-
getCategory
Fixed category for custom metadata typedefs.- Overrides:
getCategory
in classTypeDef
-