Package ai.shipeasy.admin.model
Class UpdateI18nKeyRequest
java.lang.Object
ai.shipeasy.admin.model.UpdateI18nKeyRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateI18nKeyRequest
extends Object
Body for `PUT /api/admin/i18n/keys/{id}`. Updates one existing key's value.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVariablesItem(String variablesItem) description(String description) booleanstatic UpdateI18nKeyRequestCreate an instance of UpdateI18nKeyRequest given an JSON stringOptional human note to store with the key.getValue()New value for the key (the only overwrite path).Explicit `{{var}}` placeholder names in the value.inthashCode()voidsetDescription(String description) voidvoidsetVariables(List<String> variables) toJson()Convert an instance of UpdateI18nKeyRequest 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_VALUE
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_VARIABLES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateI18nKeyRequest
public UpdateI18nKeyRequest()
-
-
Method Details
-
value
-
getValue
New value for the key (the only overwrite path).- Returns:
- value
-
setValue
-
description
-
getDescription
Optional human note to store with the key.- Returns:
- description
-
setDescription
-
variables
-
addVariablesItem
-
getVariables
Explicit `{{var}}` placeholder names in the value. Omit to auto-derive them from the value.- Returns:
- variables
-
setVariables
-
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 UpdateI18nKeyRequest
-
fromJson
Create an instance of UpdateI18nKeyRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateI18nKeyRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateI18nKeyRequest
-
toJson
Convert an instance of UpdateI18nKeyRequest to an JSON string- Returns:
- JSON string
-