Class AssetSourceImpl
java.lang.Object
com.commercetools.api.models.common.AssetSourceImpl
- All Implemented Interfaces:
AssetSource
,WithKey
,io.vrap.rmf.base.client.ModelBase
public class AssetSourceImpl
extends Object
implements AssetSource, io.vrap.rmf.base.client.ModelBase
Representation of an Asset in a specific format, for example a video in a certain encoding, or an image in a certain resolution.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates the type of content, for exampleapplication/pdf
.Width and height of the AssetSource.getKey()
User-defined identifier of the AssetSource.getUri()
URI of the AssetSource.int
hashCode()
void
setContentType
(String contentType) Indicates the type of content, for exampleapplication/pdf
.void
setDimensions
(AssetDimensions dimensions) Width and height of the AssetSource.void
User-defined identifier of the AssetSource.void
URI of the AssetSource.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.common.AssetSource
withAssetSource
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
AssetSourceImpl
public AssetSourceImpl()create empty instance
-
-
Method Details
-
getUri
URI of the AssetSource.
- Specified by:
getUri
in interfaceAssetSource
- Returns:
- uri
-
getKey
User-defined identifier of the AssetSource. Must be unique per Asset.
- Specified by:
getKey
in interfaceAssetSource
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getDimensions
Width and height of the AssetSource.
- Specified by:
getDimensions
in interfaceAssetSource
- Returns:
- dimensions
-
getContentType
Indicates the type of content, for example
application/pdf
.- Specified by:
getContentType
in interfaceAssetSource
- Returns:
- contentType
-
setUri
Description copied from interface:AssetSource
URI of the AssetSource.
- Specified by:
setUri
in interfaceAssetSource
- Parameters:
uri
- value to be set
-
setKey
Description copied from interface:AssetSource
User-defined identifier of the AssetSource. Must be unique per Asset.
- Specified by:
setKey
in interfaceAssetSource
- Parameters:
key
- value to be set
-
setDimensions
Description copied from interface:AssetSource
Width and height of the AssetSource.
- Specified by:
setDimensions
in interfaceAssetSource
- Parameters:
dimensions
- value to be set
-
setContentType
Description copied from interface:AssetSource
Indicates the type of content, for example
application/pdf
.- Specified by:
setContentType
in interfaceAssetSource
- Parameters:
contentType
- value to be set
-
equals
-
hashCode
public int hashCode()
-