public class CreateDataObjectOptions extends CreateCDMIObjectOptions
Modifier and Type | Class and Description |
---|---|
static class |
CreateDataObjectOptions.Builder |
jsonObjectBody
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
Constructor and Description |
---|
CreateDataObjectOptions() |
Modifier and Type | Method and Description |
---|---|
CreateDataObjectOptions |
metadata(Map<String,String> metadata)
Create CDMI data object with metadata
|
CreateDataObjectOptions |
mimetype(String mimetype)
Create CDMI data object with mimetype
|
CreateDataObjectOptions |
value()
Create CDMI data object with value equal to empty string
|
CreateDataObjectOptions |
value(byte[] value)
Create CDMI data object with byte array value
|
CreateDataObjectOptions |
value(File value)
Create CDMI data object with file value
|
CreateDataObjectOptions |
value(File value,
Charset charset)
Create CDMI data object with file value
|
CreateDataObjectOptions |
value(InputStream value)
Create CDMI data object with InputStream value
|
CreateDataObjectOptions |
value(InputStream value,
Charset charset)
Create CDMI data object with InputStream value
|
CreateDataObjectOptions |
value(String value)
Create CDMI data object with String value
|
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
public CreateDataObjectOptions metadata(Map<String,String> metadata)
metadata
in class CreateCDMIObjectOptions
metadata
- public CreateDataObjectOptions mimetype(String mimetype)
mimetype
- public CreateDataObjectOptions value()
public CreateDataObjectOptions value(String value)
value
- String valuepublic CreateDataObjectOptions value(byte[] value) throws IOException
value
- byte array value byte array is converted to a String valueIOException
public CreateDataObjectOptions value(File value) throws IOException
value
- File File is converted to a String value with charset UTF_8IOException
public CreateDataObjectOptions value(File value, Charset charset) throws IOException
value
- Filecharset
- character set of file File is converted to a String valueIOException
public CreateDataObjectOptions value(InputStream value) throws IOException
value
- InputSteam InputSteam is converted to a String value with charset UTF_8IOException
public CreateDataObjectOptions value(InputStream value, Charset charset) throws IOException
value
- InputSteamcharset
- character set of input stream InputSteam is converted to a String value with charset
UTF_8IOException
Copyright © 2009-2013 jclouds. All Rights Reserved.