public class CMALink extends CMAResource
It contains a type and a linked type in its system property.
| Constructor and Description |
|---|
CMALink()
Create a generic link.
|
CMALink(CMAResource resource)
Sets the target type and id from a given resource.
|
CMALink(CMAType linkedType)
Create a fully specified link, with type and linkedType.
|
| Modifier and Type | Method and Description |
|---|---|
CMALink |
setId(String id)
Set this ids value.
|
CMALink |
setSpaceId(String spaceId)
Set the id of the space this link.
|
CMALink |
setSystem(CMASystem system)
Change ths system property to a new one.
|
CMALink |
setVersion(Integer version)
Change this instances version number.
|
String |
toString() |
getEnvironmentId, getId, getSpaceId, getSystem, getVersion, getVisibility, isArchived, isPublished, setEnvironmentId, setVisibilitypublic CMALink()
Depending on the path you are uploading/changing this entry in, you might need to
specify a CMASystem.setLinkType(CMAType) to make this link fully functional.
public CMALink(CMAType linkedType)
linkedType - the type this link links to.public CMALink(CMAResource resource)
resource - to be linked to.public CMALink setSystem(CMASystem system)
setSystem in class CMAResourcesystem - the system property to be set.public CMALink setId(String id)
setId in class CMAResourceid - to be set.public CMALink setVersion(Integer version)
setVersion in class CMAResourceversion - the version number to be set.public CMALink setSpaceId(String spaceId)
setSpaceId in class CMAResourcespaceId - the id to be set.public String toString()
toString in class CMAResourceCopyright © 2026 Contentful, GmbH.. All rights reserved.