Package de.xima.fc.asset.mgmt.impex
Class AssetData.Builder
- java.lang.Object
-
- de.xima.fc.asset.mgmt.impex.AssetData.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssetDatabuild()Builds theAssetDatainstance.AssetData.Builderdescription(String description)Sets the internal description of the asset.AssetData.Buildername(String name)Sets the name of the asset.AssetData.Builderscope(AssetScope scope)Sets the scope (assignee) of the asset.AssetData.Buildertype(AssetType type)Sets the type of the asset.AssetData.Builderuuid(UUID uuid)Sets the UUID of the asset.
-
-
-
Method Detail
-
type
@CanIgnoreReturnValue public AssetData.Builder type(AssetType type)
Sets the type of the asset. The type defines the kind of asset, e.g. a resource or a template.- Parameters:
type- The type.- Returns:
- The builder.
-
scope
@CanIgnoreReturnValue public AssetData.Builder scope(AssetScope scope)
Sets the scope (assignee) of the asset. Defines the scope to which the asset is assigned, e.g. the project or a tenant scope.- Parameters:
scope- The scope.- Returns:
- The builder.
-
description
@CanIgnoreReturnValue public AssetData.Builder description(String description)
Sets the internal description of the asset. The description should only be visible to backend users who configure the asset, but not to end users.- Parameters:
description- The description.- Returns:
- The builder.
-
name
@CanIgnoreReturnValue public AssetData.Builder name(String name)
Sets the name of the asset. The name is unique with the scope to which the asset is assigned.- Parameters:
name- The name.- Returns:
- The builder.
-
uuid
@CanIgnoreReturnValue public AssetData.Builder uuid(UUID uuid)
Sets the UUID of the asset. The UUID is unique only within the assigned scope. If not set, a random UUID will be generated.- Parameters:
uuid- The UUID.- Returns:
- The builder.
-
-