Class CustomDestinationResponseForwardDestinationSplunk

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CustomDestinationResponseForwardDestinationSplunk extends Object
The Splunk HTTP Event Collector (HEC) destination.
  • Field Details

  • Constructor Details

    • CustomDestinationResponseForwardDestinationSplunk

      public CustomDestinationResponseForwardDestinationSplunk()
    • CustomDestinationResponseForwardDestinationSplunk

      public CustomDestinationResponseForwardDestinationSplunk(String endpoint, CustomDestinationResponseForwardDestinationSplunkType type)
  • Method Details

    • endpoint

    • getEndpoint

      public String getEndpoint()
      The destination for which logs will be forwarded to. Must have HTTPS scheme and forwarding back to Datadog is not allowed.
      Returns:
      endpoint
    • setEndpoint

      public void setEndpoint(String endpoint)
    • sourcetype

    • getSourcetype

      @Nullable public String getSourcetype()
      The Splunk sourcetype for the events sent to this Splunk destination.

      If the field is absent from the request and no sourcetype has been previously set on this destination, the default sourcetype _json is used. On update, if the field is absent from the request but a sourcetype was previously set, the previous value is kept. If set to null, the sourcetype field is omitted from the forwarded event entirely. Otherwise, the provided string value is used as the sourcetype.

      Returns:
      sourcetype
    • getSourcetype_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getSourcetype_JsonNullable()
    • setSourcetype_JsonNullable

      public void setSourcetype_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> sourcetype)
    • setSourcetype

      public void setSourcetype(String sourcetype)
    • type

    • getType

      Type of the Splunk HTTP Event Collector (HEC) destination.
      Returns:
      type
    • setType

    • putAdditionalProperty

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