Interface AssetSource
public interface AssetSource
AssetSource
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssetSource assetSource = AssetSource.builder()
.uri("{uri}")
.key("{key}")
.dimensions(dimensionsBuilder -> dimensionsBuilder)
.contentType("{contentType}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssetSourceBuilder
builder()
builder factory method for AssetSourcestatic AssetSourceBuilder
builder
(AssetSource template) create builder for AssetSource instancestatic AssetSource
deepCopy
(AssetSource template) factory method to create a deep copy of AssetSource@NotNull String
@NotNull @Valid AssetDimensions
@NotNull String
getKey()
@NotNull String
getUri()
static AssetSource
of()
factory methodstatic AssetSource
of
(AssetSource template) factory method to create a shallow copy AssetSourcevoid
setContentType
(String contentType) set contentTypevoid
setDimensions
(AssetDimensions dimensions) set dimensionsvoid
set keyvoid
set uristatic com.fasterxml.jackson.core.type.TypeReference<AssetSource>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAssetSource
(Function<AssetSource, T> helper) accessor map function
-
Method Details
-
getUri
- Returns:
- uri
-
getKey
- Returns:
- key
-
getDimensions
- Returns:
- dimensions
-
getContentType
- Returns:
- contentType
-
setUri
set uri- Parameters:
uri
- value to be set
-
setKey
set key- Parameters:
key
- value to be set
-
setDimensions
set dimensions- 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
-
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
-