Package com.contentful.java.cma.model
Class CMATag
- java.lang.Object
-
- com.contentful.java.cma.model.CMAResource
-
- com.contentful.java.cma.model.CMATag
-
public class CMATag extends CMAResource
Represents a resource of type environment.
-
-
Constructor Summary
Constructors Constructor Description CMATag()Create a tag using the default types for the system property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()Override retrieval of the tag id here, since the id of this tag is it's id.java.lang.StringgetName()CMAVisibilitygetVisibility()CMATagsetId(java.lang.String id)Sets the id of this tag.CMATagsetName(java.lang.String name)Sets the name for this tag.CMATagsetSystem(CMASystem system)Sets the system field.<T extends CMAResource>
TsetVisibility(CMAVisibility visibility)Convenience method for setting a version.java.lang.StringtoString()-
Methods inherited from class com.contentful.java.cma.model.CMAResource
getEnvironmentId, getSpaceId, getSystem, getVersion, isArchived, isPublished, setEnvironmentId, setSpaceId, setVersion
-
-
-
-
Method Detail
-
getVisibility
public CMAVisibility getVisibility()
- Overrides:
getVisibilityin classCMAResource- Returns:
- the
sys.visibilityvalue, null if it does not exist.
-
setVisibility
public <T extends CMAResource> T setVisibility(CMAVisibility visibility)
Description copied from class:CMAResourceConvenience method for setting a version.- Overrides:
setVisibilityin classCMAResource- Parameters:
visibility- the visibility to be set.- Returns:
- the calling
CMAResourcefor chaining.
-
setSystem
public CMATag 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 tag.
-
setName
public CMATag setName(java.lang.String name)
Sets the name for this tag.- Parameters:
name- the name of the tag to be set- Returns:
- this
CMATaginstance.
-
setId
public CMATag setId(java.lang.String id)
Sets the id of this tag.- Overrides:
setIdin classCMAResource- Parameters:
id- to be set.- Returns:
- this instance for chaining.
-
getId
public java.lang.String getId()
Override retrieval of the tag id here, since the id of this tag is it's id.- Overrides:
getIdin classCMAResource- Returns:
- the ID of the tag
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCMAResource- Returns:
- a human readable string, representing the object.
-
-