Class AddComplexRelationRequest.Builder
Object
Builder
- Enclosing class:
AddComplexRelationRequest
-
Method Summary
Modifier and TypeMethodDescriptionattributes(List<ComplexRelationAttributeRequest> attributeRequests) Deprecated.This method will be removed in the future.attributes(Map<UUID, List<AttributeValue>> attributes) Sets the map of attributes that the complex relation should contain.attributesForTypePublicId(Map<String, List<AttributeValue>> attributesForTypePublicId) The attributes that the new complex relation should contain, with types identified by public ID.build()but()Deprecated.This method will be removed in the future.complexRelationTypeId(UUID complexRelationTypeId) Required. The ID of the type of the complex relation.complexRelationTypePublicId(String complexRelationTypePublicId) The public ID of the type of the complex relation.The ID of the new complex relation.legs(List<ComplexRelationLegRequest> legs) The list of legs that the new complex relation should contain.relations(Map<RelationTypeIdWithDirection, List<RelatedAssetId>> relations) The relations that the new complex relation should contain.setAttribute(UUID attributeTypeId, String... values) Sets attribute(s) with type identified by given ID or name and provided value(s).setAttribute(UUID attributeTypeId, List<String>... values) Sets attribute(s) with type identified by given ID or name and provided value(s).setRelation(UUID relationTypeId, RelationTypeIdWithDirection.Direction direction, UUID... assetIds) Sets relation(s) with type identified by given ID and provided direction towards related asset(s).toString()
-
Method Details
-
setRelation
public AddComplexRelationRequest.Builder setRelation(UUID relationTypeId, RelationTypeIdWithDirection.Direction direction, UUID... assetIds) Sets relation(s) with type identified by given ID and provided direction towards related asset(s).- Parameters:
relationTypeId- the ID of the relation typedirection- the direction of the relation(s)assetIds- theid(s)of the related asset(s)
-
attributes
Sets the map of attributes that the complex relation should contain.- Parameters:
attributes- the map of attributes that the complex relation should contain
-
setAttribute
Sets attribute(s) with type identified by given ID or name and provided value(s).- Parameters:
attributeTypeId- the attribute type IDvalues- value(s) that should be set for attribute type. Note that this method should be used with attributes that hold single value each
-
setAttribute
Sets attribute(s) with type identified by given ID or name and provided value(s).- Parameters:
attributeTypeId- the attribute type IDvalues- value(s) that should be set for attribute type. Note that this method should be used with attributes that hold multiple values each
-
attributes
@Deprecated public AddComplexRelationRequest.Builder attributes(List<ComplexRelationAttributeRequest> attributeRequests) Deprecated.This method will be removed in the future. Please, useattributes(Map).Sets the attributes that the new complex relation should contain.- Parameters:
attributeRequests- the attributes that the new complex relation should contain
-
but
Deprecated.This method will be removed in the future. Please, useAddComplexRelationRequest.builder()Clone method for this Builder. -
id
The ID of the new complex relation.- Returns:
this.
-
complexRelationTypeId
Required. The ID of the type of the complex relation.- Returns:
this.
-
complexRelationTypePublicId
public AddComplexRelationRequest.Builder complexRelationTypePublicId(String complexRelationTypePublicId) The public ID of the type of the complex relation.- Returns:
this.
-
legs
The list of legs that the new complex relation should contain.- Returns:
this.
-
relations
public AddComplexRelationRequest.Builder relations(Map<RelationTypeIdWithDirection, List<RelatedAssetId>> relations) The relations that the new complex relation should contain.- Returns:
this.
-
attributesForTypePublicId
public AddComplexRelationRequest.Builder attributesForTypePublicId(Map<String, List<AttributeValue>> attributesForTypePublicId) The attributes that the new complex relation should contain, with types identified by public ID.- Returns:
this.
-
build
-
toString
-