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() |
java.lang.Integer |
getVersion()
Convenience for getting the version of this resource.
|
CMAAsset |
setEnvironmentId(java.lang.String environmentId)
Convenience method for setting an environment id.
|
CMAAsset |
setFields(CMAAsset.Fields fields)
Sets new fields for this Asset.
|
CMAAsset |
setId(java.lang.String id)
Convenience: Update the id of this entry without going through
CMAResource.getSystem() . |
CMAAsset |
setSpaceId(java.lang.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(java.lang.Integer version)
Convenience: Update the version of this entry without going through
CMAResource.getSystem() . |
java.lang.String |
toString() |
getEnvironmentId, getId, getSpaceId, getSystem, isArchived, isPublished
public 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 CMAResource
system
- sets the system property.public CMAAsset setId(java.lang.String id)
CMAResource.getSystem()
.setId
in class CMAResource
id
- to be set.public java.lang.Integer getVersion()
getVersion
in class CMAResource
public CMAAsset setVersion(java.lang.Integer version)
CMAResource.getSystem()
.setVersion
in class CMAResource
version
- to be set.public CMAAsset setSpaceId(java.lang.String spaceId)
CMAResource.getSystem()
.setSpaceId
in class CMAResource
spaceId
- to be set.public CMAAsset setEnvironmentId(java.lang.String environmentId)
setEnvironmentId
in class CMAResource
environmentId
- the id to be set.CMAResource
for chaining.public java.lang.String toString()
toString
in class CMAResource
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.