Package ai.shipeasy.admin.model
Class GetEventResponse
java.lang.Object
ai.shipeasy.admin.model.GetEventResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class GetEventResponse
extends Object
A catalogued event.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPropertiesItem(ListEventsResponseInnerPropertiesInner propertiesItem) description(String description) booleanstatic GetEventResponseCreate an instance of GetEventResponse given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.ISO-8601 timestamp of creation.Human-readable description, or `null` if none set.Optional folder name used to group items in the dashboard.getId()Stable opaque event id.getName()Event name — the handle metric queries reference.`1` if this is an auto-discovered name awaiting approval (metrics on it fail until approved), `0` if approved/usable.Typed properties declared on the event.inthashCode()properties(List<ListEventsResponseInnerPropertiesInner> properties) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCreatedAt(String createdAt) voidsetDescription(String description) voidvoidvoidvoidsetPending(Integer pending) voidsetProperties(List<ListEventsResponseInnerPropertiesInner> properties) toJson()Convert an instance of GetEventResponse 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:
-
SERIALIZED_NAME_FOLDER
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_PROPERTIES
- See Also:
-
SERIALIZED_NAME_PENDING
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GetEventResponse
public GetEventResponse()
-
-
Method Details
-
id
-
getId
Stable opaque event id.- Returns:
- id
-
setId
-
name
-
getName
Event name — the handle metric queries reference.- Returns:
- name
-
setName
-
folder
-
getFolder
Optional folder name used to group items in the dashboard. Part of the SDK lookup key: an item in folder `checkout` named `new-cart` is referenced as `checkout/new-cart` from the SDK.- Returns:
- folder
-
setFolder
-
description
-
getDescription
Human-readable description, or `null` if none set.- Returns:
- description
-
setDescription
-
properties
public GetEventResponse properties(@Nonnull List<ListEventsResponseInnerPropertiesInner> properties) -
addPropertiesItem
-
getProperties
Typed properties declared on the event.- Returns:
- properties
-
setProperties
-
pending
-
getPending
`1` if this is an auto-discovered name awaiting approval (metrics on it fail until approved), `0` if approved/usable. minimum: -9007199254740991 maximum: 9007199254740991- Returns:
- pending
-
setPending
-
createdAt
-
getCreatedAt
ISO-8601 timestamp of creation.- Returns:
- createdAt
-
setCreatedAt
-
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 GetEventResponse 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 GetEventResponse
-
fromJson
Create an instance of GetEventResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetEventResponse
- Throws:
IOException- if the JSON string is invalid with respect to GetEventResponse
-
toJson
Convert an instance of GetEventResponse to an JSON string- Returns:
- JSON string
-