Package org.openapitools.client.model
Class UpdateDatasetRequest
- java.lang.Object
-
- org.openapitools.client.model.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateDatasetRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CLIENT_CONFIGURATIONstatic StringSERIALIZED_NAME_DATASET_IDstatic StringSERIALIZED_NAME_DATASET_NAMEstatic StringSERIALIZED_NAME_SERVER_CONFIGURATION
-
Constructor Summary
Constructors Constructor Description UpdateDatasetRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateDatasetRequestclientConfiguration(Object clientConfiguration)UpdateDatasetRequestdatasetId(UUID datasetId)UpdateDatasetRequestdatasetName(String datasetName)booleanequals(Object o)static UpdateDatasetRequestfromJson(String jsonString)Create an instance of UpdateDatasetRequest given an JSON stringObjectgetClientConfiguration()The new client configuration of the dataset, can be arbitrary JSON.@NotNull @Valid UUIDgetDatasetId()The id of the dataset you want to update.StringgetDatasetName()The new name of the dataset.ObjectgetServerConfiguration()The new server configuration of the dataset, can be arbitrary JSON.inthashCode()UpdateDatasetRequestserverConfiguration(Object serverConfiguration)voidsetClientConfiguration(Object clientConfiguration)voidsetDatasetId(UUID datasetId)voidsetDatasetName(String datasetName)voidsetServerConfiguration(Object serverConfiguration)StringtoJson()Convert an instance of UpdateDatasetRequest to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CLIENT_CONFIGURATION
public static final String SERIALIZED_NAME_CLIENT_CONFIGURATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATASET_ID
public static final String SERIALIZED_NAME_DATASET_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATASET_NAME
public static final String SERIALIZED_NAME_DATASET_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SERVER_CONFIGURATION
public static final String SERIALIZED_NAME_SERVER_CONFIGURATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
clientConfiguration
public UpdateDatasetRequest clientConfiguration(Object clientConfiguration)
-
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)
-
datasetId
public UpdateDatasetRequest datasetId(UUID datasetId)
-
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)
-
datasetName
public UpdateDatasetRequest datasetName(String datasetName)
-
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)
-
serverConfiguration
public UpdateDatasetRequest serverConfiguration(Object serverConfiguration)
-
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)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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
-
-