Package ai.shipeasy.admin.model
Class UpdateAttributeRequest
java.lang.Object
ai.shipeasy.admin.model.UpdateAttributeRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateAttributeRequest
extends Object
Body for `PATCH /api/admin/attributes/{id}`. Every field is optional; `name` is immutable.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEnumValuesItem(String enumValuesItem) description(String description) enumValues(List<String> enumValues) booleanstatic UpdateAttributeRequestCreate an instance of UpdateAttributeRequest given an JSON stringOptional human note shown in the dashboard.Replacement allowed values (for `enum`), or `null` to clear.Whether the attribute must be present on the evaluation context.Optional dotted path the SDK reads the value from.getType()Get typeinthashCode()voidsetDescription(String description) voidsetEnumValues(List<String> enumValues) voidsetRequired(Boolean required) voidsetSdkPath(String sdkPath) voidsetType(AttributeType type) toJson()Convert an instance of UpdateAttributeRequest 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_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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateAttributeRequest
public UpdateAttributeRequest()
-
-
Method Details
-
type
-
getType
Get type- Returns:
- type
-
setType
-
enumValues
-
addEnumValuesItem
-
getEnumValues
Replacement allowed values (for `enum`), or `null` to clear.- Returns:
- enumValues
-
setEnumValues
-
required
-
getRequired
Whether the attribute must be present on the evaluation context.- Returns:
- required
-
setRequired
-
description
-
getDescription
Optional human note shown in the dashboard.- Returns:
- description
-
setDescription
-
sdkPath
-
getSdkPath
Optional dotted path the SDK reads the value from.- Returns:
- sdkPath
-
setSdkPath
-
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 UpdateAttributeRequest
-
fromJson
Create an instance of UpdateAttributeRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateAttributeRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateAttributeRequest
-
toJson
Convert an instance of UpdateAttributeRequest to an JSON string- Returns:
- JSON string
-