Package com.contentful.java.cma.model
Class CMAWebhookCall
- java.lang.Object
-
- com.contentful.java.cma.model.CMAResource
-
- com.contentful.java.cma.model.CMAWebhookCall
-
public class CMAWebhookCall extends CMAResource
Model class representing an overview of a call to a webhook
-
-
Constructor Summary
Constructors Constructor Description CMAWebhookCall()Create a webhook call, setting the type in it's system property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getErrors()java.lang.StringgetEventType()java.lang.StringgetRequestAt()java.lang.StringgetResponseAt()java.lang.IntegergetStatusCode()java.lang.StringgetUrl()CMAWebhookCallsetSpaceId(java.lang.String spaceId)Convenience method for setting a space id.java.lang.StringtoString()-
Methods inherited from class com.contentful.java.cma.model.CMAResource
getEnvironmentId, getId, getSpaceId, getSystem, getVersion, getVisibility, isArchived, isPublished, setEnvironmentId, setId, setSystem, setVersion, setVisibility
-
-
-
-
Method Detail
-
getStatusCode
public java.lang.Integer getStatusCode()
- Returns:
- The http status code the call to the webhook returned.
-
getResponseAt
public java.lang.String getResponseAt()
- Returns:
- The time the response of the webhook was issued.
-
getErrors
public java.util.List<java.lang.String> getErrors()
- Returns:
- A list of errors occurred during this call of the webhook.
-
getEventType
public java.lang.String getEventType()
- Returns:
- The type of event issuing this callback.
-
getUrl
public java.lang.String getUrl()
- Returns:
- Which url was called on this webhook.
-
getRequestAt
public java.lang.String getRequestAt()
- Returns:
- When did Contentful issue this webhook request?
-
setSpaceId
public CMAWebhookCall setSpaceId(java.lang.String spaceId)
Description copied from class:CMAResourceConvenience method for setting a space id.- Overrides:
setSpaceIdin classCMAResource- Parameters:
spaceId- the id to be set.- Returns:
- this object for chaining.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCMAResource- Returns:
- a human readable string, representing the object.
-
-