Package ai.shipeasy.admin.model
Class CreateConfigRequest
java.lang.Object
ai.shipeasy.admin.model.CreateConfigRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateConfigRequest
extends Object
Body for `POST /api/admin/configs`. `name` + `schema` required.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) booleanstatic CreateConfigRequestCreate an instance of CreateConfigRequest given an JSON stringOptional free-form description shown in the dashboard.Optional folder name grouping items in the dashboard.getName()Stable config/killswitch key in `folder.name` form (two lowercase segments separated by a dot, e.g.JSON Schema (draft 2020-12) describing the shape of the config value.getValue()Get valueinthashCode()putSchemaItem(String key, Object schemaItem) voidsetDescription(String description) voidvoidvoidvoidtoJson()Convert an instance of CreateConfigRequest 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_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_FOLDER
- See Also:
-
SERIALIZED_NAME_SCHEMA
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateConfigRequest
public CreateConfigRequest()
-
-
Method Details
-
name
-
getName
Stable config/killswitch key in `folder.name` form (two lowercase segments separated by a dot, e.g. `pricing.tiers`). Immutable after create.- Returns:
- name
-
setName
-
description
-
getDescription
Optional free-form description shown in the dashboard. Max 512 chars.- Returns:
- description
-
setDescription
-
folder
-
getFolder
Optional folder name grouping items in the dashboard. Alphanumeric, `_` or `-` (no `/`). Part of the SDK lookup key (`<folder>/<name>`).- Returns:
- folder
-
setFolder
-
schema
-
putSchemaItem
-
getSchema
JSON Schema (draft 2020-12) describing the shape of the config value. Top-level `type` must be `'object'`; every published value is validated against this schema.- Returns:
- schema
-
setSchema
-
value
-
getValue
Get value- Returns:
- value
-
setValue
-
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 CreateConfigRequest
-
fromJson
Create an instance of CreateConfigRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateConfigRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateConfigRequest
-
toJson
Convert an instance of CreateConfigRequest to an JSON string- Returns:
- JSON string
-