Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomDestinationResponseForwardDestinationSplunk(String endpoint, CustomDestinationResponseForwardDestinationSplunkType type) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this CustomDestinationResponseForwardDestinationSplunk object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The destination for which logs will be forwarded to.The Splunk sourcetype for the events sent to this Splunk destination.org.openapitools.jackson.nullable.JsonNullable<String>getType()Type of the Splunk HTTP Event Collector (HEC) destination.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetEndpoint(String endpoint) voidsetSourcetype(String sourcetype) voidsetSourcetype_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> sourcetype) voidsourcetype(String sourcetype) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ENDPOINT
- See Also:
-
JSON_PROPERTY_SOURCETYPE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
CustomDestinationResponseForwardDestinationSplunk
public CustomDestinationResponseForwardDestinationSplunk() -
CustomDestinationResponseForwardDestinationSplunk
public CustomDestinationResponseForwardDestinationSplunk(String endpoint, CustomDestinationResponseForwardDestinationSplunkType type)
-
-
Method Details
-
endpoint
-
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
-
sourcetype
-
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
_jsonis used. On update, if the field is absent from the request but a sourcetype was previously set, the previous value is kept. If set tonull, the sourcetype field is omitted from the forwarded event entirely. Otherwise, the provided string value is used as the sourcetype.- Returns:
- sourcetype
-
getSourcetype_JsonNullable
-
setSourcetype_JsonNullable
public void setSourcetype_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> sourcetype) -
setSourcetype
-
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 setvalue- The associated value- Returns:
- CustomDestinationResponseForwardDestinationSplunk
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this CustomDestinationResponseForwardDestinationSplunk object is equal to o. -
hashCode
public int hashCode() -
toString
-