Package com.datadog.api.client.v2.model
Class CustomDestinationForwardDestinationSplunk
java.lang.Object
com.datadog.api.client.v2.model.CustomDestinationForwardDestinationSplunk
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CustomDestinationForwardDestinationSplunk
extends Object
The Splunk HTTP Event Collector (HEC) destination.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomDestinationForwardDestinationSplunk(String accessToken, String endpoint, CustomDestinationForwardDestinationSplunkType type) -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) booleanReturn true if this CustomDestinationForwardDestinationSplunk object is equal to o.Access token of the Splunk HTTP Event Collector.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.voidsetAccessToken(String accessToken) 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_ACCESS_TOKEN
- See Also:
-
JSON_PROPERTY_ENDPOINT
- See Also:
-
JSON_PROPERTY_SOURCETYPE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
CustomDestinationForwardDestinationSplunk
public CustomDestinationForwardDestinationSplunk() -
CustomDestinationForwardDestinationSplunk
public CustomDestinationForwardDestinationSplunk(String accessToken, String endpoint, CustomDestinationForwardDestinationSplunkType type)
-
-
Method Details
-
accessToken
-
getAccessToken
Access token of the Splunk HTTP Event Collector. This field is not returned by the API.- Returns:
- accessToken
-
setAccessToken
-
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
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:
- CustomDestinationForwardDestinationSplunk
-
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 CustomDestinationForwardDestinationSplunk object is equal to o. -
hashCode
public int hashCode() -
toString
-