Package com.launchdarkly.api.model
Class TreatmentResultRep
- java.lang.Object
-
- com.launchdarkly.api.model.TreatmentResultRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-05-16T11:29:12.794018Z[Etc/UTC]") public class TreatmentResultRep extends java.lang.ObjectTreatmentResultRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTreatmentResultRep.CustomTypeAdapterFactory
-
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_CREDIBLE_INTERVALstatic java.lang.StringSERIALIZED_NAME_DISTRIBUTIONstatic java.lang.StringSERIALIZED_NAME_MEANstatic java.lang.StringSERIALIZED_NAME_P_BESTstatic java.lang.StringSERIALIZED_NAME_RELATIVE_DIFFERENCESstatic java.lang.StringSERIALIZED_NAME_TRAFFICstatic java.lang.StringSERIALIZED_NAME_TREATMENT_IDstatic java.lang.StringSERIALIZED_NAME_TREATMENT_NAMEstatic java.lang.StringSERIALIZED_NAME_UNITS
-
Constructor Summary
Constructors Constructor Description TreatmentResultRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TreatmentResultRepaddRelativeDifferencesItem(RelativeDifferenceRep relativeDifferencesItem)TreatmentResultRepcredibleInterval(CredibleIntervalRep credibleInterval)TreatmentResultRepdistribution(Distribution distribution)booleanequals(java.lang.Object o)static TreatmentResultRepfromJson(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.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.CredibleIntervalRepgetCredibleInterval()Get credibleIntervalDistributiongetDistribution()Get distributionjava.math.BigDecimalgetMean()The average value of the variation in this sample.java.math.BigDecimalgetpBest()The likelihood that this variation has the biggest effect on the primary metric.java.util.List<RelativeDifferenceRep>getRelativeDifferences()Estimates of the relative difference between this treatment's mean and the mean of each other treatmentjava.lang.LonggetTraffic()The number of units exposed to this treatment.java.lang.StringgetTreatmentId()The ID of the treatmentjava.lang.StringgetTreatmentName()The name of the treatmentjava.lang.LonggetUnits()The number of units exposed to this treatment that have event values, including those that are configured to default to 0inthashCode()TreatmentResultRepmean(java.math.BigDecimal mean)TreatmentResultReppBest(java.math.BigDecimal pBest)TreatmentResultRepputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.TreatmentResultReprelativeDifferences(java.util.List<RelativeDifferenceRep> relativeDifferences)voidsetCredibleInterval(CredibleIntervalRep credibleInterval)voidsetDistribution(Distribution distribution)voidsetMean(java.math.BigDecimal mean)voidsetpBest(java.math.BigDecimal pBest)voidsetRelativeDifferences(java.util.List<RelativeDifferenceRep> relativeDifferences)voidsetTraffic(java.lang.Long traffic)voidsetTreatmentId(java.lang.String treatmentId)voidsetTreatmentName(java.lang.String treatmentName)voidsetUnits(java.lang.Long units)java.lang.StringtoJson()Convert an instance of TreatmentResultRep to an JSON stringjava.lang.StringtoString()TreatmentResultReptraffic(java.lang.Long traffic)TreatmentResultReptreatmentId(java.lang.String treatmentId)TreatmentResultReptreatmentName(java.lang.String treatmentName)TreatmentResultRepunits(java.lang.Long units)static voidvalidateJsonObject(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
-
SERIALIZED_NAME_TRAFFIC
public static final java.lang.String SERIALIZED_NAME_TRAFFIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DISTRIBUTION
public static final java.lang.String SERIALIZED_NAME_DISTRIBUTION
- 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. The variation with the highest probability is likely the best of the variations you're testing- 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()
Estimates of the relative difference between this treatment's mean and the mean of each other treatment- 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 units exposed to this treatment that have event values, including those that are configured to default to 0- Returns:
- units
-
setUnits
public void setUnits(java.lang.Long units)
-
traffic
public TreatmentResultRep traffic(java.lang.Long traffic)
-
getTraffic
@Nullable public java.lang.Long getTraffic()
The number of units exposed to this treatment.- Returns:
- traffic
-
setTraffic
public void setTraffic(java.lang.Long traffic)
-
distribution
public TreatmentResultRep distribution(Distribution distribution)
-
getDistribution
@Nullable public Distribution getDistribution()
Get distribution- Returns:
- distribution
-
setDistribution
public void setDistribution(Distribution distribution)
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOExceptionValidates 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
-
-