Class ModelBuild
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.preview.understand.assistant.ModelBuild
-
- All Implemented Interfaces:
Serializable
public class ModelBuild extends Resource
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelBuild.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 The unique ID of the Account that created this Model Build..String
getAssistantSid()
Returns The The unique ID of the parent Assistant..Integer
getBuildDuration()
Returns The The time in seconds it took to build the model..org.joda.time.DateTime
getDateCreated()
Returns The The date that this resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The date that this resource was last updated.Integer
getErrorCode()
Returns The The error_code.String
getSid()
Returns The A 34 character string that uniquely identifies this resource..ModelBuild.Status
getStatus()
Returns The A string that described the model build status.String
getUniqueName()
Returns The A user-provided string that uniquely identifies this resource as an alternative to the sid.URI
getUrl()
Returns The The url.int
hashCode()
static ModelBuildReader
reader(String pathAssistantSid)
Create a ModelBuildReader to execute read.String
toString()
static ModelBuildUpdater
updater(String pathAssistantSid, String pathSid)
Create a ModelBuildUpdater to execute update.
-
-
-
Method Detail
-
fetcher
public static ModelBuildFetcher fetcher(String pathAssistantSid, String pathSid)
Create a ModelBuildFetcher to execute fetch.- Parameters:
pathAssistantSid
- The assistant_sidpathSid
- The sid- Returns:
- ModelBuildFetcher capable of executing the fetch
-
reader
public static ModelBuildReader reader(String pathAssistantSid)
Create a ModelBuildReader to execute read.- Parameters:
pathAssistantSid
- The assistant_sid- Returns:
- ModelBuildReader capable of executing the read
-
creator
public static ModelBuildCreator creator(String pathAssistantSid)
Create a ModelBuildCreator to execute create.- Parameters:
pathAssistantSid
- The assistant_sid- Returns:
- ModelBuildCreator capable of executing the create
-
updater
public static ModelBuildUpdater updater(String pathAssistantSid, String pathSid)
Create a ModelBuildUpdater to execute update.- Parameters:
pathAssistantSid
- The assistant_sidpathSid
- The sid- Returns:
- ModelBuildUpdater capable of executing the update
-
deleter
public static ModelBuildDeleter deleter(String pathAssistantSid, String pathSid)
Create a ModelBuildDeleter to execute delete.- Parameters:
pathAssistantSid
- The assistant_sidpathSid
- The sid- Returns:
- ModelBuildDeleter capable of executing the delete
-
fromJson
public static ModelBuild fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a ModelBuild object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- ModelBuild object represented by the provided JSON
-
fromJson
public static ModelBuild fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a ModelBuild object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- ModelBuild object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The The unique ID of the Account that created this Model Build..- Returns:
- The unique ID of the Account that created this Model Build.
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The date that this resource was created.- Returns:
- The date that this resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The date that this resource was last updated.- Returns:
- The date that this resource was last updated
-
getAssistantSid
public final String getAssistantSid()
Returns The The unique ID of the parent Assistant..- Returns:
- The unique ID of the parent Assistant.
-
getSid
public final String getSid()
Returns The A 34 character string that uniquely identifies this resource..- Returns:
- A 34 character string that uniquely identifies this resource.
-
getStatus
public final ModelBuild.Status getStatus()
Returns The A string that described the model build status. The values can be: enqueued, building, completed, failed.- Returns:
- A string that described the model build status. The values can be: enqueued, building, completed, failed
-
getUniqueName
public final String getUniqueName()
Returns The A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long..- Returns:
- A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.
-
getUrl
public final URI getUrl()
Returns The The url.- Returns:
- The url
-
getBuildDuration
public final Integer getBuildDuration()
Returns The The time in seconds it took to build the model..- Returns:
- The time in seconds it took to build the model.
-
getErrorCode
public final Integer getErrorCode()
Returns The The error_code.- Returns:
- The error_code
-
-