Package com.contentful.java.cma.model
Class CMAWebhookTransformation
- java.lang.Object
-
- com.contentful.java.cma.model.CMAWebhookTransformation
-
public class CMAWebhookTransformation extends java.lang.ObjectCMAWebhookTransformationThis class will be used to represent a transformation property.
-
-
Constructor Summary
Constructors Constructor Description CMAWebhookTransformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBody()java.lang.StringgetContentType()java.lang.BooleangetIncludeContentLength()Whether the content length is included in the webhook transformation.java.lang.StringgetMethod()CMAWebhookTransformationsetBody(java.lang.String body)Sets the webhook transformation body.CMAWebhookTransformationsetContentType(java.lang.String contentType)Sets a content type to this webhook transformation.CMAWebhookTransformationsetIncludeContentLength(java.lang.Boolean includeContentLength)Sets whether the content length is included in the webhook transformation.CMAWebhookTransformationsetMethod(java.lang.String method)Sets a HTTP method to this webhook transformation.java.lang.StringtoString()
-
-
-
Method Detail
-
getMethod
public java.lang.String getMethod()
- Returns:
- the custom HTTP method of this transformation
-
setMethod
public CMAWebhookTransformation setMethod(java.lang.String method)
Sets a HTTP method to this webhook transformation.- Parameters:
method- custom HTTP method- Returns:
- this webhook for chaining
-
getContentType
public java.lang.String getContentType()
- Returns:
- the content type of this webhook transformation.
-
setContentType
public CMAWebhookTransformation setContentType(java.lang.String contentType)
Sets a content type to this webhook transformation.- Parameters:
contentType- the contentType to set- Returns:
- this webhook for chaining
-
getIncludeContentLength
public java.lang.Boolean getIncludeContentLength()
Whether the content length is included in the webhook transformation.- Returns:
trueif content length is included,falseotherwise
-
setIncludeContentLength
public CMAWebhookTransformation setIncludeContentLength(java.lang.Boolean includeContentLength)
Sets whether the content length is included in the webhook transformation.- Parameters:
includeContentLength- the includeContentLength flag to set- Returns:
- this webhook for chaining
-
getBody
public java.lang.String getBody()
- Returns:
- the webhook transformation body
-
setBody
public CMAWebhookTransformation setBody(java.lang.String body)
Sets the webhook transformation body.- Parameters:
body- the body of the transformation can be any arbitrary JSON data structure- Returns:
- this webhook for chaining
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- a human readable string, representing the object.
-
-