Class SetAssetRelationsRequest.Builder
- Object
-
- Builder
-
- Enclosing class:
- SetAssetRelationsRequest
public static final class SetAssetRelationsRequest.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SetAssetRelationsRequest.Builder
assetId(@NotNull UUID assetId)
Required. The ID of the asset.SetAssetRelationsRequest
build()
SetAssetRelationsRequest.Builder
but()
Deprecated.This method will be removed in the future.SetAssetRelationsRequest.Builder
relatedAssetIds(@NotNull List<UUID> relatedAssetIds)
Required. The IDs of the related assets.SetAssetRelationsRequest.Builder
relationDirection(@NotNull SetAssetRelationsRequest.RelationDirection relationDirection)
The relation direction.String
toString()
SetAssetRelationsRequest.Builder
typeId(@NotNull UUID typeId)
Required. The ID of the relation type for the relations to be set.
-
-
-
Method Detail
-
but
@Deprecated public SetAssetRelationsRequest.Builder but()
Deprecated.This method will be removed in the future. Please, useSetAssetRelationsRequest.builder()
Clone method for this Builder.
-
assetId
public SetAssetRelationsRequest.Builder assetId(@NotNull @NotNull UUID assetId)
Required. The ID of the asset.- Returns:
this
.
-
typeId
public SetAssetRelationsRequest.Builder typeId(@NotNull @NotNull UUID typeId)
Required. The ID of the relation type for the relations to be set.- Returns:
this
.
-
relatedAssetIds
public SetAssetRelationsRequest.Builder relatedAssetIds(@NotNull @NotNull List<UUID> relatedAssetIds)
Required. The IDs of the related assets.- Returns:
this
.
-
relationDirection
public SetAssetRelationsRequest.Builder relationDirection(@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.- Returns:
this
.
-
build
public SetAssetRelationsRequest build()
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-