@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class Allocation extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_CREATED_AT |
static String |
JSON_PROPERTY_ENVIRONMENT_IDS |
static String |
JSON_PROPERTY_EXPERIMENT_ID |
static String |
JSON_PROPERTY_EXPOSURE_SCHEDULE |
static String |
JSON_PROPERTY_GUARDRAIL_METRICS |
static String |
JSON_PROPERTY_ID |
static String |
JSON_PROPERTY_KEY |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_ORDER_POSITION |
static String |
JSON_PROPERTY_TARGETING_RULES |
static String |
JSON_PROPERTY_TYPE |
static String |
JSON_PROPERTY_UPDATED_AT |
static String |
JSON_PROPERTY_VARIANT_WEIGHTS |
boolean |
unparsed |
| Constructor and Description |
|---|
Allocation() |
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) |
| Modifier and Type | Method and Description |
|---|---|
Allocation |
addEnvironmentIdsItem(UUID environmentIdsItem) |
Allocation |
addGuardrailMetricsItem(GuardrailMetric guardrailMetricsItem) |
Allocation |
addTargetingRulesItem(TargetingRule targetingRulesItem) |
Allocation |
addVariantWeightsItem(VariantWeight variantWeightsItem) |
Allocation |
createdAt(OffsetDateTime createdAt) |
Allocation |
environmentIds(List<UUID> environmentIds) |
boolean |
equals(Object o)
Return true if this Allocation object is equal to o.
|
Allocation |
experimentId(String experimentId) |
Allocation |
exposureSchedule(AllocationExposureSchedule exposureSchedule) |
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
OffsetDateTime |
getCreatedAt()
The timestamp when the targeting rule allocation was created.
|
List<UUID> |
getEnvironmentIds()
Environment IDs associated with this targeting rule allocation.
|
org.openapitools.jackson.nullable.JsonNullable<String> |
getExperimentId_JsonNullable() |
String |
getExperimentId()
The experiment ID linked to this targeting rule allocation.
|
AllocationExposureSchedule |
getExposureSchedule()
Progressive release details for a targeting rule allocation.
|
List<GuardrailMetric> |
getGuardrailMetrics()
Guardrail metrics associated with this targeting rule allocation.
|
UUID |
getId()
The unique identifier of the targeting rule allocation.
|
String |
getKey()
The unique key of the targeting rule allocation.
|
String |
getName()
The display name of the targeting rule.
|
Long |
getOrderPosition()
Sort order position within the environment.
|
List<TargetingRule> |
getTargetingRules()
Conditions associated with this targeting rule allocation.
|
AllocationType |
getType()
The type of targeting rule (called allocation in the API model).
|
OffsetDateTime |
getUpdatedAt()
The timestamp when the targeting rule allocation was last updated.
|
List<VariantWeight> |
getVariantWeights()
Weighted variant assignments for this targeting rule allocation.
|
Allocation |
guardrailMetrics(List<GuardrailMetric> guardrailMetrics) |
int |
hashCode() |
Allocation |
id(UUID id) |
Allocation |
key(String key) |
Allocation |
name(String name) |
Allocation |
orderPosition(Long orderPosition) |
Allocation |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setCreatedAt(OffsetDateTime createdAt) |
void |
setEnvironmentIds(List<UUID> environmentIds) |
void |
setExperimentId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> experimentId) |
void |
setExperimentId(String experimentId) |
void |
setExposureSchedule(AllocationExposureSchedule exposureSchedule) |
void |
setGuardrailMetrics(List<GuardrailMetric> guardrailMetrics) |
void |
setId(UUID id) |
void |
setKey(String key) |
void |
setName(String name) |
void |
setOrderPosition(Long orderPosition) |
void |
setTargetingRules(List<TargetingRule> targetingRules) |
void |
setType(AllocationType type) |
void |
setUpdatedAt(OffsetDateTime updatedAt) |
void |
setVariantWeights(List<VariantWeight> variantWeights) |
Allocation |
targetingRules(List<TargetingRule> targetingRules) |
String |
toString() |
Allocation |
type(AllocationType type) |
Allocation |
updatedAt(OffsetDateTime updatedAt) |
Allocation |
variantWeights(List<VariantWeight> variantWeights) |
public boolean unparsed
public static final String JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_ENVIRONMENT_IDS
public static final String JSON_PROPERTY_EXPERIMENT_ID
public static final String JSON_PROPERTY_EXPOSURE_SCHEDULE
public static final String JSON_PROPERTY_GUARDRAIL_METRICS
public static final String JSON_PROPERTY_ID
public static final String JSON_PROPERTY_KEY
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_ORDER_POSITION
public static final String JSON_PROPERTY_TARGETING_RULES
public static final String JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_UPDATED_AT
public static final String JSON_PROPERTY_VARIANT_WEIGHTS
public 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)
public Allocation createdAt(OffsetDateTime createdAt)
public OffsetDateTime getCreatedAt()
public void setCreatedAt(OffsetDateTime createdAt)
public Allocation environmentIds(List<UUID> environmentIds)
public Allocation addEnvironmentIdsItem(UUID environmentIdsItem)
public List<UUID> getEnvironmentIds()
public Allocation experimentId(String experimentId)
@Nullable public String getExperimentId()
public org.openapitools.jackson.nullable.JsonNullable<String> getExperimentId_JsonNullable()
public void setExperimentId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> experimentId)
public void setExperimentId(String experimentId)
public Allocation exposureSchedule(AllocationExposureSchedule exposureSchedule)
@Nullable public AllocationExposureSchedule getExposureSchedule()
public void setExposureSchedule(AllocationExposureSchedule exposureSchedule)
public Allocation guardrailMetrics(List<GuardrailMetric> guardrailMetrics)
public Allocation addGuardrailMetricsItem(GuardrailMetric guardrailMetricsItem)
public List<GuardrailMetric> getGuardrailMetrics()
public void setGuardrailMetrics(List<GuardrailMetric> guardrailMetrics)
public Allocation id(UUID id)
@Nullable public UUID getId()
public void setId(UUID id)
public Allocation key(String key)
public String getKey()
public void setKey(String key)
public Allocation name(String name)
public String getName()
public void setName(String name)
public Allocation orderPosition(Long orderPosition)
public Long getOrderPosition()
public void setOrderPosition(Long orderPosition)
public Allocation targetingRules(List<TargetingRule> targetingRules)
public Allocation addTargetingRulesItem(TargetingRule targetingRulesItem)
public List<TargetingRule> getTargetingRules()
public void setTargetingRules(List<TargetingRule> targetingRules)
public Allocation type(AllocationType type)
public AllocationType getType()
public void setType(AllocationType type)
public Allocation updatedAt(OffsetDateTime updatedAt)
public OffsetDateTime getUpdatedAt()
public void setUpdatedAt(OffsetDateTime updatedAt)
public Allocation variantWeights(List<VariantWeight> variantWeights)
public Allocation addVariantWeightsItem(VariantWeight variantWeightsItem)
public List<VariantWeight> getVariantWeights()
public void setVariantWeights(List<VariantWeight> variantWeights)
public Allocation putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.