public class CMAWebhookTransformation extends Object
This class will be used to represent a transformation property.
| Constructor and Description |
|---|
CMAWebhookTransformation() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBody() |
String |
getContentType() |
Boolean |
getIncludeContentLength()
Whether the content length is included in the webhook transformation.
|
String |
getMethod() |
CMAWebhookTransformation |
setBody(String body)
Sets the webhook transformation body.
|
CMAWebhookTransformation |
setContentType(String contentType)
Sets a content type to this webhook transformation.
|
CMAWebhookTransformation |
setIncludeContentLength(Boolean includeContentLength)
Sets whether the content length is included in the webhook transformation.
|
CMAWebhookTransformation |
setMethod(String method)
Sets a HTTP method to this webhook transformation.
|
String |
toString() |
public String getMethod()
public CMAWebhookTransformation setMethod(String method)
method - custom HTTP methodpublic String getContentType()
public CMAWebhookTransformation setContentType(String contentType)
contentType - the contentType to setpublic Boolean getIncludeContentLength()
true if content length is included, false otherwisepublic CMAWebhookTransformation setIncludeContentLength(Boolean includeContentLength)
includeContentLength - the includeContentLength flag to setpublic String getBody()
public CMAWebhookTransformation setBody(String body)
body - the body of the transformation can be any arbitrary JSON data structureCopyright © 2026 Contentful, GmbH.. All rights reserved.