Package ai.shipeasy.admin.model
Class PushI18nKeysRequest
java.lang.Object
ai.shipeasy.admin.model.PushI18nKeysRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class PushI18nKeysRequest
extends Object
Body for `POST /api/admin/i18n/keys`. Insert-only: keys that already exist are never overwritten — use `PUT /keys/{id}` to change a value.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddKeysItem(PushI18nKeysRequestKeysInner keysItem) booleanstatic PushI18nKeysRequestCreate an instance of PushI18nKeysRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getChunk()Logical grouping the new keys are filed under.getKeys()Keys to add.Target profile id to add keys to.inthashCode()keys(List<PushI18nKeysRequestKeysInner> keys) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidsetProfileId(UUID profileId) toJson()Convert an instance of PushI18nKeysRequest 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_PROFILE_ID
- See Also:
-
SERIALIZED_NAME_CHUNK
- See Also:
-
SERIALIZED_NAME_KEYS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PushI18nKeysRequest
public PushI18nKeysRequest()
-
-
Method Details
-
profileId
-
getProfileId
Target profile id to add keys to.- Returns:
- profileId
-
setProfileId
-
chunk
-
getChunk
Logical grouping the new keys are filed under. Defaults to `default`.- Returns:
- chunk
-
setChunk
-
keys
-
addKeysItem
-
getKeys
Keys to add. Insert-only — existing keys are reported back as `skipped`.- Returns:
- keys
-
setKeys
-
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 PushI18nKeysRequest 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 PushI18nKeysRequest
-
fromJson
Create an instance of PushI18nKeysRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PushI18nKeysRequest
- Throws:
IOException- if the JSON string is invalid with respect to PushI18nKeysRequest
-
toJson
Convert an instance of PushI18nKeysRequest to an JSON string- Returns:
- JSON string
-