Package com.atlan.model.relations
Class UserDefRelationship.UserDefRelationshipBuilder<C extends UserDefRelationship,B extends UserDefRelationship.UserDefRelationshipBuilder<C,B>>
java.lang.Object
com.atlan.model.core.AtlanObject.AtlanObjectBuilder<C,B>
com.atlan.model.relations.RelationshipAttributes.RelationshipAttributesBuilder<C,B>
com.atlan.model.relations.UserDefRelationship.UserDefRelationshipBuilder<C,B>
- Enclosing class:
UserDefRelationship
public abstract static class UserDefRelationship.UserDefRelationshipBuilder<C extends UserDefRelationship,B extends UserDefRelationship.UserDefRelationshipBuilder<C,B>>
extends RelationshipAttributes.RelationshipAttributesBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected B$fillValuesFrom(C instance) abstract Cbuild()fromTypeLabel(String fromTypeLabel) Name for the relationship when referring from endDef2 asset to endDef1 asset.protected abstract Bself()toString()toTypeLabel(String toTypeLabel) Name for the relationship when referring from endDef1 asset to endDef2 asset.Fixed typeName for UserDefRelationships.userDefRelationshipFrom(IAsset related, Reference.SaveSemantic semantic) Build the UserDefRelationship relationship (with attributes) into a related object.userDefRelationshipTo(IAsset related, Reference.SaveSemantic semantic) Build the UserDefRelationship relationship (with attributes) into a related object.Methods inherited from class com.atlan.model.relations.RelationshipAttributes.RelationshipAttributesBuilder
clearNullFields, nullField, nullFieldsMethods inherited from class com.atlan.model.core.AtlanObject.AtlanObjectBuilder
rawJsonObject
-
Constructor Details
-
UserDefRelationshipBuilder
public UserDefRelationshipBuilder()
-
-
Method Details
-
userDefRelationshipFrom
public IAsset userDefRelationshipFrom(IAsset related, Reference.SaveSemantic semantic) throws InvalidRequestException Build the UserDefRelationship relationship (with attributes) into a related object.- Parameters:
related- the related asset to which to build the detailed relationshipsemantic- to use for saving the relationship- Returns:
- a detailed Atlan relationship that conforms to the necessary interface for a related asset
- Throws:
InvalidRequestException- if the asset provided is without a GUID or qualifiedName
-
userDefRelationshipTo
public IAsset userDefRelationshipTo(IAsset related, Reference.SaveSemantic semantic) throws InvalidRequestException Build the UserDefRelationship relationship (with attributes) into a related object.- Parameters:
related- the related asset to which to build the detailed relationshipsemantic- to use for saving the relationship- Returns:
- a detailed Atlan relationship that conforms to the necessary interface for a related asset
- Throws:
InvalidRequestException- if the asset provided is without a GUID or qualifiedName
-
$fillValuesFrom
- Overrides:
$fillValuesFromin classAtlanObject.AtlanObjectBuilder<C extends UserDefRelationship,B extends UserDefRelationship.UserDefRelationshipBuilder<C, B>>
-
typeName
Fixed typeName for UserDefRelationships.- Overrides:
typeNamein classRelationshipAttributes.RelationshipAttributesBuilder<C extends UserDefRelationship,B extends UserDefRelationship.UserDefRelationshipBuilder<C, B>> - Returns:
this.
-
fromTypeLabel
Name for the relationship when referring from endDef2 asset to endDef1 asset.- Returns:
this.
-
toTypeLabel
Name for the relationship when referring from endDef1 asset to endDef2 asset.- Returns:
this.
-
self
- Specified by:
selfin classRelationshipAttributes.RelationshipAttributesBuilder<C extends UserDefRelationship,B extends UserDefRelationship.UserDefRelationshipBuilder<C, B>>
-
build
- Specified by:
buildin classRelationshipAttributes.RelationshipAttributesBuilder<C extends UserDefRelationship,B extends UserDefRelationship.UserDefRelationshipBuilder<C, B>>
-
toString
- Overrides:
toStringin classRelationshipAttributes.RelationshipAttributesBuilder<C extends UserDefRelationship,B extends UserDefRelationship.UserDefRelationshipBuilder<C, B>>
-