Class SetAssetRelationsRequest
- Object
-
- 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SetAssetRelationsRequest.Builder
static class
SetAssetRelationsRequest.RelationDirection
-
Constructor Summary
Constructors Constructor Description SetAssetRelationsRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetAssetRelationsRequest.Builder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
@NotNull UUID
getAssetId()
Required. The ID of the asset.@NotNull List<UUID>
getRelatedAssetIds()
Required. The IDs of the related assets.@NotNull SetAssetRelationsRequest.RelationDirection
getRelationDirection()
The relation direction.@NotNull UUID
getTypeId()
Required. The ID of the relation type for the relations to be set.int
hashCode()
void
setAssetId(@NotNull UUID assetId)
Required. The ID of the asset.void
setRelatedAssetIds(@NotNull List<UUID> relatedAssetIds)
Required. The IDs of the related assets.void
setRelationDirection(@NotNull SetAssetRelationsRequest.RelationDirection relationDirection)
The relation direction.void
setTypeId(@NotNull UUID typeId)
Required. The ID of the relation type for the relations to be set.String
toString()
-
-
-
Method Detail
-
builder
public static SetAssetRelationsRequest.Builder builder()
-
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 classObject
-
canEqual
protected boolean canEqual(Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-