Package com.launchdarkly.api.model
Class TreatmentResultRep
- java.lang.Object
-
- com.launchdarkly.api.model.TreatmentResultRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-11-21T23:14:11.074962Z[Etc/UTC]") public class TreatmentResultRep extends java.lang.Object
TreatmentResultRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TreatmentResultRep.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>
openapiFields
static java.util.HashSet<java.lang.String>
openapiRequiredFields
static java.lang.String
SERIALIZED_NAME_CREDIBLE_INTERVAL
static java.lang.String
SERIALIZED_NAME_MEAN
static java.lang.String
SERIALIZED_NAME_P_BEST
static java.lang.String
SERIALIZED_NAME_RELATIVE_DIFFERENCES
static java.lang.String
SERIALIZED_NAME_TREATMENT_ID
static java.lang.String
SERIALIZED_NAME_TREATMENT_NAME
static java.lang.String
SERIALIZED_NAME_UNITS
-
Constructor Summary
Constructors Constructor Description TreatmentResultRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TreatmentResultRep
addRelativeDifferencesItem(RelativeDifferenceRep relativeDifferencesItem)
TreatmentResultRep
credibleInterval(CredibleIntervalRep credibleInterval)
boolean
equals(java.lang.Object o)
static TreatmentResultRep
fromJson(java.lang.String jsonString)
Create an instance of TreatmentResultRep given an JSON stringjava.util.Map<java.lang.String,java.lang.Object>
getAdditionalProperties()
Return the additional (undeclared) property.java.lang.Object
getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.CredibleIntervalRep
getCredibleInterval()
Get credibleIntervaljava.math.BigDecimal
getMean()
The average value of the variation in this sample.java.math.BigDecimal
getpBest()
The likelihood that this variation has the biggest effect on the primary metric.java.util.List<RelativeDifferenceRep>
getRelativeDifferences()
A list of the ranges of the metric that you should have 90% confidence in, for each treatment ID.java.lang.String
getTreatmentId()
The ID of the treatmentjava.lang.String
getTreatmentName()
The name of the treatmentjava.lang.Long
getUnits()
The number of experiment users for this variationint
hashCode()
TreatmentResultRep
mean(java.math.BigDecimal mean)
TreatmentResultRep
pBest(java.math.BigDecimal pBest)
TreatmentResultRep
putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.TreatmentResultRep
relativeDifferences(java.util.List<RelativeDifferenceRep> relativeDifferences)
void
setCredibleInterval(CredibleIntervalRep credibleInterval)
void
setMean(java.math.BigDecimal mean)
void
setpBest(java.math.BigDecimal pBest)
void
setRelativeDifferences(java.util.List<RelativeDifferenceRep> relativeDifferences)
void
setTreatmentId(java.lang.String treatmentId)
void
setTreatmentName(java.lang.String treatmentName)
void
setUnits(java.lang.Long units)
java.lang.String
toJson()
Convert an instance of TreatmentResultRep to an JSON stringjava.lang.String
toString()
TreatmentResultRep
treatmentId(java.lang.String treatmentId)
TreatmentResultRep
treatmentName(java.lang.String treatmentName)
TreatmentResultRep
units(java.lang.Long units)
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TREATMENT_ID
public static final java.lang.String SERIALIZED_NAME_TREATMENT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TREATMENT_NAME
public static final java.lang.String SERIALIZED_NAME_TREATMENT_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MEAN
public static final java.lang.String SERIALIZED_NAME_MEAN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREDIBLE_INTERVAL
public static final java.lang.String SERIALIZED_NAME_CREDIBLE_INTERVAL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_P_BEST
public static final java.lang.String SERIALIZED_NAME_P_BEST
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RELATIVE_DIFFERENCES
public static final java.lang.String SERIALIZED_NAME_RELATIVE_DIFFERENCES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UNITS
public static final java.lang.String SERIALIZED_NAME_UNITS
- 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
-
treatmentId
public TreatmentResultRep treatmentId(java.lang.String treatmentId)
-
getTreatmentId
@Nullable public java.lang.String getTreatmentId()
The ID of the treatment- Returns:
- treatmentId
-
setTreatmentId
public void setTreatmentId(java.lang.String treatmentId)
-
treatmentName
public TreatmentResultRep treatmentName(java.lang.String treatmentName)
-
getTreatmentName
@Nullable public java.lang.String getTreatmentName()
The name of the treatment- Returns:
- treatmentName
-
setTreatmentName
public void setTreatmentName(java.lang.String treatmentName)
-
mean
public TreatmentResultRep mean(java.math.BigDecimal mean)
-
getMean
@Nullable public java.math.BigDecimal getMean()
The average value of the variation in this sample. It doesn’t capture the uncertainty in the measurement, so it should not be the only measurement you use to make decisions.- Returns:
- mean
-
setMean
public void setMean(java.math.BigDecimal mean)
-
credibleInterval
public TreatmentResultRep credibleInterval(CredibleIntervalRep credibleInterval)
-
getCredibleInterval
@Nullable public CredibleIntervalRep getCredibleInterval()
Get credibleInterval- Returns:
- credibleInterval
-
setCredibleInterval
public void setCredibleInterval(CredibleIntervalRep credibleInterval)
-
pBest
public TreatmentResultRep pBest(java.math.BigDecimal pBest)
-
getpBest
@Nullable public java.math.BigDecimal getpBest()
The likelihood that this variation has the biggest effect on the primary metric. Of all the variations in the experiment, the one with highest probability is likely the best option to choose.- Returns:
- pBest
-
setpBest
public void setpBest(java.math.BigDecimal pBest)
-
relativeDifferences
public TreatmentResultRep relativeDifferences(java.util.List<RelativeDifferenceRep> relativeDifferences)
-
addRelativeDifferencesItem
public TreatmentResultRep addRelativeDifferencesItem(RelativeDifferenceRep relativeDifferencesItem)
-
getRelativeDifferences
@Nullable public java.util.List<RelativeDifferenceRep> getRelativeDifferences()
A list of the ranges of the metric that you should have 90% confidence in, for each treatment ID. For example, if the range of the relative differences is [-1%, 4%], you can have 90% confidence that the population difference is a number between 1% lower and 4% higher than the control.- Returns:
- relativeDifferences
-
setRelativeDifferences
public void setRelativeDifferences(java.util.List<RelativeDifferenceRep> relativeDifferences)
-
units
public TreatmentResultRep units(java.lang.Long units)
-
getUnits
@Nullable public java.lang.Long getUnits()
The number of experiment users for this variation- Returns:
- units
-
setUnits
public void setUnits(java.lang.Long units)
-
putAdditionalProperty
public TreatmentResultRep 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.
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOException
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
java.io.IOException
- if the JSON Object is invalid with respect to TreatmentResultRep
-
fromJson
public static TreatmentResultRep fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of TreatmentResultRep given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of TreatmentResultRep
- Throws:
java.io.IOException
- if the JSON string is invalid with respect to TreatmentResultRep
-
toJson
public java.lang.String toJson()
Convert an instance of TreatmentResultRep to an JSON string- Returns:
- JSON string
-
-