Package ai.shipeasy.admin.model
Class UpdateEventRequest
java.lang.Object
ai.shipeasy.admin.model.UpdateEventRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateEventRequest
extends Object
Body for `PATCH /api/admin/events/{id}` and `POST /api/admin/events/{id}/approve`. All fields optional; `name` is immutable after create.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPropertiesItem(ListEventsResponseInnerPropertiesInner propertiesItem) description(String description) booleanstatic UpdateEventRequestCreate an instance of UpdateEventRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.New description for the event.Optional folder name grouping items in the dashboard.Replaces the full property set (no merge).inthashCode()properties(List<ListEventsResponseInnerPropertiesInner> properties) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDescription(String description) voidvoidsetProperties(List<ListEventsResponseInnerPropertiesInner> properties) toJson()Convert an instance of UpdateEventRequest 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_FOLDER
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_PROPERTIES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateEventRequest
public UpdateEventRequest()
-
-
Method Details
-
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
New description for the event.- Returns:
- description
-
setDescription
-
properties
public UpdateEventRequest properties(@Nullable List<ListEventsResponseInnerPropertiesInner> properties) -
addPropertiesItem
-
getProperties
Replaces the full property set (no merge). Omit to leave properties unchanged.- 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 UpdateEventRequest 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 UpdateEventRequest
-
fromJson
Create an instance of UpdateEventRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateEventRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateEventRequest
-
toJson
Convert an instance of UpdateEventRequest to an JSON string- Returns:
- JSON string
-