Class ChangeComplexRelationRequest.Builder
Object
Builder
- Enclosing class:
ChangeComplexRelationRequest
-
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 new attributes that the new complex relation should contain, designated by type public ID.build()but()Deprecated.This method will be removed in the future.Required. The ID of the complex relation to be changed.legs(List<ComplexRelationLegRequest> legs) The new list of legs that the changed complex relation should contain.partialAttributesUpdate(boolean value) Do not remove existing attributes of types that are not included in the update request.relations(Map<RelationTypeIdWithDirection, List<RelatedAssetId>> relations) The new 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
-
partialAttributesUpdate
Do not remove existing attributes of types that are not included in the update request. -
setRelation
public ChangeComplexRelationRequest.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
public ChangeComplexRelationRequest.Builder setAttribute(UUID attributeTypeId, List<String>... values) 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 ChangeComplexRelationRequest.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, useChangeComplexRelationRequest.builder()Clone method for this Builder. -
id
Required. The ID of the complex relation to be changed.- Returns:
this.
-
legs
The new list of legs that the changed complex relation should contain.- Returns:
this.
-
relations
public ChangeComplexRelationRequest.Builder relations(Map<RelationTypeIdWithDirection, List<RelatedAssetId>> relations) The new relations that the new complex relation should contain.- Returns:
this.
-
attributesForTypePublicId
public ChangeComplexRelationRequest.Builder attributesForTypePublicId(Map<String, List<AttributeValue>> attributesForTypePublicId) The new attributes that the new complex relation should contain, designated by type public ID.- Returns:
this.
-
build
-
toString
-