public class CMAAsset extends CMAResource
| Modifier and Type | Class and Description |
|---|---|
static class |
CMAAsset.Fields
Collect all fields of an asset.
|
| Constructor and Description |
|---|
CMAAsset()
Create a new asset, setting the system's type field.
|
| Modifier and Type | Method and Description |
|---|---|
CMAAsset.Fields |
getFields() |
Integer |
getVersion()
Convenience for getting the version of this resource.
|
CMAAsset |
setFields(CMAAsset.Fields fields)
Sets new fields for this Asset.
|
CMAAsset |
setId(String id)
Convenience: Update the id of this entry without going through
CMAResource.getSystem(). |
CMAAsset |
setSpaceId(String spaceId)
Convenience: Update the space id of this entry without going through
CMAResource.getSystem(). |
CMAAsset |
setSystem(CMASystem system)
Sets the system field.
|
CMAAsset |
setVersion(Integer version)
Convenience: Update the version of this entry without going through
CMAResource.getSystem(). |
getId, getSpaceId, getSystem, isArchived, isPublishedpublic CMAAsset.Fields getFields()
public CMAAsset setFields(CMAAsset.Fields fields)
fields - fields to overwrite the current set of fields.CMAAsset instancepublic CMAAsset setSystem(CMASystem system)
setSystem in class CMAResourcesystem - sets the system property.public CMAAsset setId(String id)
CMAResource.getSystem().setId in class CMAResourceid - to be set.public CMAAsset setVersion(Integer version)
CMAResource.getSystem().setVersion in class CMAResourceversion - to be set.public Integer getVersion()
getVersion in class CMAResourcepublic CMAAsset setSpaceId(String spaceId)
CMAResource.getSystem().setSpaceId in class CMAResourcespaceId - to be set.Copyright © 2017 Contentful, GmbH.. All Rights Reserved.