Interface AssetSource
public interface AssetSource
An AssetSource is a representation of an Asset in a specific format, for example, a video in a certain encoding or an image in a certain resolution.
Example to create an instance using the builder pattern
AssetSource assetSource = AssetSource.builder()
.uri("{uri}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssetSourceBuilderbuilder()builder factory method for AssetSourcestatic AssetSourceBuilderbuilder(AssetSource template) create builder for AssetSource instancecopyDeep()static AssetSourcedeepCopy(AssetSource template) factory method to create a deep copy of AssetSource@Valid AssetDimensionsThe width and height of the Asset Source.getKey()@NotNull StringgetUri()static AssetSourceof()factory methodstatic AssetSourceof(AssetSource template) factory method to create a shallow copy AssetSourcevoidsetContentType(String contentType) set contentTypevoidsetDimensions(AssetDimensions dimensions) The width and height of the Asset Source.voidset keyvoidset uristatic com.fasterxml.jackson.core.type.TypeReference<AssetSource>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAssetSource(Function<AssetSource, T> helper) accessor map function
-
Method Details
-
getUri
- Returns:
- uri
-
getKey
String getKey()- Returns:
- key
-
getDimensions
The width and height of the Asset Source.
- Returns:
- dimensions
-
getContentType
String getContentType()- Returns:
- contentType
-
setUri
set uri- Parameters:
uri- value to be set
-
setKey
set key- Parameters:
key- value to be set
-
setDimensions
The width and height of the Asset Source.
- Parameters:
dimensions- value to be set
-
setContentType
set contentType- Parameters:
contentType- value to be set
-
of
factory method- Returns:
- instance of AssetSource
-
of
factory method to create a shallow copy AssetSource- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AssetSource copyDeep() -
deepCopy
factory method to create a deep copy of AssetSource- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssetSource- Returns:
- builder
-
builder
create builder for AssetSource instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAssetSource
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-