Package ai.shipeasy.admin.model
Class GetAttributeResponse
java.lang.Object
ai.shipeasy.admin.model.GetAttributeResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class GetAttributeResponse
extends Object
One targeting attribute row.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumWhether the attribute is required (D1 stores the flag as `0`/`1`). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEnumValuesItem(String enumValuesItem) description(String description) enumValues(List<String> enumValues) booleanstatic GetAttributeResponseCreate an instance of GetAttributeResponse given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.ISO-8601 creation timestamp.Human note, or `null`.Allowed values for `enum` attributes, else `null`.getId()Stable opaque attribute id.getName()Attribute key.Whether the attribute is required (D1 stores the flag as `0`/`1`).Dotted SDK path, or `null`.getType()Get typeinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.required(GetAttributeResponse.RequiredEnum required) voidsetCreatedAt(String createdAt) voidsetDescription(String description) voidsetEnumValues(List<String> enumValues) voidvoidvoidsetRequired(GetAttributeResponse.RequiredEnum required) voidsetSdkPath(String sdkPath) voidsetType(AttributeType type) toJson()Convert an instance of GetAttributeResponse to an JSON stringtoString()type(AttributeType type) 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:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_ENUM_VALUES
- See Also:
-
SERIALIZED_NAME_REQUIRED
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_SDK_PATH
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GetAttributeResponse
public GetAttributeResponse()
-
-
Method Details
-
id
-
getId
Stable opaque attribute id.- Returns:
- id
-
setId
-
name
-
getName
Attribute key.- Returns:
- name
-
setName
-
type
-
getType
Get type- Returns:
- type
-
setType
-
enumValues
-
addEnumValuesItem
-
getEnumValues
Allowed values for `enum` attributes, else `null`.- Returns:
- enumValues
-
setEnumValues
-
required
-
getRequired
Whether the attribute is required (D1 stores the flag as `0`/`1`).- Returns:
- required
-
setRequired
-
description
-
getDescription
Human note, or `null`.- Returns:
- description
-
setDescription
-
sdkPath
-
getSdkPath
Dotted SDK path, or `null`.- Returns:
- sdkPath
-
setSdkPath
-
createdAt
-
getCreatedAt
ISO-8601 creation timestamp.- Returns:
- createdAt
-
setCreatedAt
-
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 GetAttributeResponse 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 GetAttributeResponse
-
fromJson
Create an instance of GetAttributeResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetAttributeResponse
- Throws:
IOException- if the JSON string is invalid with respect to GetAttributeResponse
-
toJson
Convert an instance of GetAttributeResponse to an JSON string- Returns:
- JSON string
-