Package com.launchdarkly.api.model
Class IterationRep
- java.lang.Object
-
- com.launchdarkly.api.model.IterationRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class IterationRep extends java.lang.ObjectIterationRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIterationRep.CustomTypeAdapterFactorystatic classIterationRep.StatusEnumThe status of the iteration: <code>not_started</code>, <code>running</code>, <code>stopped</code>
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_ATTRIBUTESstatic java.lang.StringSERIALIZED_NAME_CAN_RESHUFFLE_TRAFFICstatic java.lang.StringSERIALIZED_NAME_CREATED_ATstatic java.lang.StringSERIALIZED_NAME_ENDED_ATstatic java.lang.StringSERIALIZED_NAME_FLAGSstatic java.lang.StringSERIALIZED_NAME_HYPOTHESISstatic java.lang.StringSERIALIZED_NAME_IDstatic java.lang.StringSERIALIZED_NAME_LAYER_SNAPSHOTstatic java.lang.StringSERIALIZED_NAME_METRICSstatic java.lang.StringSERIALIZED_NAME_PRIMARY_FUNNELstatic java.lang.StringSERIALIZED_NAME_PRIMARY_METRICstatic java.lang.StringSERIALIZED_NAME_PRIMARY_SINGLE_METRICstatic java.lang.StringSERIALIZED_NAME_RANDOMIZATION_UNITstatic java.lang.StringSERIALIZED_NAME_REALLOCATION_FREQUENCY_MILLISstatic java.lang.StringSERIALIZED_NAME_SECONDARY_METRICSstatic java.lang.StringSERIALIZED_NAME_STARTED_ATstatic java.lang.StringSERIALIZED_NAME_STATUSstatic java.lang.StringSERIALIZED_NAME_TREATMENTSstatic java.lang.StringSERIALIZED_NAME_VERSIONstatic java.lang.StringSERIALIZED_NAME_WINNING_REASONstatic java.lang.StringSERIALIZED_NAME_WINNING_TREATMENT_ID
-
Constructor Summary
Constructors Constructor Description IterationRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IterationRepaddAttributesItem(java.lang.String attributesItem)IterationRepaddMetricsItem(DependentMetricOrMetricGroupRep metricsItem)IterationRepaddSecondaryMetricsItem(MetricV2Rep secondaryMetricsItem)IterationRepaddTreatmentsItem(TreatmentRep treatmentsItem)IterationRepattributes(java.util.List<java.lang.String> attributes)IterationRepcanReshuffleTraffic(java.lang.Boolean canReshuffleTraffic)IterationRepcreatedAt(java.lang.Long createdAt)IterationRependedAt(java.lang.Long endedAt)booleanequals(java.lang.Object o)IterationRepflags(java.util.Map<java.lang.String,FlagRep> flags)static IterationRepfromJson(java.lang.String jsonString)Create an instance of IterationRep given an JSON stringjava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.util.List<java.lang.String>getAttributes()The available attribute filters for this iterationjava.lang.BooleangetCanReshuffleTraffic()Whether the experiment may reassign traffic to different variations when the experiment audience changes (true) or must keep all traffic assigned to its initial variation (false).java.lang.LonggetCreatedAt()Get createdAtjava.lang.LonggetEndedAt()Get endedAtjava.util.Map<java.lang.String,FlagRep>getFlags()Details on the flag used in this experimentjava.lang.StringgetHypothesis()The expected outcome of this experimentjava.lang.StringgetId()The iteration IDLayerSnapshotRepgetLayerSnapshot()Get layerSnapshotjava.util.List<DependentMetricOrMetricGroupRep>getMetrics()Details on the metrics for this experimentDependentMetricGroupRepWithMetricsgetPrimaryFunnel()Get primaryFunnelDependentMetricOrMetricGroupRepgetPrimaryMetric()Get primaryMetricMetricV2RepgetPrimarySingleMetric()Get primarySingleMetricjava.lang.StringgetRandomizationUnit()The unit of randomization for this iterationjava.lang.IntegergetReallocationFrequencyMillis()The cadence (in milliseconds) to update the allocation.java.util.List<MetricV2Rep>getSecondaryMetrics()Deprecated.java.lang.LonggetStartedAt()Get startedAtIterationRep.StatusEnumgetStatus()The status of the iteration: <code>not_started</code>, <code>running</code>, <code>stopped</code>java.util.List<TreatmentRep>getTreatments()Details on the variations you are testing in the experimentjava.lang.IntegergetVersion()The current version that the iteration is onjava.lang.StringgetWinningReason()The reason you stopped the experimentjava.lang.StringgetWinningTreatmentId()The ID of the treatment chosen when the experiment stoppedinthashCode()IterationRephypothesis(java.lang.String hypothesis)IterationRepid(java.lang.String id)IterationReplayerSnapshot(LayerSnapshotRep layerSnapshot)IterationRepmetrics(java.util.List<DependentMetricOrMetricGroupRep> metrics)IterationRepprimaryFunnel(DependentMetricGroupRepWithMetrics primaryFunnel)IterationRepprimaryMetric(DependentMetricOrMetricGroupRep primaryMetric)IterationRepprimarySingleMetric(MetricV2Rep primarySingleMetric)IterationRepputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.IterationRepputFlagsItem(java.lang.String key, FlagRep flagsItem)IterationReprandomizationUnit(java.lang.String randomizationUnit)IterationRepreallocationFrequencyMillis(java.lang.Integer reallocationFrequencyMillis)IterationRepsecondaryMetrics(java.util.List<MetricV2Rep> secondaryMetrics)Deprecated.voidsetAttributes(java.util.List<java.lang.String> attributes)voidsetCanReshuffleTraffic(java.lang.Boolean canReshuffleTraffic)voidsetCreatedAt(java.lang.Long createdAt)voidsetEndedAt(java.lang.Long endedAt)voidsetFlags(java.util.Map<java.lang.String,FlagRep> flags)voidsetHypothesis(java.lang.String hypothesis)voidsetId(java.lang.String id)voidsetLayerSnapshot(LayerSnapshotRep layerSnapshot)voidsetMetrics(java.util.List<DependentMetricOrMetricGroupRep> metrics)voidsetPrimaryFunnel(DependentMetricGroupRepWithMetrics primaryFunnel)voidsetPrimaryMetric(DependentMetricOrMetricGroupRep primaryMetric)voidsetPrimarySingleMetric(MetricV2Rep primarySingleMetric)voidsetRandomizationUnit(java.lang.String randomizationUnit)voidsetReallocationFrequencyMillis(java.lang.Integer reallocationFrequencyMillis)voidsetSecondaryMetrics(java.util.List<MetricV2Rep> secondaryMetrics)Deprecated.voidsetStartedAt(java.lang.Long startedAt)voidsetStatus(IterationRep.StatusEnum status)voidsetTreatments(java.util.List<TreatmentRep> treatments)voidsetVersion(java.lang.Integer version)voidsetWinningReason(java.lang.String winningReason)voidsetWinningTreatmentId(java.lang.String winningTreatmentId)IterationRepstartedAt(java.lang.Long startedAt)IterationRepstatus(IterationRep.StatusEnum status)java.lang.StringtoJson()Convert an instance of IterationRep to an JSON stringjava.lang.StringtoString()IterationReptreatments(java.util.List<TreatmentRep> treatments)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundIterationRepversion(java.lang.Integer version)IterationRepwinningReason(java.lang.String winningReason)IterationRepwinningTreatmentId(java.lang.String winningTreatmentId)
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final java.lang.String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HYPOTHESIS
public static final java.lang.String SERIALIZED_NAME_HYPOTHESIS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final java.lang.String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final java.lang.String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STARTED_AT
public static final java.lang.String SERIALIZED_NAME_STARTED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENDED_AT
public static final java.lang.String SERIALIZED_NAME_ENDED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WINNING_TREATMENT_ID
public static final java.lang.String SERIALIZED_NAME_WINNING_TREATMENT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WINNING_REASON
public static final java.lang.String SERIALIZED_NAME_WINNING_REASON
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CAN_RESHUFFLE_TRAFFIC
public static final java.lang.String SERIALIZED_NAME_CAN_RESHUFFLE_TRAFFIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FLAGS
public static final java.lang.String SERIALIZED_NAME_FLAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REALLOCATION_FREQUENCY_MILLIS
public static final java.lang.String SERIALIZED_NAME_REALLOCATION_FREQUENCY_MILLIS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION
public static final java.lang.String SERIALIZED_NAME_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRIMARY_METRIC
public static final java.lang.String SERIALIZED_NAME_PRIMARY_METRIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRIMARY_SINGLE_METRIC
public static final java.lang.String SERIALIZED_NAME_PRIMARY_SINGLE_METRIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRIMARY_FUNNEL
public static final java.lang.String SERIALIZED_NAME_PRIMARY_FUNNEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RANDOMIZATION_UNIT
public static final java.lang.String SERIALIZED_NAME_RANDOMIZATION_UNIT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ATTRIBUTES
public static final java.lang.String SERIALIZED_NAME_ATTRIBUTES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TREATMENTS
public static final java.lang.String SERIALIZED_NAME_TREATMENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SECONDARY_METRICS
public static final java.lang.String SERIALIZED_NAME_SECONDARY_METRICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METRICS
public static final java.lang.String SERIALIZED_NAME_METRICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAYER_SNAPSHOT
public static final java.lang.String SERIALIZED_NAME_LAYER_SNAPSHOT
- See Also:
- Constant Field Values
-
openapiFields
public static java.util.HashSet<java.lang.String> openapiFields
-
openapiRequiredFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
-
-
Method Detail
-
id
public IterationRep id(@Nullable java.lang.String id)
-
getId
@Nullable public java.lang.String getId()
The iteration ID- Returns:
- id
-
setId
public void setId(@Nullable java.lang.String id)
-
hypothesis
public IterationRep hypothesis(@Nonnull java.lang.String hypothesis)
-
getHypothesis
@Nonnull public java.lang.String getHypothesis()
The expected outcome of this experiment- Returns:
- hypothesis
-
setHypothesis
public void setHypothesis(@Nonnull java.lang.String hypothesis)
-
status
public IterationRep status(@Nonnull IterationRep.StatusEnum status)
-
getStatus
@Nonnull public IterationRep.StatusEnum getStatus()
The status of the iteration: <code>not_started</code>, <code>running</code>, <code>stopped</code>- Returns:
- status
-
setStatus
public void setStatus(@Nonnull IterationRep.StatusEnum status)
-
createdAt
public IterationRep createdAt(@Nonnull java.lang.Long createdAt)
-
getCreatedAt
@Nonnull public java.lang.Long getCreatedAt()
Get createdAt- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(@Nonnull java.lang.Long createdAt)
-
startedAt
public IterationRep startedAt(@Nullable java.lang.Long startedAt)
-
getStartedAt
@Nullable public java.lang.Long getStartedAt()
Get startedAt- Returns:
- startedAt
-
setStartedAt
public void setStartedAt(@Nullable java.lang.Long startedAt)
-
endedAt
public IterationRep endedAt(@Nullable java.lang.Long endedAt)
-
getEndedAt
@Nullable public java.lang.Long getEndedAt()
Get endedAt- Returns:
- endedAt
-
setEndedAt
public void setEndedAt(@Nullable java.lang.Long endedAt)
-
winningTreatmentId
public IterationRep winningTreatmentId(@Nullable java.lang.String winningTreatmentId)
-
getWinningTreatmentId
@Nullable public java.lang.String getWinningTreatmentId()
The ID of the treatment chosen when the experiment stopped- Returns:
- winningTreatmentId
-
setWinningTreatmentId
public void setWinningTreatmentId(@Nullable java.lang.String winningTreatmentId)
-
winningReason
public IterationRep winningReason(@Nullable java.lang.String winningReason)
-
getWinningReason
@Nullable public java.lang.String getWinningReason()
The reason you stopped the experiment- Returns:
- winningReason
-
setWinningReason
public void setWinningReason(@Nullable java.lang.String winningReason)
-
canReshuffleTraffic
public IterationRep canReshuffleTraffic(@Nullable java.lang.Boolean canReshuffleTraffic)
-
getCanReshuffleTraffic
@Nullable public java.lang.Boolean getCanReshuffleTraffic()
Whether the experiment may reassign traffic to different variations when the experiment audience changes (true) or must keep all traffic assigned to its initial variation (false).- Returns:
- canReshuffleTraffic
-
setCanReshuffleTraffic
public void setCanReshuffleTraffic(@Nullable java.lang.Boolean canReshuffleTraffic)
-
flags
public IterationRep flags(@Nullable java.util.Map<java.lang.String,FlagRep> flags)
-
putFlagsItem
public IterationRep putFlagsItem(java.lang.String key, FlagRep flagsItem)
-
getFlags
@Nullable public java.util.Map<java.lang.String,FlagRep> getFlags()
Details on the flag used in this experiment- Returns:
- flags
-
setFlags
public void setFlags(@Nullable java.util.Map<java.lang.String,FlagRep> flags)
-
reallocationFrequencyMillis
public IterationRep reallocationFrequencyMillis(@Nullable java.lang.Integer reallocationFrequencyMillis)
-
getReallocationFrequencyMillis
@Nullable public java.lang.Integer getReallocationFrequencyMillis()
The cadence (in milliseconds) to update the allocation. Only present for multi-armed bandits.- Returns:
- reallocationFrequencyMillis
-
setReallocationFrequencyMillis
public void setReallocationFrequencyMillis(@Nullable java.lang.Integer reallocationFrequencyMillis)
-
version
public IterationRep version(@Nullable java.lang.Integer version)
-
getVersion
@Nullable public java.lang.Integer getVersion()
The current version that the iteration is on- Returns:
- version
-
setVersion
public void setVersion(@Nullable java.lang.Integer version)
-
primaryMetric
public IterationRep primaryMetric(@Nullable DependentMetricOrMetricGroupRep primaryMetric)
-
getPrimaryMetric
@Nullable public DependentMetricOrMetricGroupRep getPrimaryMetric()
Get primaryMetric- Returns:
- primaryMetric
-
setPrimaryMetric
public void setPrimaryMetric(@Nullable DependentMetricOrMetricGroupRep primaryMetric)
-
primarySingleMetric
public IterationRep primarySingleMetric(@Nullable MetricV2Rep primarySingleMetric)
-
getPrimarySingleMetric
@Nullable public MetricV2Rep getPrimarySingleMetric()
Get primarySingleMetric- Returns:
- primarySingleMetric
-
setPrimarySingleMetric
public void setPrimarySingleMetric(@Nullable MetricV2Rep primarySingleMetric)
-
primaryFunnel
public IterationRep primaryFunnel(@Nullable DependentMetricGroupRepWithMetrics primaryFunnel)
-
getPrimaryFunnel
@Nullable public DependentMetricGroupRepWithMetrics getPrimaryFunnel()
Get primaryFunnel- Returns:
- primaryFunnel
-
setPrimaryFunnel
public void setPrimaryFunnel(@Nullable DependentMetricGroupRepWithMetrics primaryFunnel)
-
randomizationUnit
public IterationRep randomizationUnit(@Nullable java.lang.String randomizationUnit)
-
getRandomizationUnit
@Nullable public java.lang.String getRandomizationUnit()
The unit of randomization for this iteration- Returns:
- randomizationUnit
-
setRandomizationUnit
public void setRandomizationUnit(@Nullable java.lang.String randomizationUnit)
-
attributes
public IterationRep attributes(@Nullable java.util.List<java.lang.String> attributes)
-
addAttributesItem
public IterationRep addAttributesItem(java.lang.String attributesItem)
-
getAttributes
@Nullable public java.util.List<java.lang.String> getAttributes()
The available attribute filters for this iteration- Returns:
- attributes
-
setAttributes
public void setAttributes(@Nullable java.util.List<java.lang.String> attributes)
-
treatments
public IterationRep treatments(@Nullable java.util.List<TreatmentRep> treatments)
-
addTreatmentsItem
public IterationRep addTreatmentsItem(TreatmentRep treatmentsItem)
-
getTreatments
@Nullable public java.util.List<TreatmentRep> getTreatments()
Details on the variations you are testing in the experiment- Returns:
- treatments
-
setTreatments
public void setTreatments(@Nullable java.util.List<TreatmentRep> treatments)
-
secondaryMetrics
@Deprecated public IterationRep secondaryMetrics(@Nullable java.util.List<MetricV2Rep> secondaryMetrics)
Deprecated.
-
addSecondaryMetricsItem
public IterationRep addSecondaryMetricsItem(MetricV2Rep secondaryMetricsItem)
-
getSecondaryMetrics
@Deprecated @Nullable public java.util.List<MetricV2Rep> getSecondaryMetrics()
Deprecated.Deprecated, use <code>metrics</code> instead. Details on the secondary metrics for this experiment.- Returns:
- secondaryMetrics
-
setSecondaryMetrics
@Deprecated public void setSecondaryMetrics(@Nullable java.util.List<MetricV2Rep> secondaryMetrics)Deprecated.
-
metrics
public IterationRep metrics(@Nullable java.util.List<DependentMetricOrMetricGroupRep> metrics)
-
addMetricsItem
public IterationRep addMetricsItem(DependentMetricOrMetricGroupRep metricsItem)
-
getMetrics
@Nullable public java.util.List<DependentMetricOrMetricGroupRep> getMetrics()
Details on the metrics for this experiment- Returns:
- metrics
-
setMetrics
public void setMetrics(@Nullable java.util.List<DependentMetricOrMetricGroupRep> metrics)
-
layerSnapshot
public IterationRep layerSnapshot(@Nullable LayerSnapshotRep layerSnapshot)
-
getLayerSnapshot
@Nullable public LayerSnapshotRep getLayerSnapshot()
Get layerSnapshot- Returns:
- layerSnapshot
-
setLayerSnapshot
public void setLayerSnapshot(@Nullable LayerSnapshotRep layerSnapshot)
-
putAdditionalProperty
public IterationRep putAdditionalProperty(java.lang.String key, java.lang.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- name of the propertyvalue- value of the property- Returns:
- the IterationRep instance itself
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws java.io.IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
java.io.IOException- if the JSON Element is invalid with respect to IterationRep
-
fromJson
public static IterationRep fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of IterationRep given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of IterationRep
- Throws:
java.io.IOException- if the JSON string is invalid with respect to IterationRep
-
toJson
public java.lang.String toJson()
Convert an instance of IterationRep to an JSON string- Returns:
- JSON string
-
-