public class ModelBuild extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
ModelBuild.Status |
Modifier and Type | Method and Description |
---|---|
static ModelBuildCreator |
creator(String pathAssistantSid)
Create a ModelBuildCreator to execute create.
|
static ModelBuildDeleter |
deleter(String pathAssistantSid,
String pathSid)
Create a ModelBuildDeleter to execute delete.
|
boolean |
equals(Object o) |
static ModelBuildFetcher |
fetcher(String pathAssistantSid,
String pathSid)
Create a ModelBuildFetcher to execute fetch.
|
static ModelBuild |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a ModelBuild object using the provided
ObjectMapper.
|
static ModelBuild |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a ModelBuild object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getAssistantSid()
Returns The SID of the Assistant that is the parent of the resource.
|
Integer |
getBuildDuration()
Returns The time in seconds it took to build the model.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT when the resource was last updated.
|
Integer |
getErrorCode()
Returns More information about why the model build failed, if `status` is
`failed`.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
ModelBuild.Status |
getStatus()
Returns The status of the model build process.
|
String |
getUniqueName()
Returns An application-defined string that uniquely identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the ModelBuild resource.
|
int |
hashCode() |
static ModelBuildReader |
reader(String pathAssistantSid)
Create a ModelBuildReader to execute read.
|
static ModelBuildUpdater |
updater(String pathAssistantSid,
String pathSid)
Create a ModelBuildUpdater to execute update.
|
public static ModelBuildFetcher fetcher(String pathAssistantSid, String pathSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
resource to fetchpathSid
- The unique string that identifies the resourcepublic static ModelBuildReader reader(String pathAssistantSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
resources to readpublic static ModelBuildCreator creator(String pathAssistantSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
new resourcepublic static ModelBuildUpdater updater(String pathAssistantSid, String pathSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
resource to updatepathSid
- The unique string that identifies the resource to updatepublic static ModelBuildDeleter deleter(String pathAssistantSid, String pathSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
resources to deletepathSid
- The unique string that identifies the resourcepublic static ModelBuild fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static ModelBuild fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getAssistantSid()
public final String getSid()
public final ModelBuild.Status getStatus()
public final String getUniqueName()
public final URI getUrl()
public final Integer getBuildDuration()
public final Integer getErrorCode()
Copyright © 2019 Twilio, Inc. All Rights Reserved.