public class CMASystem extends Object
This type adds up all system properties to have one unified way of accessing them.
| Constructor and Description |
|---|
CMASystem() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getArchivedVersion() |
CMALink |
getContentType() |
String |
getCreatedAt() |
CMALink |
getCreatedBy() |
String |
getFirstPublishedAt() |
String |
getId() |
CMAType |
getLinkType() |
String |
getPublishedAt() |
CMALink |
getPublishedBy() |
Integer |
getPublishedCounter() |
Integer |
getPublishedVersion() |
CMALink |
getSpace() |
CMAType |
getType() |
String |
getUpdatedAt() |
CMALink |
getUpdatedBy() |
Integer |
getVersion() |
CMASystem |
setContentType(CMALink contentType)
Change the content type of this resource.
|
CMASystem |
setId(String id)
Update or set the id of this resource.
|
CMASystem |
setLinkType(CMAType linkType)
Set the type of this link.
|
CMASystem |
setSpace(CMALink space)
Update the space used.
|
CMASystem |
setType(CMAType type)
Update this type.
|
CMASystem |
setVersion(Integer version)
Update/set the version of this resource.
|
String |
toString() |
public CMALink getContentType()
public CMASystem setContentType(CMALink contentType)
contentType - the new content type to be used.public String getCreatedAt()
public CMALink getCreatedBy()
public String getFirstPublishedAt()
public String getId()
public CMASystem setId(String id)
id - the new id to be used.public CMAType getLinkType()
public CMASystem setLinkType(CMAType linkType)
linkType - one type to link to.public String getPublishedAt()
public CMALink getPublishedBy()
public Integer getPublishedCounter()
public Integer getPublishedVersion()
public CMALink getSpace()
public CMASystem setSpace(CMALink space)
space - update the space of this element.public CMASystem setType(CMAType type)
This method is especially usefull for creating new resources before uploading them.
type - what type is this resource?public String getUpdatedAt()
public CMALink getUpdatedBy()
public Integer getVersion()
public CMASystem setVersion(Integer version)
version - which version are we referring to?public Integer getArchivedVersion()
Copyright © 2017 Contentful, GmbH.. All Rights Reserved.