Class UpdateDatasetRequest


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]",
               comments="Generator version: 7.4.0")
    public class UpdateDatasetRequest
    extends Object
    UpdateDatasetRequest
    • Constructor Detail

      • UpdateDatasetRequest

        public UpdateDatasetRequest()
    • Method Detail

      • getClientConfiguration

        @Nullable
        public Object getClientConfiguration()
        The new client configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the client configuration will not be updated.
        Returns:
        clientConfiguration
      • setClientConfiguration

        public void setClientConfiguration​(Object clientConfiguration)
      • getDatasetId

        @Nonnull
        @NotNull
        @Valid
        public @NotNull @Valid UUID getDatasetId()
        The id of the dataset you want to update.
        Returns:
        datasetId
      • setDatasetId

        public void setDatasetId​(UUID datasetId)
      • getDatasetName

        @Nullable
        public String getDatasetName()
        The new name of the dataset. Must be unique within the organization. If not provided, the name will not be updated.
        Returns:
        datasetName
      • setDatasetName

        public void setDatasetName​(String datasetName)
      • getServerConfiguration

        @Nullable
        public Object getServerConfiguration()
        The new server configuration of the dataset, can be arbitrary JSON. See docs.trieve.ai for more information. If not provided, the server configuration will not be updated.
        Returns:
        serverConfiguration
      • setServerConfiguration

        public void setServerConfiguration​(Object serverConfiguration)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode 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 UpdateDatasetRequest
      • fromJson

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

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