public class CMAContentType extends CMAResource
Constructor and Description |
---|
CMAContentType()
Create a CMAContentType, filling it's
CMASystem field. |
Modifier and Type | Method and Description |
---|---|
CMAContentType |
addField(CMAField field)
Adds a new field.
|
java.lang.String |
getDescription() |
java.lang.String |
getDisplayField() |
java.util.List<CMAField> |
getFields() |
java.lang.String |
getName() |
java.lang.Integer |
getVersion()
Convenience for getting the version of this resource.
|
CMAContentType |
setDescription(java.lang.String description)
Sets the description field for this Content Type.
|
CMAContentType |
setDisplayField(java.lang.String displayField)
Sets the display field for this Content Type.
|
CMAContentType |
setEnvironmentId(java.lang.String environmentId)
Convenience method for setting an environment id.
|
CMAContentType |
setFields(java.util.List<CMAField> fields)
Sets a list of fields for this Content Type.
|
CMAContentType |
setId(java.lang.String id)
Convenience: Update the id of this entry without going through
CMAResource.getSystem() . |
CMAContentType |
setName(java.lang.String name)
Sets the name for this Content Type.
|
CMAContentType |
setSpaceId(java.lang.String spaceId)
Convenience: Update the space id of this entry without going through
CMAResource.getSystem() . |
CMAContentType |
setSystem(CMASystem system)
Sets the system field.
|
CMAContentType |
setVersion(java.lang.Integer version)
Convenience: Update the version of this entry without going through
CMAResource.getSystem() . |
java.lang.String |
toString() |
getEnvironmentId, getId, getSpaceId, getSystem, isArchived, isPublished
public CMAContentType()
CMASystem
field.public CMAContentType addField(CMAField field)
field
- CMAField instanceCMAContentType
public java.lang.String getName()
public CMAContentType setName(java.lang.String name)
name
- nameCMAContentType
public java.util.List<CMAField> getFields()
public CMAContentType setFields(java.util.List<CMAField> fields)
fields
- List of fieldsCMAContentType
instancepublic java.lang.String getDisplayField()
public CMAContentType setDisplayField(java.lang.String displayField)
displayField
- the field to be setCMAContentType
instancepublic java.lang.String getDescription()
public CMAContentType setDescription(java.lang.String description)
description
- the description to be setCMAContentType
instancepublic CMAContentType setSystem(CMASystem system)
setSystem
in class CMAResource
system
- sets the system property.public CMAContentType setId(java.lang.String id)
CMAResource.getSystem()
.setId
in class CMAResource
id
- to be set.public java.lang.Integer getVersion()
getVersion
in class CMAResource
public CMAContentType setVersion(java.lang.Integer version)
CMAResource.getSystem()
.setVersion
in class CMAResource
version
- to be set.public CMAContentType setSpaceId(java.lang.String spaceId)
CMAResource.getSystem()
.setSpaceId
in class CMAResource
spaceId
- to be set.public CMAContentType setEnvironmentId(java.lang.String environmentId)
setEnvironmentId
in class CMAResource
environmentId
- the id to be set.CMAResource
for chaining.public java.lang.String toString()
toString
in class CMAResource
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.