public class CMAAsset extends CMAResource
| Constructor and Description |
|---|
CMAAsset() |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<String,Map<String,Object>> |
getFields() |
Boolean |
isArchived() |
Boolean |
isPublished() |
CMAAsset |
setField(String key,
Object value,
String locale)
Creates a new field.
|
CMAAsset |
setFields(LinkedHashMap<String,Map<String,Object>> fields)
Sets a map of fields for this Asset.
|
CMAAsset |
setId(String id)
Sets the ID for this Asset.
|
getResourceId, getSpaceId, getSys, getVersion, setSyspublic CMAAsset setId(String id)
CMAAsset instancesetId in class CMAResourceid - to be setCMAResource instancepublic CMAAsset setField(String key, Object value, String locale)
key - field keyvalue - valuelocale - localeCMAAsset instancepublic LinkedHashMap<String,Map<String,Object>> getFields()
public CMAAsset setFields(LinkedHashMap<String,Map<String,Object>> fields)
fields - Map of fieldsCMAAsset instancepublic Boolean isArchived()
public Boolean isPublished()
Copyright © 2016 Contentful, GmbH.. All Rights Reserved.