Class AddComplexRelationRequest.Builder
- Object
-
- Builder
-
- Enclosing class:
- AddComplexRelationRequest
public static final class AddComplexRelationRequest.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AddComplexRelationRequest.Builder
attributes(List<ComplexRelationAttributeRequest> attributeRequests)
Deprecated.This method will be removed in the future.AddComplexRelationRequest.Builder
attributes(Map<UUID,List<AttributeValue>> attributes)
Sets the map of attributes that the complex relation should contain.AddComplexRelationRequest
build()
AddComplexRelationRequest.Builder
but()
Deprecated.This method will be removed in the future.AddComplexRelationRequest.Builder
complexRelationTypeId(@NotNull UUID complexRelationTypeId)
Required. The ID of the type of the complex relation.AddComplexRelationRequest.Builder
id(UUID id)
The ID of the new complex relation.AddComplexRelationRequest.Builder
legs(List<ComplexRelationLegRequest> legs)
The list of legs that the new complex relation should contain.AddComplexRelationRequest.Builder
relations(Map<RelationTypeIdWithDirection,List<RelatedAssetId>> relations)
The relations that the new complex relation should contain.AddComplexRelationRequest.Builder
setAttribute(UUID attributeTypeId, String... values)
Sets attribute(s) with type identified by given ID or name and provided value(s).AddComplexRelationRequest.Builder
setAttribute(UUID attributeTypeId, List<String>... values)
Sets attribute(s) with type identified by given ID or name and provided value(s).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).String
toString()
-
-
-
Method Detail
-
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
public AddComplexRelationRequest.Builder attributes(Map<UUID,List<AttributeValue>> 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
public AddComplexRelationRequest.Builder setAttribute(UUID attributeTypeId, 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 single value each
-
setAttribute
public AddComplexRelationRequest.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 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 public AddComplexRelationRequest.Builder but()
Deprecated.This method will be removed in the future. Please, useAddComplexRelationRequest.builder()
Clone method for this Builder.
-
id
public AddComplexRelationRequest.Builder id(UUID id)
The ID of the new complex relation.- Returns:
this
.
-
complexRelationTypeId
public AddComplexRelationRequest.Builder complexRelationTypeId(@NotNull @NotNull UUID complexRelationTypeId)
Required. The ID of the type of the complex relation.- Returns:
this
.
-
legs
public AddComplexRelationRequest.Builder legs(List<ComplexRelationLegRequest> 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
.
-
build
public AddComplexRelationRequest build()
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-