Package com.datadog.api.client.v2.model
Class ObservabilityPipelineSplunkHecSourceValidToken
java.lang.Object
com.datadog.api.client.v2.model.ObservabilityPipelineSplunkHecSourceValidToken
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineSplunkHecSourceValidToken
extends Object
An accepted HEC token used to authenticate incoming Splunk HEC requests.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this ObservabilityPipelineSplunkHecSourceValidToken object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Indicates whether this token is currently accepted.An optional metadata field that is attached to every event authenticated by the associated token.Name of the environment variable or secret that holds the expected HEC token value.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetEnabled(Boolean enabled) voidvoidsetTokenKey(String tokenKey) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_FIELD_TO_ADD
- See Also:
-
JSON_PROPERTY_TOKEN_KEY
- See Also:
-
-
Constructor Details
-
ObservabilityPipelineSplunkHecSourceValidToken
public ObservabilityPipelineSplunkHecSourceValidToken() -
ObservabilityPipelineSplunkHecSourceValidToken
-
-
Method Details
-
enabled
-
getEnabled
Indicates whether this token is currently accepted. Disabled tokens are rejected without being removed from the configuration.- Returns:
- enabled
-
setEnabled
-
fieldToAdd
public ObservabilityPipelineSplunkHecSourceValidToken fieldToAdd(ObservabilityPipelineSourceValidTokenFieldToAdd fieldToAdd) -
getFieldToAdd
An optional metadata field that is attached to every event authenticated by the associated token. Bothkeyandvaluemust match^[A-Za-z0-9_]+$.- Returns:
- fieldToAdd
-
setFieldToAdd
-
tokenKey
-
getTokenKey
Name of the environment variable or secret that holds the expected HEC token value.- Returns:
- tokenKey
-
setTokenKey
-
putAdditionalProperty
public ObservabilityPipelineSplunkHecSourceValidToken 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:
- ObservabilityPipelineSplunkHecSourceValidToken
-
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 ObservabilityPipelineSplunkHecSourceValidToken object is equal to o. -
hashCode
public int hashCode() -
toString
-