Package ai.shipeasy.admin.model
Class CreateAttributeResponse
java.lang.Object
ai.shipeasy.admin.model.CreateAttributeResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateAttributeResponse
extends Object
Response for `POST /api/admin/attributes`.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CreateAttributeResponseCreate an instance of CreateAttributeResponse given an JSON stringgetId()Newly assigned attribute id.getName()The attribute key that was created.inthashCode()voidvoidtoJson()Convert an instance of CreateAttributeResponse 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateAttributeResponse
public CreateAttributeResponse()
-
-
Method Details
-
id
-
getId
Newly assigned attribute id.- Returns:
- id
-
setId
-
name
-
getName
The attribute key that was created.- 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 CreateAttributeResponse
-
fromJson
Create an instance of CreateAttributeResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateAttributeResponse
- Throws:
IOException- if the JSON string is invalid with respect to CreateAttributeResponse
-
toJson
Convert an instance of CreateAttributeResponse to an JSON string- Returns:
- JSON string
-