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.
  • Field Details

  • Constructor Details

    • UpdateAttributeRequest

      public UpdateAttributeRequest()
  • Method Details

    • type

      public UpdateAttributeRequest type(@Nullable AttributeType type)
    • getType

      @Nullable public AttributeType getType()
      Get type
      Returns:
      type
    • setType

      public void setType(@Nullable AttributeType type)
    • enumValues

      public UpdateAttributeRequest enumValues(@Nullable List<String> enumValues)
    • addEnumValuesItem

      public UpdateAttributeRequest addEnumValuesItem(String enumValuesItem)
    • getEnumValues

      @Nullable public List<String> getEnumValues()
      Replacement allowed values (for `enum`), or `null` to clear.
      Returns:
      enumValues
    • setEnumValues

      public void setEnumValues(@Nullable List<String> enumValues)
    • required

      public UpdateAttributeRequest required(@Nullable Boolean required)
    • getRequired

      @Nullable public Boolean getRequired()
      Whether the attribute must be present on the evaluation context.
      Returns:
      required
    • setRequired

      public void setRequired(@Nullable Boolean required)
    • description

      public UpdateAttributeRequest description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Optional human note shown in the dashboard.
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • sdkPath

      public UpdateAttributeRequest sdkPath(@Nullable String sdkPath)
    • getSdkPath

      @Nullable public String getSdkPath()
      Optional dotted path the SDK reads the value from.
      Returns:
      sdkPath
    • setSdkPath

      public void setSdkPath(@Nullable String sdkPath)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static UpdateAttributeRequest fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of UpdateAttributeRequest to an JSON string
      Returns:
      JSON string