Package com.datadog.api.client.v2.model
Class ObservabilityPipelinePrometheusRemoteWriteSourceValidToken
java.lang.Object
com.datadog.api.client.v2.model.ObservabilityPipelinePrometheusRemoteWriteSourceValidToken
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelinePrometheusRemoteWriteSourceValidToken
extends Object
An accepted token used to authenticate incoming Prometheus Remote Write requests.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this ObservabilityPipelinePrometheusRemoteWriteSourceValidToken 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.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) voidvoidsetTokenKey(String tokenKey) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_PATH_TO_TOKEN
- See Also:
-
JSON_PROPERTY_TOKEN_KEY
- See Also:
-
-
Constructor Details
-
ObservabilityPipelinePrometheusRemoteWriteSourceValidToken
public ObservabilityPipelinePrometheusRemoteWriteSourceValidToken() -
ObservabilityPipelinePrometheusRemoteWriteSourceValidToken
-
-
Method Details
-
enabled
-
getEnabled
Indicates whether this token is currently accepted. Disabled tokens are rejected without being removed from the configuration.- Returns:
- enabled
-
setEnabled
-
pathToToken
public ObservabilityPipelinePrometheusRemoteWriteSourceValidToken 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 ObservabilityPipelinePrometheusRemoteWriteSourceValidToken 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:
- ObservabilityPipelinePrometheusRemoteWriteSourceValidToken
-
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 ObservabilityPipelinePrometheusRemoteWriteSourceValidToken object is equal to o. -
hashCode
public int hashCode() -
toString
-