@Generated(value="software.amazon.awssdk:codegen") public final class ExperimentResultsData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ExperimentResultsData.Builder,ExperimentResultsData>
A structure that contains experiment results for one metric that is monitored in the experiment.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExperimentResultsData.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ExperimentResultsData.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasValues()
For responses, this returns true if the service returned a value for the Values property.
|
String |
metricName()
The name of the metric.
|
ExperimentResultResponseType |
resultStat()
The experiment statistic that these results pertain to.
|
String |
resultStatAsString()
The experiment statistic that these results pertain to.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ExperimentResultsData.Builder> |
serializableBuilderClass() |
ExperimentResultsData.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
treatmentName()
The treatment, or variation, that returned the
values in this structure. |
List<Double> |
values()
The values for the
metricName that were recorded in the experiment. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String metricName()
The name of the metric.
public final ExperimentResultResponseType resultStat()
The experiment statistic that these results pertain to.
If the service returns an enum value that is not available in the current SDK version, resultStat will
return ExperimentResultResponseType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from resultStatAsString().
ExperimentResultResponseTypepublic final String resultStatAsString()
The experiment statistic that these results pertain to.
If the service returns an enum value that is not available in the current SDK version, resultStat will
return ExperimentResultResponseType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from resultStatAsString().
ExperimentResultResponseTypepublic final String treatmentName()
The treatment, or variation, that returned the values in this structure.
values in this structure.public final boolean hasValues()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Double> values()
The values for the metricName that were recorded in the experiment.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasValues() method.
metricName that were recorded in the experiment.public ExperimentResultsData.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ExperimentResultsData.Builder,ExperimentResultsData>public static ExperimentResultsData.Builder builder()
public static Class<? extends ExperimentResultsData.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.