public class CMAResource extends Object
| Constructor and Description |
|---|
CMAResource(CMAType type) |
| Modifier and Type | Method and Description |
|---|---|
String |
getEnvironmentId() |
String |
getId() |
String |
getSpaceId() |
CMASystem |
getSystem() |
Integer |
getVersion() |
CMAVisibility |
getVisibility() |
Boolean |
isArchived() |
Boolean |
isPublished() |
<T extends CMAResource> |
setEnvironmentId(String environmentId)
Convenience method for setting an environment id.
|
<T extends CMAResource> |
setId(String id)
Sets the ID for this CMAResource.
|
<T extends CMAResource> |
setSpaceId(String spaceId)
Convenience method for setting a space id.
|
<T extends CMAResource> |
setSystem(CMASystem system)
Sets the system field.
|
<T extends CMAResource> |
setVersion(Integer version)
Convenience method for setting a version.
|
<T extends CMAResource> |
setVisibility(CMAVisibility visibility)
Convenience method for setting a version.
|
String |
toString() |
public CMAResource(CMAType type)
public CMASystem getSystem()
public <T extends CMAResource> T setSystem(CMASystem system)
T - resource type to be returned.system - sets the system property.public String getId()
sys.id value, null if it is does not exist.public <T extends CMAResource> T setId(String id)
T - resource type to be returned.id - to be set.CMAResource instance.public Integer getVersion()
sys.version value, null if it does not exist.public CMAVisibility getVisibility()
sys.visibility value, null if it does not exist.public <T extends CMAResource> T setVersion(Integer version)
T - the type of the CMAResource calling.version - the version number to be set.CMAResource for chaining.public <T extends CMAResource> T setVisibility(CMAVisibility visibility)
visibility - the visibility to be set.CMAResource for chaining.public String getSpaceId()
public <T extends CMAResource> T setSpaceId(String spaceId)
T - An implementation of CMAResource, normally used for chaining setter methods.spaceId - the id to be set.CMAResource for chaining.public String getEnvironmentId()
Constants.DEFAULT_ENVIRONMENT if it does not exist.public <T extends CMAResource> T setEnvironmentId(String environmentId)
T - An implementation of CMAResource, normally used for chaining setter methods.environmentId - the id to be set.CMAResource for chaining.public Boolean isArchived()
public Boolean isPublished()
Copyright © 2026 Contentful, GmbH.. All rights reserved.