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 |
|---|---|
String |
getEnvironmentId()
Override retrieval of the environment id here, since the id of this environment is it's id.
|
String |
getName() |
CMAEnvironmentStatus |
getStatus()
Return the state of this environment
|
<T extends CMAResource> |
setEnvironmentId(String environmentId)
Convenience method for setting an environment id.
|
CMAEnvironment |
setId(String id)
Sets the id of this environment.
|
CMAEnvironment |
setName(String name)
Sets the name for this environment.
|
CMAEnvironment |
setSystem(CMASystem system)
Sets the system field.
|
CMAEnvironment |
setVersion(Integer version)
Set the version of this environment.
|
String |
toString() |
getId, getSpaceId, getSystem, getVersion, getVisibility, isArchived, isPublished, setSpaceId, setVisibilitypublic CMAEnvironment()
public CMAEnvironment setSystem(CMASystem system)
setSystem in class CMAResourcesystem - sets the system property.public String getName()
public CMAEnvironment setName(String name)
name - the name of the environment to be setCMAEnvironment instance.public CMAEnvironment setId(String id)
setId in class CMAResourceid - to be set.public String getEnvironmentId()
getEnvironmentId in class CMAResourceConstants.DEFAULT_ENVIRONMENT if it does not exist.public <T extends CMAResource> T setEnvironmentId(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(Integer version)
setVersion in class CMAResourceversion - the version to be set.public CMAEnvironmentStatus getStatus()
CMAEnvironmentStatus to indicate the status of the environment.public String toString()
toString in class CMAResourceCopyright © 2026 Contentful, GmbH.. All rights reserved.