Class CustomModel
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CustomModel
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Constructor Summary
Constructors Constructor Description CustomModel()
-
Method Summary
Modifier and Type Method Description String
getCreated()
Gets the created.String
getCustomizationId()
Gets the customizationId.String
getDescription()
Gets the description.String
getLanguage()
Gets the language.String
getLastModified()
Gets the lastModified.String
getName()
Gets the name.String
getOwner()
Gets the owner.List<Prompt>
getPrompts()
Gets the prompts.List<Word>
getWords()
Gets the words.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
CustomModel
public CustomModel()
-
-
Method Details
-
getCustomizationId
Gets the customizationId.The customization ID (GUID) of the custom model. The **Create a custom model** method returns only this field. It does not not return the other fields of this object.
- Returns:
- the customizationId
-
getName
Gets the name.The name of the custom model.
- Returns:
- the name
-
getLanguage
Gets the language.The language identifier of the custom model (for example, `en-US`).
- Returns:
- the language
-
getOwner
Gets the owner.The GUID of the credentials for the instance of the service that owns the custom model.
- Returns:
- the owner
-
getCreated
Gets the created.The date and time in Coordinated Universal Time (UTC) at which the custom model was created. The value is provided in full ISO 8601 format (`YYYY-MM-DDThh:mm:ss.sTZD`).
- Returns:
- the created
-
getLastModified
Gets the lastModified.The date and time in Coordinated Universal Time (UTC) at which the custom model was last modified. The `created` and `updated` fields are equal when a model is first added but has yet to be updated. The value is provided in full ISO 8601 format (`YYYY-MM-DDThh:mm:ss.sTZD`).
- Returns:
- the lastModified
-
getDescription
Gets the description.The description of the custom model.
- Returns:
- the description
-
getWords
Gets the words.An array of `Word` objects that lists the words and their translations from the custom model. The words are listed in alphabetical order, with uppercase letters listed before lowercase letters. The array is empty if no words are defined for the custom model. This field is returned only by the **Get a custom model** method.
- Returns:
- the words
-
getPrompts
Gets the prompts.An array of `Prompt` objects that provides information about the prompts that are defined for the specified custom model. The array is empty if no prompts are defined for the custom model. This field is returned only by the **Get a custom model** method.
- Returns:
- the prompts
-