Class FileWithMetadata
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.FileWithMetadata
-
public class FileWithMetadata extends java.lang.Object
A file and its associated metadata.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileWithMetadata.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
contentType()
The content type of file.java.io.InputStream
data()
The data / contents of the file.java.lang.String
filename()
The filename for file.FileWithMetadata.Builder
newBuilder()
New builder.
-
-
-
Method Detail
-
newBuilder
public FileWithMetadata.Builder newBuilder()
New builder.- Returns:
- a FileWithMetadata builder
-
data
public java.io.InputStream data()
The data / contents of the file.- Returns:
- the contents of the file
-
filename
public java.lang.String filename()
The filename for file.- Returns:
- the filename
-
contentType
public java.lang.String contentType()
The content type of file. Values for this parameter can be obtained from the HttpMediaType class.- Returns:
- the content-type associated with the file
-
-