Class WebhooksIntegration

java.lang.Object
com.datadog.api.client.v1.model.WebhooksIntegration

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class WebhooksIntegration extends Object
Datadog-Webhooks integration.
  • Field Details

  • Constructor Details

    • WebhooksIntegration

      public WebhooksIntegration()
    • WebhooksIntegration

      public WebhooksIntegration(String name, String url)
  • Method Details

    • customHeaders

      public WebhooksIntegration customHeaders(String customHeaders)
    • getCustomHeaders

      @Nullable public String getCustomHeaders()
      If null, uses no header. If given a JSON payload, these will be headers attached to your webhook.
      Returns:
      customHeaders
    • getCustomHeaders_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getCustomHeaders_JsonNullable()
    • setCustomHeaders_JsonNullable

      public void setCustomHeaders_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> customHeaders)
    • setCustomHeaders

      public void setCustomHeaders(String customHeaders)
    • encodeAs

    • getEncodeAs

      @Nullable public WebhooksIntegrationEncoding getEncodeAs()
      Encoding type. Can be given either json or form.
      Returns:
      encodeAs
    • setEncodeAs

      public void setEncodeAs(WebhooksIntegrationEncoding encodeAs)
    • name

      public WebhooksIntegration name(String name)
    • getName

      public String getName()
      The name of the webhook. It corresponds with <WEBHOOK_NAME>. Learn more on how to use it in monitor notifications.
      Returns:
      name
    • setName

      public void setName(String name)
    • payload

      public WebhooksIntegration payload(String payload)
    • getPayload

      @Nullable public String getPayload()
      If null, uses the default payload. If given a JSON payload, the webhook returns the payload specified by the given payload. Webhooks variable usage.
      Returns:
      payload
    • getPayload_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getPayload_JsonNullable()
    • setPayload_JsonNullable

      public void setPayload_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> payload)
    • setPayload

      public void setPayload(String payload)
    • url

      public WebhooksIntegration url(String url)
    • getUrl

      public String getUrl()
      URL of the webhook.
      Returns:
      url
    • setUrl

      public void setUrl(String url)
    • putAdditionalProperty

      public WebhooksIntegration putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      WebhooksIntegration
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this WebhooksIntegration object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object