Package com.atlan.model.typedefs
Class AttributeDef.AttributeDefBuilder<C extends AttributeDef,B extends AttributeDef.AttributeDefBuilder<C,B>>
java.lang.Object
com.atlan.model.core.AtlanObject.AtlanObjectBuilder<C,B>
com.atlan.model.typedefs.AttributeDef.AttributeDefBuilder<C,B>
- Direct Known Subclasses:
RelationshipAttributeDef.RelationshipAttributeDefBuilder
,RelationshipEndDef.RelationshipEndDefBuilder
- Enclosing class:
- AttributeDef
public abstract static class AttributeDef.AttributeDefBuilder<C extends AttributeDef,B extends AttributeDef.AttributeDefBuilder<C,B>>
extends AtlanObject.AtlanObjectBuilder<C,B>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected B
$fillValuesFrom
(C instance) Mark this attribute definition as archived.autoUpdateAttributes
(Map<String, List<String>> autoUpdateAttributes) TBCabstract C
build()
cardinality
(AtlanCustomAttributeCardinality cardinality) Specifies whether the attribute is single or multivalued.constraints
(List<Constraint> constraints) TBCdefaultValue
(String defaultValue) Specifies an (optional) default value for the attribute.description
(String description) Explanation of the attribute.displayName
(String displayName) Human-readable name of the attribute.enumValues
(Collection<? extends String> enumValues) includeInNotification
(Boolean includeInNotification) Whether changes to this attribute's value generate an event (true) or not (false).TBCindexTypeESConfig
(Map<String, String> indexTypeESConfig) TBCTBCisDefaultValueNull
(Boolean isDefaultValueNull) Indicates whether the attribute has a default value of being empty (true) or not (false).isIndexable
(Boolean isIndexable) Specifies whether the attribute can be searched (true) or not (false).Whether the attribute is being newly created (true) or not (false).isOptional
(Boolean isOptional) Indicates whether the attribute is mandatory (false) or optional (true).Specifies whether the attribute must have unique values (true) or not (false).Internal hashed-string name for the attribute.options
(AttributeDefOptions options) Options for the attribute.searchWeight
(Long searchWeight) TBCprotected abstract B
self()
skipScrubbing
(Boolean skipScrubbing) TBCtoString()
Type of the attribute.valuesMaxCount
(Long valuesMaxCount) Specifies the maximum number of values the attribute can have.valuesMinCount
(Long valuesMinCount) Specifies the minimum number of values the attribute can have.Methods inherited from class com.atlan.model.core.AtlanObject.AtlanObjectBuilder
rawJsonObject
-
Constructor Details
-
AttributeDefBuilder
public AttributeDefBuilder()
-
-
Method Details
-
archive
Mark this attribute definition as archived. Note that this will only do so if the attribute is already defined (i.e. has some options). Otherwise, this operation does nothing to the attribute definition.- Parameters:
by
- name of the user who is archiving the attribute definition
-
$fillValuesFrom
- Overrides:
$fillValuesFrom
in classAtlanObject.AtlanObjectBuilder<C extends AttributeDef,
B extends AttributeDef.AttributeDefBuilder<C, B>>
-
name
Internal hashed-string name for the attribute.- Returns:
this
.
-
displayName
Human-readable name of the attribute.- Returns:
this
.
-
description
Explanation of the attribute.- Returns:
this
.
-
typeName
Type of the attribute.- This can either be a primitive Atlan type or the name of a custom metadata enumeration (options).
- The primitive Atlan types' values are defined in the
AtlanCustomAttributePrimitiveType
enumeration. - Note: there are a number of custom types there as well (
users
,groups
,url
, andSQL
). ThetypeName
for all of these custom types isSTRING
, and the more detailed type only appears in theoptions
. - For fields that can be multivalued, use
array<type>
for the typeName.
- Returns:
this
.
-
defaultValue
Specifies an (optional) default value for the attribute.- Returns:
this
.
-
isDefaultValueNull
Indicates whether the attribute has a default value of being empty (true) or not (false).- Returns:
this
.
-
isOptional
Indicates whether the attribute is mandatory (false) or optional (true).- Returns:
this
.
-
cardinality
Specifies whether the attribute is single or multivalued.- Returns:
this
.
-
valuesMinCount
Specifies the minimum number of values the attribute can have.- Returns:
this
.
-
valuesMaxCount
Specifies the maximum number of values the attribute can have.- Returns:
this
.
-
isUnique
Specifies whether the attribute must have unique values (true) or not (false).- Returns:
this
.
-
isIndexable
Specifies whether the attribute can be searched (true) or not (false).- Returns:
this
.
-
includeInNotification
Whether changes to this attribute's value generate an event (true) or not (false).- Returns:
this
.
-
skipScrubbing
TBC- Returns:
this
.
-
searchWeight
TBC- Returns:
this
.
-
indexType
TBC- Returns:
this
.
-
options
Options for the attribute.- Returns:
this
.
-
isNew
Whether the attribute is being newly created (true) or not (false).- Returns:
this
.
-
enumValue
-
enumValues
-
clearEnumValues
-
constraints
TBC- Returns:
this
.
-
indexTypeESConfig
TBC- Returns:
this
.
-
indexTypeESFields
TBC- Returns:
this
.
-
autoUpdateAttributes
TBC- Returns:
this
.
-
self
- Specified by:
self
in classAtlanObject.AtlanObjectBuilder<C extends AttributeDef,
B extends AttributeDef.AttributeDefBuilder<C, B>>
-
build
- Specified by:
build
in classAtlanObject.AtlanObjectBuilder<C extends AttributeDef,
B extends AttributeDef.AttributeDefBuilder<C, B>>
-
toString
- Overrides:
toString
in classAtlanObject.AtlanObjectBuilder<C extends AttributeDef,
B extends AttributeDef.AttributeDefBuilder<C, B>>
-