Package ai.shipeasy.admin.model
Class ApproveEventRequest
java.lang.Object
ai.shipeasy.admin.model.ApproveEventRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ApproveEventRequest
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 ApproveEventRequestCreate an instance of ApproveEventRequest given an JSON stringNew description for the event.Optional folder name grouping items in the dashboard.Replaces the full property set (no merge).inthashCode()properties(List<ListEventsResponseInnerPropertiesInner> properties) voidsetDescription(String description) voidvoidsetProperties(List<ListEventsResponseInnerPropertiesInner> properties) toJson()Convert an instance of ApproveEventRequest 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
-
ApproveEventRequest
public ApproveEventRequest()
-
-
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 ApproveEventRequest properties(@Nullable List<ListEventsResponseInnerPropertiesInner> properties) -
addPropertiesItem
-
getProperties
Replaces the full property set (no merge). Omit to leave properties unchanged.- Returns:
- properties
-
setProperties
-
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 ApproveEventRequest
-
fromJson
Create an instance of ApproveEventRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApproveEventRequest
- Throws:
IOException- if the JSON string is invalid with respect to ApproveEventRequest
-
toJson
Convert an instance of ApproveEventRequest to an JSON string- Returns:
- JSON string
-