Package com.atlan.model.typedefs
Class AtlanTagDef
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.typedefs.TypeDef
com.atlan.model.typedefs.AtlanTagDef
- All Implemented Interfaces:
Serializable
Structural definition of an Atlan tag.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAtlanTagDef.AtlanTagDefBuilder<C extends AtlanTagDef,B extends AtlanTagDef.AtlanTagDefBuilder<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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AtlanTagDef.AtlanTagDefBuilder<?, ?> builder()protected booleancreate(AtlanClient client) Create this Atlan tag definition in Atlan.static AtlanTagDef.AtlanTagDefBuilder<?, ?> creator(AtlanClient client, String displayName, String url) Builds the minimal object necessary to create an Atlan tag definition.static AtlanTagDef.AtlanTagDefBuilder<?, ?> creator(AtlanClient client, String displayName, String url, boolean sourceSynced) Builds the minimal object necessary to create an Atlan tag definition.static AtlanTagDef.AtlanTagDefBuilder<?, ?> Builds the minimal object necessary to create an Atlan tag definition.static AtlanTagDef.AtlanTagDefBuilder<?, ?> creator(String displayName, AtlanIcon icon, AtlanTagColor color) Builds the minimal object necessary to create an Atlan tag definition.static AtlanTagDef.AtlanTagDefBuilder<?, ?> creator(String displayName, AtlanIcon icon, AtlanTagColor color, boolean sourceSynced) Builds the minimal object necessary to create an Atlan tag definition.static AtlanTagDef.AtlanTagDefBuilder<?, ?> creator(String displayName, AtlanTagColor color) Builds the minimal object necessary to create an Atlan tag definition, using the default tag icon.static AtlanTagDef.AtlanTagDefBuilder<?, ?> creator(String displayName, AtlanTagColor color, boolean sourceSynced) Builds the minimal object necessary to create an Atlan tag definition, using the default tag icon.static AtlanTagDef.AtlanTagDefBuilder<?, ?> creator(String displayName, AtlanTagOptions options) Builds the minimal object necessary to create an Atlan tag definition.booleanFixed category for Atlan tag typedefs.List of the types of entities that the Atlan tag can be applied to.Options that describe the Atlan tag.TBCUnused.Unused.inthashCode()static voidpurge(AtlanClient client, String displayName) Hard-deletes (purges) an Atlan tag by its human-readable name.static AtlanTagDef.AtlanTagDefBuilder<?, ?> setupSourceSynced(AtlanTagDef.AtlanTagDefBuilder<?, ?> builder, boolean sourceSynced) Configure the builder for the tag to support source-synced attributes.toString()Methods inherited from class com.atlan.model.typedefs.TypeDef
getAttributeDefs, getCreatedBy, getCreateTime, getDescription, getDisplayName, getGuid, getName, getServiceType, getTypeVersion, getUpdatedBy, getUpdateTime, getVersionMethods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Constructor Details
-
AtlanTagDef
-
-
Method Details
-
creator
Builds the minimal object necessary to create an Atlan tag definition, using the default tag icon.- Parameters:
displayName- the human-readable name for the Atlan tagcolor- the color to use for the Atlan tag- Returns:
- the minimal request necessary to create the Atlan tag typedef, as a builder
-
creator
public static AtlanTagDef.AtlanTagDefBuilder<?,?> creator(String displayName, AtlanTagColor color, boolean sourceSynced) Builds the minimal object necessary to create an Atlan tag definition, using the default tag icon.- Parameters:
displayName- the human-readable name for the Atlan tagcolor- the color to use for the Atlan tagsourceSynced- if true, configure this tag as a source-synced tag- Returns:
- the minimal request necessary to create the Atlan tag typedef, as a builder
-
creator
public static AtlanTagDef.AtlanTagDefBuilder<?,?> creator(String displayName, AtlanIcon icon, AtlanTagColor color) Builds the minimal object necessary to create an Atlan tag definition.- Parameters:
displayName- the human-readable name for the Atlan tagicon- the built-in icon to use for the Atlan tagcolor- the color to use for the Atlan tag- Returns:
- the minimal request necessary to create the Atlan tag typedef, as a builder
-
creator
public static AtlanTagDef.AtlanTagDefBuilder<?,?> creator(String displayName, AtlanIcon icon, AtlanTagColor color, boolean sourceSynced) Builds the minimal object necessary to create an Atlan tag definition.- Parameters:
displayName- the human-readable name for the Atlan tagicon- the built-in icon to use for the Atlan tagcolor- the color to use for the Atlan tagsourceSynced- if true, configure this tag as a source-synced tag- Returns:
- the minimal request necessary to create the Atlan tag typedef, as a builder
-
creator
public static AtlanTagDef.AtlanTagDefBuilder<?,?> creator(AtlanClient client, String displayName, String url) throws AtlanException Builds the minimal object necessary to create an Atlan tag definition.- Parameters:
client- connectivity to the Atlan tenant in which the tag is intended to be createddisplayName- the human-readable name for the Atlan tagurl- URL to an image to use for the Atlan tag- Returns:
- the minimal request necessary to create the Atlan tag typedef, as a builder
- Throws:
AtlanException- on any issues uploading the image from the provided URL
-
creator
public static AtlanTagDef.AtlanTagDefBuilder<?,?> creator(AtlanClient client, String displayName, String url, boolean sourceSynced) throws AtlanException Builds the minimal object necessary to create an Atlan tag definition.- Parameters:
client- connectivity to the Atlan tenant in which the tag is intended to be createddisplayName- the human-readable name for the Atlan tagurl- URL to an image to use for the Atlan tagsourceSynced- if true, configure this tag as a source-synced tag- Returns:
- the minimal request necessary to create the Atlan tag typedef, as a builder
- Throws:
AtlanException- on any issues uploading the image from the provided URL
-
creator
public static AtlanTagDef.AtlanTagDefBuilder<?,?> creator(String displayName, AtlanTagOptions options) throws AtlanException Builds the minimal object necessary to create an Atlan tag definition.- Parameters:
displayName- the human-readable name for the Atlan tagoptions- to use when creating the Atlan tag- Returns:
- the minimal request necessary to create the Atlan tag typedef, as a builder
- Throws:
AtlanException- on any issues uploading the image from the provided URL
-
creator
public static AtlanTagDef.AtlanTagDefBuilder<?,?> creator(String displayName, boolean sourceSynced) throws AtlanException Builds the minimal object necessary to create an Atlan tag definition.- Parameters:
displayName- the human-readable name for the Atlan tagsourceSynced- if true, configure this tag as a source-synced tag- Returns:
- the minimal request necessary to create the Atlan tag typedef, as a builder
- Throws:
AtlanException- on any issues uploading the image from the provided URL
-
setupSourceSynced
public static AtlanTagDef.AtlanTagDefBuilder<?,?> setupSourceSynced(AtlanTagDef.AtlanTagDefBuilder<?, ?> builder, boolean sourceSynced) Configure the builder for the tag to support source-synced attributes.- Parameters:
builder- for the tag definitionsourceSynced- if true, add the necessary structure for source-synced tags, otherwise do nothing- Returns:
- the tag builder, modified to handle source-synced tags
-
create
Create this Atlan tag definition in Atlan.- Parameters:
client- connectivity to an Atlan tenant- Returns:
- the result of the creation, or null if the creation failed
- Throws:
AtlanException- on any API communication issues
-
purge
Hard-deletes (purges) an Atlan tag by its human-readable name. This operation is irreversible. If there are any existing Atlan tag instances, this operation will fail.- Parameters:
client- connectivity to the Atlan tenant from which the Atlan tag should be purgeddisplayName- human-readable name of the Atlan tagclient- connectivity to an Atlan tenant- Throws:
AtlanException- on any error during the API invocation
-
builder
-
toBuilder
-
getOptions
Options that describe the Atlan tag. -
getSuperTypes
Unused. -
getEntityTypes
List of the types of entities that the Atlan tag can be applied to. -
getSubTypes
Unused. -
getSkipDisplayNameUniquenessCheck
TBC -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
Description copied from class:AtlanObject -
getCategory
Fixed category for Atlan tag typedefs.- Overrides:
getCategoryin classTypeDef
-