Class AssetData.Builder

  • Enclosing class:
    AssetData

    public static final class AssetData.Builder
    extends Object
    • 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.
      • build

        public AssetData build()
        Builds the AssetData instance.
        Returns:
        The built instance.
      • 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.