Package ai.shipeasy.admin.model
Class CreateI18nProfileRequest
java.lang.Object
ai.shipeasy.admin.model.CreateI18nProfileRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateI18nProfileRequest
extends Object
Body for `POST /api/admin/i18n/profiles`. Only `name` is accepted.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CreateI18nProfileRequestCreate an instance of CreateI18nProfileRequest given an JSON stringgetName()Profile handle to create, e.g.inthashCode()voidtoJson()Convert an instance of CreateI18nProfileRequest 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateI18nProfileRequest
public CreateI18nProfileRequest()
-
-
Method Details
-
name
-
getName
Profile handle to create, e.g. `en:prod` or `fr:prod`. Lowercase alphanumeric start, then letters/digits/`_`/`:`/`.`/`-`; max 64 chars. The locale is encoded in the handle, so no separate locale fields are accepted.- Returns:
- name
-
setName
-
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 CreateI18nProfileRequest
-
fromJson
Create an instance of CreateI18nProfileRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateI18nProfileRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateI18nProfileRequest
-
toJson
Convert an instance of CreateI18nProfileRequest to an JSON string- Returns:
- JSON string
-