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 Details

  • Constructor Details

  • Method Details

    • createdAt

      public Allocation createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      public OffsetDateTime getCreatedAt()
      The timestamp when the targeting rule allocation was created.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • environmentIds

      public Allocation environmentIds(List<UUID> environmentIds)
    • addEnvironmentIdsItem

      public Allocation addEnvironmentIdsItem(UUID environmentIdsItem)
    • getEnvironmentIds

      public List<UUID> getEnvironmentIds()
      Environment IDs associated with this targeting rule allocation.
      Returns:
      environmentIds
    • setEnvironmentIds

      public void setEnvironmentIds(List<UUID> environmentIds)
    • experimentId

      public Allocation experimentId(String experimentId)
    • getExperimentId

      @Nullable public String getExperimentId()
      The experiment ID linked to this targeting rule allocation.
      Returns:
      experimentId
    • getExperimentId_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getExperimentId_JsonNullable()
    • setExperimentId_JsonNullable

      public void setExperimentId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> experimentId)
    • setExperimentId

      public void setExperimentId(String experimentId)
    • exposureSchedule

      public Allocation exposureSchedule(AllocationExposureSchedule exposureSchedule)
    • getExposureSchedule

      @Nullable public AllocationExposureSchedule getExposureSchedule()
      Progressive release details for a targeting rule allocation.
      Returns:
      exposureSchedule
    • setExposureSchedule

      public void setExposureSchedule(AllocationExposureSchedule exposureSchedule)
    • guardrailMetrics

      public Allocation guardrailMetrics(List<GuardrailMetric> guardrailMetrics)
    • addGuardrailMetricsItem

      public Allocation addGuardrailMetricsItem(GuardrailMetric guardrailMetricsItem)
    • getGuardrailMetrics

      public List<GuardrailMetric> getGuardrailMetrics()
      Guardrail metrics associated with this targeting rule allocation.
      Returns:
      guardrailMetrics
    • setGuardrailMetrics

      public void setGuardrailMetrics(List<GuardrailMetric> guardrailMetrics)
    • id

      public Allocation id(UUID id)
    • getId

      @Nullable public UUID getId()
      The unique identifier of the targeting rule allocation.
      Returns:
      id
    • setId

      public void setId(UUID id)
    • key

      public Allocation key(String key)
    • getKey

      public String getKey()
      The unique key of the targeting rule allocation.
      Returns:
      key
    • setKey

      public void setKey(String key)
    • name

      public Allocation name(String name)
    • getName

      public String getName()
      The display name of the targeting rule.
      Returns:
      name
    • setName

      public void setName(String name)
    • orderPosition

      public Allocation orderPosition(Long orderPosition)
    • getOrderPosition

      public Long getOrderPosition()
      Sort order position within the environment.
      Returns:
      orderPosition
    • setOrderPosition

      public void setOrderPosition(Long orderPosition)
    • targetingRules

      public Allocation targetingRules(List<TargetingRule> targetingRules)
    • addTargetingRulesItem

      public Allocation addTargetingRulesItem(TargetingRule targetingRulesItem)
    • getTargetingRules

      public List<TargetingRule> getTargetingRules()
      Conditions associated with this targeting rule allocation.
      Returns:
      targetingRules
    • setTargetingRules

      public void setTargetingRules(List<TargetingRule> targetingRules)
    • type

      public Allocation type(AllocationType type)
    • getType

      public AllocationType getType()
      The type of targeting rule (called allocation in the API model).
      Returns:
      type
    • setType

      public void setType(AllocationType type)
    • updatedAt

      public Allocation updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      public OffsetDateTime getUpdatedAt()
      The timestamp when the targeting rule allocation was last updated.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • variantWeights

      public Allocation variantWeights(List<VariantWeight> variantWeights)
    • addVariantWeightsItem

      public Allocation addVariantWeightsItem(VariantWeight variantWeightsItem)
    • getVariantWeights

      public List<VariantWeight> getVariantWeights()
      Weighted variant assignments for this targeting rule allocation.
      Returns:
      variantWeights
    • setVariantWeights

      public void setVariantWeights(List<VariantWeight> variantWeights)
    • putAdditionalProperty

      public Allocation 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 set
      value - The associated value
      Returns:
      Allocation
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this Allocation object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object