public class CMASystem
extends java.lang.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 |
---|---|
java.lang.Integer |
getArchivedVersion() |
CMALink |
getContentType() |
java.lang.String |
getCreatedAt() |
CMALink |
getCreatedBy() |
CMALink |
getEnvironment() |
CMALink |
getEnvironmentalStatus()
Return a link to the state of this environment
|
java.lang.String |
getFirstPublishedAt() |
java.lang.String |
getId() |
CMAType |
getLinkType() |
java.lang.String |
getPublishedAt() |
CMALink |
getPublishedBy() |
java.lang.Integer |
getPublishedCounter() |
java.lang.Integer |
getPublishedVersion() |
CMALink |
getSpace() |
CMAType |
getType() |
java.lang.String |
getUpdatedAt() |
CMALink |
getUpdatedBy() |
java.lang.Integer |
getVersion() |
CMASystem |
setContentType(CMALink contentType)
Change the content type of this resource.
|
CMASystem |
setId(java.lang.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(java.lang.Integer version)
Update/set the version of this resource.
|
java.lang.String |
toString() |
public CMALink getContentType()
public CMASystem setContentType(CMALink contentType)
contentType
- the new content type to be used.public java.lang.String getCreatedAt()
public CMALink getCreatedBy()
public java.lang.String getFirstPublishedAt()
public java.lang.String getId()
public CMASystem setId(java.lang.String id)
id
- the new id to be used.public CMAType getLinkType()
public CMASystem setLinkType(CMAType linkType)
linkType
- one type to link to.public java.lang.String getPublishedAt()
public CMALink getPublishedBy()
public java.lang.Integer getPublishedCounter()
public java.lang.Integer getPublishedVersion()
public CMALink getSpace()
public CMASystem setSpace(CMALink space)
space
- update the space of this element.public CMALink getEnvironment()
public CMASystem setType(CMAType type)
This method is especially usefull for creating new resources before uploading them.
type
- what type is this resource?public java.lang.String getUpdatedAt()
public CMALink getUpdatedBy()
public java.lang.Integer getVersion()
public CMASystem setVersion(java.lang.Integer version)
version
- which version are we referring to?public java.lang.Integer getArchivedVersion()
public CMALink getEnvironmentalStatus()
This field is only active on an environment.
CMAEnvironment.getStatus()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.