Package ai.shipeasy.admin.model
Class CreateMetricResponse
java.lang.Object
ai.shipeasy.admin.model.CreateMetricResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateMetricResponse
extends Object
Result of a successful metric create.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CreateMetricResponseCreate an instance of CreateMetricResponse given an JSON stringgetId()Newly assigned metric id.getName()Metric name that was created.inthashCode()voidvoidtoJson()Convert an instance of CreateMetricResponse 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_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateMetricResponse
public CreateMetricResponse()
-
-
Method Details
-
id
-
getId
Newly assigned metric id.- Returns:
- id
-
setId
-
name
-
getName
Metric name that was created.- Returns:
- name
-
setName
-
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 CreateMetricResponse
-
fromJson
Create an instance of CreateMetricResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateMetricResponse
- Throws:
IOException- if the JSON string is invalid with respect to CreateMetricResponse
-
toJson
Convert an instance of CreateMetricResponse to an JSON string- Returns:
- JSON string
-