Package com.datadog.api.client.v2.model
Class Allocation
java.lang.Object
com.datadog.api.client.v2.model.Allocation
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class Allocation
extends Object
Targeting rule (allocation) details for a feature flag environment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionAllocation(OffsetDateTime createdAt, List<UUID> environmentIds, List<GuardrailMetric> guardrailMetrics, String key, String name, Long orderPosition, List<TargetingRule> targetingRules, AllocationType type, OffsetDateTime updatedAt, List<VariantWeight> variantWeights) -
Method Summary
Modifier and TypeMethodDescriptionaddEnvironmentIdsItem(UUID environmentIdsItem) addGuardrailMetricsItem(GuardrailMetric guardrailMetricsItem) addTargetingRulesItem(TargetingRule targetingRulesItem) addVariantWeightsItem(VariantWeight variantWeightsItem) createdAt(OffsetDateTime createdAt) environmentIds(List<UUID> environmentIds) booleanReturn true if this Allocation object is equal to o.experimentId(String experimentId) exposureSchedule(AllocationExposureSchedule exposureSchedule) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The timestamp when the targeting rule allocation was created.Environment IDs associated with this targeting rule allocation.The experiment ID linked to this targeting rule allocation.org.openapitools.jackson.nullable.JsonNullable<String>Progressive release details for a targeting rule allocation.Guardrail metrics associated with this targeting rule allocation.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.Sort order position within the environment.Conditions associated with this targeting rule allocation.getType()The type of targeting rule (called allocation in the API model).The timestamp when the targeting rule allocation was last updated.Weighted variant assignments for this targeting rule allocation.guardrailMetrics(List<GuardrailMetric> guardrailMetrics) inthashCode()orderPosition(Long orderPosition) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCreatedAt(OffsetDateTime createdAt) voidsetEnvironmentIds(List<UUID> environmentIds) voidsetExperimentId(String experimentId) voidsetExperimentId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> experimentId) voidsetExposureSchedule(AllocationExposureSchedule exposureSchedule) voidsetGuardrailMetrics(List<GuardrailMetric> guardrailMetrics) voidvoidvoidvoidsetOrderPosition(Long orderPosition) voidsetTargetingRules(List<TargetingRule> targetingRules) voidsetType(AllocationType type) voidsetUpdatedAt(OffsetDateTime updatedAt) voidsetVariantWeights(List<VariantWeight> variantWeights) targetingRules(List<TargetingRule> targetingRules) toString()type(AllocationType type) updatedAt(OffsetDateTime updatedAt) variantWeights(List<VariantWeight> variantWeights)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_ENVIRONMENT_IDS
- See Also:
-
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_ORDER_POSITION
- See Also:
-
JSON_PROPERTY_TARGETING_RULES
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
JSON_PROPERTY_VARIANT_WEIGHTS
- See Also:
-
-
Constructor Details
-
Allocation
public Allocation() -
Allocation
public Allocation(OffsetDateTime createdAt, List<UUID> environmentIds, List<GuardrailMetric> guardrailMetrics, String key, String name, Long orderPosition, List<TargetingRule> targetingRules, AllocationType type, OffsetDateTime updatedAt, List<VariantWeight> variantWeights)
-
-
Method Details
-
createdAt
-
getCreatedAt
The timestamp when the targeting rule allocation was created.- Returns:
- createdAt
-
setCreatedAt
-
environmentIds
-
addEnvironmentIdsItem
-
getEnvironmentIds
Environment IDs associated with this targeting rule allocation.- Returns:
- environmentIds
-
setEnvironmentIds
-
experimentId
-
getExperimentId
The experiment ID linked to this targeting rule allocation.- Returns:
- experimentId
-
getExperimentId_JsonNullable
-
setExperimentId_JsonNullable
public void setExperimentId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> experimentId) -
setExperimentId
-
exposureSchedule
-
getExposureSchedule
Progressive release details for a targeting rule allocation.- Returns:
- exposureSchedule
-
setExposureSchedule
-
guardrailMetrics
-
addGuardrailMetricsItem
-
getGuardrailMetrics
Guardrail metrics associated with this targeting rule allocation.- 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
-
orderPosition
-
getOrderPosition
Sort order position within the environment.- Returns:
- orderPosition
-
setOrderPosition
-
targetingRules
-
addTargetingRulesItem
-
getTargetingRules
Conditions associated with this targeting rule allocation.- Returns:
- targetingRules
-
setTargetingRules
-
type
-
getType
The type of targeting rule (called allocation in the API model).- Returns:
- type
-
setType
-
updatedAt
-
getUpdatedAt
The timestamp when the targeting rule allocation was last updated.- Returns:
- updatedAt
-
setUpdatedAt
-
variantWeights
-
addVariantWeightsItem
-
getVariantWeights
Weighted variant assignments for this targeting rule allocation.- 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:
- Allocation
-
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 Allocation object is equal to o. -
hashCode
public int hashCode() -
toString
-