public class CMAEnvironment extends CMAResource
| Constructor and Description |
|---|
CMAEnvironment()
Create a environment using the default types for the system property.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEnvironmentId()
Override retrieval of the environment id here, since the id of this environment is it's id.
|
java.lang.String |
getName() |
CMAEnvironmentStatus |
getStatus()
Return the state of this environment
|
<T extends CMAResource> |
setEnvironmentId(java.lang.String environmentId)
Convenience method for setting an environment id.
|
CMAEnvironment |
setId(java.lang.String id)
Sets the id of this environment.
|
CMAEnvironment |
setName(java.lang.String name)
Sets the name for this environment.
|
CMAEnvironment |
setSystem(CMASystem system)
Sets the system field.
|
CMAEnvironment |
setVersion(java.lang.Integer version)
Set the version of this environment.
|
java.lang.String |
toString() |
getId, getSpaceId, getSystem, getVersion, isArchived, isPublished, setSpaceIdpublic CMAEnvironment()
public CMAEnvironment setSystem(CMASystem system)
setSystem in class CMAResourcesystem - sets the system property.public java.lang.String getName()
public CMAEnvironment setName(java.lang.String name)
name - the name of the environment to be setCMAEnvironment instance.public CMAEnvironment setId(java.lang.String id)
setId in class CMAResourceid - to be set.public java.lang.String getEnvironmentId()
getEnvironmentId in class CMAResourceConstants.DEFAULT_ENVIRONMENT if it does not exist.public <T extends CMAResource> T setEnvironmentId(java.lang.String environmentId)
setEnvironmentId in class CMAResourceT - An implementation of CMAResource, normally used for chaining setter
methods.environmentId - the id to be set.CMAResource for chaining.public CMAEnvironment setVersion(java.lang.Integer version)
setVersion in class CMAResourceversion - the version to be set.public CMAEnvironmentStatus getStatus()
CMAEnvironmentStatus to indicate the status of the environment.public java.lang.String toString()
toString in class CMAResourceCopyright © 2019 Contentful, GmbH.. All Rights Reserved.