Package ai.shipeasy.admin.model
Class SetI18nLabelRequest
java.lang.Object
ai.shipeasy.admin.model.SetI18nLabelRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SetI18nLabelRequest
extends Object
Body for `POST /api/admin/i18n/set`. Upserts one key's value and publishes the profile live.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) booleanstatic SetI18nLabelRequestCreate an instance of SetI18nLabelRequest given an JSON stringOptional human note to store with the key.getKey()Dotted key path to set, e.g.Profile name to target, e.g.getValue()New value for the key.inthashCode()voidsetDescription(String description) voidvoidsetProfile(String profile) voidtoJson()Convert an instance of SetI18nLabelRequest 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_KEY
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
SERIALIZED_NAME_PROFILE
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SetI18nLabelRequest
public SetI18nLabelRequest()
-
-
Method Details
-
key
-
getKey
Dotted key path to set, e.g. `home.cta`.- Returns:
- key
-
setKey
-
value
-
getValue
New value for the key. Inserted when the key is new, overwritten when it exists.- Returns:
- value
-
setValue
-
profile
-
getProfile
Profile name to target, e.g. `en:prod`. Omit to target the project's default-marked profile.- Returns:
- profile
-
setProfile
-
description
-
getDescription
Optional human note to store with the key.- Returns:
- description
-
setDescription
-
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 SetI18nLabelRequest
-
fromJson
Create an instance of SetI18nLabelRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SetI18nLabelRequest
- Throws:
IOException- if the JSON string is invalid with respect to SetI18nLabelRequest
-
toJson
Convert an instance of SetI18nLabelRequest to an JSON string- Returns:
- JSON string
-