Package ai.shipeasy.admin.model
Class SetExperimentMetricsRequest
java.lang.Object
ai.shipeasy.admin.model.SetExperimentMetricsRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SetExperimentMetricsRequest
extends Object
Body for `POST /api/admin/experiments/{id}/metrics`. Replaces the experiment's metric attachments wholesale. Returns `422` if any `metric_id` is unknown.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMetricsItem(SetExperimentMetricsRequestMetricsInner metricsItem) booleanstatic SetExperimentMetricsRequestCreate an instance of SetExperimentMetricsRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Replacement metrics list — replaces the current attachments wholesale.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidtoJson()Convert an instance of SetExperimentMetricsRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_METRICS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SetExperimentMetricsRequest
public SetExperimentMetricsRequest()
-
-
Method Details
-
metrics
public SetExperimentMetricsRequest metrics(@Nonnull List<SetExperimentMetricsRequestMetricsInner> metrics) -
addMetricsItem
public SetExperimentMetricsRequest addMetricsItem(SetExperimentMetricsRequestMetricsInner metricsItem) -
getMetrics
Replacement metrics list — replaces the current attachments wholesale.- Returns:
- metrics
-
setMetrics
-
putAdditionalProperty
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 SetExperimentMetricsRequest instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to SetExperimentMetricsRequest
-
fromJson
Create an instance of SetExperimentMetricsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SetExperimentMetricsRequest
- Throws:
IOException- if the JSON string is invalid with respect to SetExperimentMetricsRequest
-
toJson
Convert an instance of SetExperimentMetricsRequest to an JSON string- Returns:
- JSON string
-