FileUploadMetadata Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. FileUploadMetadata
- com.
Implements
public final class FileUploadMetadata
implements JsonSerializable<FileUploadMetadata>
The JSON 'metadata' part of a multipart/form-data file upload: the full file name/path and custom key/value metadata. The parsing mode and extraction mode are both chosen by the service and are not supplied by the caller.
Constructor Summary
| Constructor | Description |
|---|---|
| FileUploadMetadata() |
Creates an instance of File |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
File |
fromJson(JsonReader jsonReader)
Reads an instance of File |
| String |
getFileName()
Get the file |
| Map<String,String> |
getMetadata()
Get the metadata property: Custom key/value metadata to store with the file. |
|
File |
setFileName(String fileName)
Set the file |
|
File |
setMetadata(Map<String,String> metadata)
Set the metadata property: Custom key/value metadata to store with the file. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
FileUploadMetadata
public FileUploadMetadata()
Creates an instance of FileUploadMetadata class.
Method Details
fromJson
public static FileUploadMetadata fromJson(JsonReader jsonReader)
Reads an instance of FileUploadMetadata from the JsonReader.
Parameters:
Returns:
Throws:
getFileName
public String getFileName()
Get the fileName property: The full relative file name/path to store the file under (prefixes are derived from it).
Returns:
getMetadata
public Map<String,String> getMetadata()
Get the metadata property: Custom key/value metadata to store with the file.
Returns:
setFileName
public FileUploadMetadata setFileName(String fileName)
Set the fileName property: The full relative file name/path to store the file under (prefixes are derived from it).
Parameters:
Returns:
setMetadata
public FileUploadMetadata setMetadata(Map<String,String> metadata)
Set the metadata property: Custom key/value metadata to store with the file.
Parameters:
Returns: