Package ai.shipeasy.admin.model
Class GetConfigResponse
java.lang.Object
ai.shipeasy.admin.model.GetConfigResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class GetConfigResponse
extends Object
GetConfigResponse
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) draftValues(Map<String, Object> draftValues) booleanstatic GetConfigResponseCreate an instance of GetConfigResponse given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get descriptionPer-env active drafts (if any).Per-env draft values (only returned by `GET /{id}`).getEnvs()Per-env latest published version metadata.getId()Stable opaque config id (`cfg_…`).getName()Stable config 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.ISO-8601 timestamp of last mutation.Per-env latest published values (only returned by `GET /{id}`, not list).inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putDraftsItem(String key, ListConfigsResponseDataInnerDraftsValue draftsItem) putDraftValuesItem(String key, Object draftValuesItem) putEnvsItem(String key, ListConfigsResponseDataInnerEnvsValue envsItem) putSchemaItem(String key, Object schemaItem) putValuesItem(String key, Object valuesItem) voidsetDescription(String description) voidvoidsetDraftValues(Map<String, Object> draftValues) voidvoidvoidvoidvoidsetUpdatedAt(String updatedAt) voidtoJson()Convert an instance of GetConfigResponse 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_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_SCHEMA
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_ENVS
- See Also:
-
SERIALIZED_NAME_DRAFTS
- See Also:
-
SERIALIZED_NAME_VALUES
- See Also:
-
SERIALIZED_NAME_DRAFT_VALUES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GetConfigResponse
public GetConfigResponse()
-
-
Method Details
-
id
-
getId
Stable opaque config id (`cfg_…`).- Returns:
- id
-
setId
-
name
-
getName
Stable config key in `folder.name` form (two lowercase segments separated by a dot, e.g. `pricing.tiers`). Used by SDKs as `Shipeasy.getConfig('<name>')`. Immutable after create.- Returns:
- name
-
setName
-
description
-
getDescription
Get description- Returns:
- description
-
setDescription
-
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
-
updatedAt
-
getUpdatedAt
ISO-8601 timestamp of last mutation.- Returns:
- updatedAt
-
setUpdatedAt
-
envs
-
putEnvsItem
-
getEnvs
Per-env latest published version metadata.- Returns:
- envs
-
setEnvs
-
drafts
public GetConfigResponse drafts(@Nonnull Map<String, ListConfigsResponseDataInnerDraftsValue> drafts) -
putDraftsItem
public GetConfigResponse putDraftsItem(String key, ListConfigsResponseDataInnerDraftsValue draftsItem) -
getDrafts
Per-env active drafts (if any).- Returns:
- drafts
-
setDrafts
-
values
-
putValuesItem
-
getValues
Per-env latest published values (only returned by `GET /{id}`, not list).- Returns:
- values
-
setValues
-
draftValues
-
putDraftValuesItem
-
getDraftValues
Per-env draft values (only returned by `GET /{id}`).- Returns:
- draftValues
-
setDraftValues
-
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 GetConfigResponse 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 GetConfigResponse
-
fromJson
Create an instance of GetConfigResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetConfigResponse
- Throws:
IOException- if the JSON string is invalid with respect to GetConfigResponse
-
toJson
Convert an instance of GetConfigResponse to an JSON string- Returns:
- JSON string
-