Package com.datadog.api.client.v2.model
Class ObservabilityPipelineHttpServerSourceValidToken
java.lang.Object
com.datadog.api.client.v2.model.ObservabilityPipelineHttpServerSourceValidToken
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineHttpServerSourceValidToken
extends Object
An accepted token used to authenticate incoming HTTP server requests.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this ObservabilityPipelineHttpServerSourceValidToken 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.Specifies where the worker extracts the token from in the incoming HTTP request.Name of the environment variable or secret that holds the expected token value.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetEnabled(Boolean enabled) voidvoidvoidsetTokenKey(String tokenKey) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_FIELD_TO_ADD
- See Also:
-
JSON_PROPERTY_PATH_TO_TOKEN
- See Also:
-
JSON_PROPERTY_TOKEN_KEY
- See Also:
-
-
Constructor Details
-
ObservabilityPipelineHttpServerSourceValidToken
public ObservabilityPipelineHttpServerSourceValidToken() -
ObservabilityPipelineHttpServerSourceValidToken
-
-
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 ObservabilityPipelineHttpServerSourceValidToken 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
-
pathToToken
public ObservabilityPipelineHttpServerSourceValidToken pathToToken(ObservabilityPipelineHttpServerSourceValidTokenPathToToken pathToToken) -
getPathToToken
Specifies where the worker extracts the token from in the incoming HTTP request. This can be either a built-in location (pathoraddress) or an HTTP header object.- Returns:
- pathToToken
-
setPathToToken
-
tokenKey
-
getTokenKey
Name of the environment variable or secret that holds the expected token value.- Returns:
- tokenKey
-
setTokenKey
-
putAdditionalProperty
public ObservabilityPipelineHttpServerSourceValidToken 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:
- ObservabilityPipelineHttpServerSourceValidToken
-
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 ObservabilityPipelineHttpServerSourceValidToken object is equal to o. -
hashCode
public int hashCode() -
toString
-