Class SetAssetRelationsRequest
Object
SetAssetRelationsRequest
- All Implemented Interfaces:
Serializable
The properties of the asset relations to be set.
Existing relations for given asset and of given relation type are replaced by relations presented in this request.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Required. The ID of the asset.Required. The IDs of the related assets.The relation direction.Required. The ID of the relation type for the relations to be set.The public ID of the relation type for the relations to be set.int
hashCode()
void
setAssetId
(UUID assetId) Required. The ID of the asset.void
setRelatedAssetIds
(List<UUID> relatedAssetIds) Required. The IDs of the related assets.void
setRelationDirection
(SetAssetRelationsRequest.RelationDirection relationDirection) The relation direction.void
Required. The ID of the relation type for the relations to be set.void
setTypePublicId
(String typePublicId) The public ID of the relation type for the relations to be set.toString()
-
Constructor Details
-
SetAssetRelationsRequest
public SetAssetRelationsRequest()
-
-
Method Details
-
builder
-
getAssetId
Required. The ID of the asset. -
getTypeId
Required. The ID of the relation type for the relations to be set. -
getRelatedAssetIds
Required. The IDs of the related assets. -
getRelationDirection
The relation direction. If TO_SOURCE then related assets will become source assets. Otherwise they will become target assets for created relations. -
getTypePublicId
The public ID of the relation type for the relations to be set. -
setAssetId
Required. The ID of the asset. -
setTypeId
Required. The ID of the relation type for the relations to be set. -
setRelatedAssetIds
Required. The IDs of the related assets. -
setRelationDirection
The relation direction. If TO_SOURCE then related assets will become source assets. Otherwise they will become target assets for created relations. -
setTypePublicId
The public ID of the relation type for the relations to be set. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-