Class CreateDatasetRequest


  • @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 CreateDatasetRequest
    extends Object
    CreateDatasetRequest
    • Constructor Detail

      • CreateDatasetRequest

        public CreateDatasetRequest()
    • Method Detail

      • getClientConfiguration

        @Nullable
        @NotNull
        public @NotNull Object getClientConfiguration()
        Client configuration for the dataset, can be arbitrary JSON. We recommend setting to `{}` to start. See docs.trieve.ai for more information or adjust with the admin dashboard.
        Returns:
        clientConfiguration
      • setClientConfiguration

        public void setClientConfiguration​(Object clientConfiguration)
      • getDatasetName

        @Nonnull
        @NotNull
        public @NotNull String getDatasetName()
        Name of the dataset. Must be unique within the organization.
        Returns:
        datasetName
      • setDatasetName

        public void setDatasetName​(String datasetName)
      • getOrganizationId

        @Nonnull
        @NotNull
        @Valid
        public @NotNull @Valid UUID getOrganizationId()
        Organization ID that the dataset will belong to.
        Returns:
        organizationId
      • setOrganizationId

        public void setOrganizationId​(UUID organizationId)
      • getServerConfiguration

        @Nullable
        @NotNull
        public @NotNull Object getServerConfiguration()
        Server configuration for the dataset, can be arbitrary JSON. We recommend setting to `{}` to start. See docs.trieve.ai for more information or adjust with the admin dashboard.
        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 CreateDatasetRequest
      • fromJson

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

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