Class CMAWebhookTransformation


  • public class CMAWebhookTransformation
    extends java.lang.Object
    CMAWebhookTransformation

    This class will be used to represent a transformation property.

    • Constructor Detail

      • CMAWebhookTransformation

        public CMAWebhookTransformation()
    • 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:
        true if content length is included, false otherwise
      • 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:
        toString in class java.lang.Object
        Returns:
        a human readable string, representing the object.