Package com.datadog.api.client.v2.model
Class UpsertAllocationRequest
java.lang.Object
com.datadog.api.client.v2.model.UpsertAllocationRequest
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class UpsertAllocationRequest
extends Object
Request to create or update a targeting rule (allocation) for a feature flag environment.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGuardrailMetricsItem(GuardrailMetricRequest guardrailMetricsItem) addTargetingRulesItem(TargetingRuleRequest targetingRulesItem) addVariantWeightsItem(VariantWeightRequest variantWeightsItem) booleanReturn true if this UpsertAllocationRequest object is equal to o.experimentId(String experimentId) exposureSchedule(ExposureScheduleRequest exposureSchedule) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The experiment ID for experiment-linked allocations.org.openapitools.jackson.nullable.JsonNullable<String>Progressive release request payload.Guardrail metrics used to monitor and auto-pause or abort.getId()The unique identifier of the targeting rule allocation.getKey()The unique key of the targeting rule allocation.getName()The display name of the targeting rule.Targeting rules that determine audience eligibility.getType()The type of targeting rule (called allocation in the API model).Variant distribution weights.guardrailMetrics(List<GuardrailMetricRequest> guardrailMetrics) inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetExperimentId(String experimentId) voidsetExperimentId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> experimentId) voidsetExposureSchedule(ExposureScheduleRequest exposureSchedule) voidsetGuardrailMetrics(List<GuardrailMetricRequest> guardrailMetrics) voidvoidvoidvoidsetTargetingRules(List<TargetingRuleRequest> targetingRules) voidsetType(AllocationType type) voidsetVariantWeights(List<VariantWeightRequest> variantWeights) targetingRules(List<TargetingRuleRequest> targetingRules) toString()type(AllocationType type) variantWeights(List<VariantWeightRequest> variantWeights)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_EXPERIMENT_ID
- See Also:
-
JSON_PROPERTY_EXPOSURE_SCHEDULE
- See Also:
-
JSON_PROPERTY_GUARDRAIL_METRICS
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_KEY
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_TARGETING_RULES
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_VARIANT_WEIGHTS
- See Also:
-
-
Constructor Details
-
UpsertAllocationRequest
public UpsertAllocationRequest() -
UpsertAllocationRequest
-
-
Method Details
-
experimentId
-
getExperimentId
The experiment ID for experiment-linked allocations.- Returns:
- experimentId
-
getExperimentId_JsonNullable
-
setExperimentId_JsonNullable
public void setExperimentId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> experimentId) -
setExperimentId
-
exposureSchedule
-
getExposureSchedule
Progressive release request payload.- Returns:
- exposureSchedule
-
setExposureSchedule
-
guardrailMetrics
-
addGuardrailMetricsItem
-
getGuardrailMetrics
Guardrail metrics used to monitor and auto-pause or abort.- Returns:
- guardrailMetrics
-
setGuardrailMetrics
-
id
-
getId
The unique identifier of the targeting rule allocation.- Returns:
- id
-
setId
-
key
-
getKey
The unique key of the targeting rule allocation.- Returns:
- key
-
setKey
-
name
-
getName
The display name of the targeting rule.- Returns:
- name
-
setName
-
targetingRules
-
addTargetingRulesItem
-
getTargetingRules
Targeting rules that determine audience eligibility.- Returns:
- targetingRules
-
setTargetingRules
-
type
-
getType
The type of targeting rule (called allocation in the API model).- Returns:
- type
-
setType
-
variantWeights
-
addVariantWeightsItem
-
getVariantWeights
Variant distribution weights.- Returns:
- variantWeights
-
setVariantWeights
-
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:
- UpsertAllocationRequest
-
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 UpsertAllocationRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-