Class HTTPBody

java.lang.Object
com.datadog.api.client.v2.model.HTTPBody

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class HTTPBody extends Object
The definition of HTTPBody object.
  • Field Details

  • Constructor Details

    • HTTPBody

      public HTTPBody()
  • Method Details

    • content

      public HTTPBody content(String content)
    • getContent

      @Nullable public String getContent()
      Serialized body content
      Returns:
      content
    • setContent

      public void setContent(String content)
    • contentType

      public HTTPBody contentType(String contentType)
    • getContentType

      @Nullable public String getContentType()
      Content type of the body
      Returns:
      contentType
    • setContentType

      public void setContentType(String contentType)
    • putAdditionalProperty

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