Class FileWithMetadata
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.FileWithMetadata
-
public class FileWithMetadata extends java.lang.ObjectA file and its associated metadata.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileWithMetadata.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcontentType()The content type of file.java.io.InputStreamdata()The data / contents of the file.java.lang.Stringfilename()The filename for file.FileWithMetadata.BuildernewBuilder()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
-
-