Class UpdateConfigRequest

java.lang.Object
ai.shipeasy.admin.model.UpdateConfigRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class UpdateConfigRequest extends Object
Body for `PATCH /api/admin/configs/{id}`. Partial — only supplied fields change. `value` republishes on every env.
  • Field Details

  • Constructor Details

    • UpdateConfigRequest

      public UpdateConfigRequest()
  • Method Details

    • schema

      public UpdateConfigRequest schema(@Nullable Map<String,Object> schema)
    • putSchemaItem

      public UpdateConfigRequest putSchemaItem(String key, Object schemaItem)
    • getSchema

      @Nullable public Map<String,Object> getSchema()
      Replacement schema. When supplied, the new schema is validated against every published value before it lands.
      Returns:
      schema
    • setSchema

      public void setSchema(@Nullable Map<String,Object> schema)
    • value

      public UpdateConfigRequest value(@Nullable Object value)
    • getValue

      @Nullable public Object getValue()
      Get value
      Returns:
      value
    • setValue

      public void setValue(@Nullable Object value)
    • folder

      public UpdateConfigRequest folder(@Nullable String folder)
    • getFolder

      @Nullable public String getFolder()
      Optional folder name grouping items in the dashboard. Alphanumeric, `_` or `-` (no `/`). Part of the SDK lookup key (`<folder>/<name>`).
      Returns:
      folder
    • setFolder

      public void setFolder(@Nullable String folder)
    • 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 UpdateConfigRequest
    • fromJson

      public static UpdateConfigRequest fromJson(String jsonString) throws IOException
      Create an instance of UpdateConfigRequest given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of UpdateConfigRequest
      Throws:
      IOException - if the JSON string is invalid with respect to UpdateConfigRequest
    • toJson

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