Package com.contentful.java.cma.model
Class CMAUpload
- java.lang.Object
-
- com.contentful.java.cma.model.CMAResource
-
- com.contentful.java.cma.model.CMAUpload
-
public class CMAUpload extends CMAResource
Class representing an uploaded file, to be used as an asset.
-
-
Constructor Summary
Constructors Constructor Description CMAUpload()create an upload
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMAUploadsetEnvironmentId(java.lang.String environmentId)Convenience method for setting an environment id.CMAUploadsetId(java.lang.String id)Sets this resources id.CMAUploadsetSpaceId(java.lang.String spaceId)Set the space id in a chainable manner.CMAUploadsetSystem(CMASystem system)Update the current instances system property to a complete new one.CMAUploadsetVersion(java.lang.Integer version)Sets the version of this resource.java.lang.StringtoString()-
Methods inherited from class com.contentful.java.cma.model.CMAResource
getEnvironmentId, getId, getSpaceId, getSystem, getVersion, getVisibility, isArchived, isPublished, setVisibility
-
-
-
-
Method Detail
-
setSystem
public CMAUpload setSystem(CMASystem system)
Update the current instances system property to a complete new one.- Overrides:
setSystemin classCMAResource- Parameters:
system- sets the system property.- Returns:
- this instance for chaining.
-
setId
public CMAUpload setId(java.lang.String id)
Sets this resources id.- Overrides:
setIdin classCMAResource- Parameters:
id- to be set- Returns:
- this instance for chaining.
-
setVersion
public CMAUpload setVersion(java.lang.Integer version)
Sets the version of this resource.- Overrides:
setVersionin classCMAResource- Parameters:
version- the version number to be set.- Returns:
- this instance of CMAUpload for chaining.
-
setSpaceId
public CMAUpload setSpaceId(java.lang.String spaceId)
Set the space id in a chainable manner.- Overrides:
setSpaceIdin classCMAResource- Parameters:
spaceId- the id to be set.- Returns:
- this instance for chaining.
-
setEnvironmentId
public CMAUpload setEnvironmentId(java.lang.String environmentId)
Description copied from class:CMAResourceConvenience method for setting an environment id.- Overrides:
setEnvironmentIdin classCMAResource- Parameters:
environmentId- the id to be set.- Returns:
- the calling
CMAResourcefor chaining.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCMAResource- Returns:
- a human readable string, representing the object.
-
-