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(java.lang.String id)
Set this ids value.
|
CMALink |
setSpaceId(java.lang.String spaceId)
Set the id of the space this link.
|
CMALink |
setSystem(CMASystem system)
Change ths system property to a new one.
|
CMALink |
setVersion(java.lang.Integer version)
Change this instances version number.
|
java.lang.String |
toString() |
getEnvironmentId, getId, getSpaceId, getSystem, getVersion, isArchived, isPublished, setEnvironmentId
public 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 CMAResource
system
- the system property to be set.public CMALink setId(java.lang.String id)
setId
in class CMAResource
id
- to be set.public CMALink setVersion(java.lang.Integer version)
setVersion
in class CMAResource
version
- the version number to be set.public CMALink setSpaceId(java.lang.String spaceId)
setSpaceId
in class CMAResource
spaceId
- the id to be set.public java.lang.String toString()
toString
in class CMAResource
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.