Package ai.shipeasy.admin.model
Class CreateEventRequest
java.lang.Object
ai.shipeasy.admin.model.CreateEventRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateEventRequest
extends Object
Body for `POST /api/admin/events`. Only `name` is required.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPropertiesItem(ListEventsResponseInnerPropertiesInner propertiesItem) description(String description) booleanstatic CreateEventRequestCreate an instance of CreateEventRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Optional human-readable description of the event.Optional folder name grouping items in the dashboard.getName()Event name.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.voidsetDescription(String description) voidvoidvoidsetProperties(List<ListEventsResponseInnerPropertiesInner> properties) toJson()Convert an instance of CreateEventRequest 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_NAME
- See Also:
-
SERIALIZED_NAME_FOLDER
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_PROPERTIES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateEventRequest
public CreateEventRequest()
-
-
Method Details
-
name
-
getName
Event name. Starts with a letter, digit, or `_`; letters, digits, `_`, `-`, `.`; max 128 chars. Immutable after create — this is the handle metric queries reference.- Returns:
- name
-
setName
-
folder
-
getFolder
Optional folder name grouping items in the dashboard. Alphanumeric, `_` or `-` (no `/`). Part of the SDK lookup key (`<folder>/<name>`).- Returns:
- folder
-
setFolder
-
description
-
getDescription
Optional human-readable description of the event.- Returns:
- description
-
setDescription
-
properties
public CreateEventRequest properties(@Nullable List<ListEventsResponseInnerPropertiesInner> properties) -
addPropertiesItem
-
getProperties
Typed properties declared on the event. Defaults to an empty list.- Returns:
- properties
-
setProperties
-
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 CreateEventRequest 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 CreateEventRequest
-
fromJson
Create an instance of CreateEventRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateEventRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateEventRequest
-
toJson
Convert an instance of CreateEventRequest to an JSON string- Returns:
- JSON string
-