Class SetAssetRelationsRequest

  • All Implemented Interfaces:
    Serializable

    public class SetAssetRelationsRequest
    extends Object
    implements 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:
    Serialized Form
    • Constructor Detail

      • SetAssetRelationsRequest

        public SetAssetRelationsRequest()
    • Method Detail

      • getAssetId

        @NotNull
        public @NotNull UUID getAssetId()
        Required. The ID of the asset.
      • getTypeId

        @NotNull
        public @NotNull UUID getTypeId()
        Required. The ID of the relation type for the relations to be set.
      • getRelatedAssetIds

        @NotNull
        public @NotNull List<UUID> getRelatedAssetIds()
        Required. The IDs of the related assets.
      • getRelationDirection

        @NotNull
        public @NotNull SetAssetRelationsRequest.RelationDirection getRelationDirection()
        The relation direction. If TO_SOURCE then related assets will become source assets. Otherwise they will become target assets for created relations.
      • setAssetId

        public void setAssetId​(@NotNull
                               @NotNull UUID assetId)
        Required. The ID of the asset.
      • setTypeId

        public void setTypeId​(@NotNull
                              @NotNull UUID typeId)
        Required. The ID of the relation type for the relations to be set.
      • setRelatedAssetIds

        public void setRelatedAssetIds​(@NotNull
                                       @NotNull List<UUID> relatedAssetIds)
        Required. The IDs of the related assets.
      • setRelationDirection

        public void setRelationDirection​(@NotNull
                                         @NotNull SetAssetRelationsRequest.RelationDirection relationDirection)
        The relation direction. If TO_SOURCE then related assets will become source assets. Otherwise they will become target assets for created relations.
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Object
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Overrides:
        toString in class Object