Class WebhooksIntegrationUpdateRequest

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class WebhooksIntegrationUpdateRequest extends Object
Update request of a Webhooks integration object.

All properties are optional.

  • Field Details

  • Constructor Details

    • WebhooksIntegrationUpdateRequest

      public WebhooksIntegrationUpdateRequest()
  • Method Details

    • customHeaders

      public WebhooksIntegrationUpdateRequest 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
    • 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

    • getName

      @Nullable 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 WebhooksIntegrationUpdateRequest 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

    • getUrl

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

      public void setUrl(String url)
    • putAdditionalProperty

      public WebhooksIntegrationUpdateRequest 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:
      WebhooksIntegrationUpdateRequest
    • 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 WebhooksIntegrationUpdateRequest 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