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