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