public static interface Content.Builder
Modifier and Type | Method and Description |
---|---|
Content |
get()
Return a content built by this builder.
|
void |
setCharset(java.lang.String charset)
Set charset of the content.
|
void |
setName(java.lang.String name)
Set content's name
|
void |
setType(com.ibm.es.ama.datamodel.Field.FieldType type)
Set content's type
|
void |
setValueFromBytes(byte[] bytes)
Set content's byte value.
|
void |
setValueFromFile(java.io.File file)
Set content's byte value from a file.
|
void |
setValueFromString(java.lang.String value)
Set conten't value from string
|
void setName(java.lang.String name)
name
- void setType(com.ibm.es.ama.datamodel.Field.FieldType type)
type
- void setValueFromFile(java.io.File file)
file
- void setValueFromString(java.lang.String value)
value
- void setCharset(java.lang.String charset)
charset
- void setValueFromBytes(byte[] bytes)
bytes
- Content get()
Content
value