Package com.contentful.java.cma.model
Class CMASpace
- java.lang.Object
-
- com.contentful.java.cma.model.CMAResource
-
- com.contentful.java.cma.model.CMASpace
-
public class CMASpace extends CMAResource
Represents a resource of type Space.
-
-
Constructor Summary
Constructors Constructor Description CMASpace()Create a space using the default types for the system property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefaultLocale()java.lang.StringgetName()java.lang.StringgetSpaceId()This method returns the actual id of this space.CMASpacesetDefaultLocale(java.lang.String defaultLocale)Set the default locale of this space.CMASpacesetId(java.lang.String id)Sets the id of this space.CMASpacesetName(java.lang.String name)Sets the name for this Space.CMASpacesetSpaceId(java.lang.String id)Sets the id of this space.CMASpacesetSystem(CMASystem system)Sets the system field.CMASpacesetVersion(java.lang.Integer version)Set the version of this space.java.lang.StringtoString()-
Methods inherited from class com.contentful.java.cma.model.CMAResource
getEnvironmentId, getId, getSystem, getVersion, getVisibility, isArchived, isPublished, setEnvironmentId, setVisibility
-
-
-
-
Method Detail
-
setSystem
public CMASpace setSystem(CMASystem system)
Sets the system field.- Overrides:
setSystemin classCMAResource- Parameters:
system- sets the system property.- Returns:
- this, as casted to a resource, for the ease of chaining.
-
getName
public java.lang.String getName()
- Returns:
- the name of this Space.
-
setName
public CMASpace setName(java.lang.String name)
Sets the name for this Space.- Parameters:
name- the name of the Space to be set- Returns:
- this
CMASpaceinstance.
-
setId
public CMASpace setId(java.lang.String id)
Sets the id of this space.- Overrides:
setIdin classCMAResource- Parameters:
id- to be set.- Returns:
- this instance for chaining.
-
setVersion
public CMASpace setVersion(java.lang.Integer version)
Set the version of this space.- Overrides:
setVersionin classCMAResource- Parameters:
version- the version to be set.- Returns:
- this space instance for chaining.
-
getSpaceId
public java.lang.String getSpaceId()
This method returns the actual id of this space.- Overrides:
getSpaceIdin classCMAResource- Returns:
- the id of this space
- See Also:
CMAResource.getId()
-
setSpaceId
public CMASpace setSpaceId(java.lang.String id)
Sets the id of this space.- Overrides:
setSpaceIdin classCMAResource- Parameters:
id- the id to be set.- Returns:
- this space instance for chaining.
- See Also:
setId(String)
-
getDefaultLocale
public java.lang.String getDefaultLocale()
- Returns:
- the default locale of this space
-
setDefaultLocale
public CMASpace setDefaultLocale(java.lang.String defaultLocale)
Set the default locale of this space.- Parameters:
defaultLocale- which locale should be default?- Returns:
- this space for ease of chaining.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCMAResource- Returns:
- a human readable string, representing the object.
-
-