Class Chunk
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.assistants.v1.knowledge.Chunk
-
- All Implemented Interfaces:
Serializable
public class Chunk extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static Chunk
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Chunk object using the provided ObjectMapper.static Chunk
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Chunk object using the provided ObjectMapper.String
getAccountSid()
String
getContent()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
Map<String,Object>
getMetadata()
int
hashCode()
static ChunkReader
reader(String pathId)
-
-
-
Method Detail
-
reader
public static ChunkReader reader(String pathId)
-
fromJson
public static Chunk fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Chunk object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Chunk object represented by the provided JSON
-
fromJson
public static Chunk fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Chunk object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Chunk object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getContent
public final String getContent()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
-