@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LanguageModel extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about a custom language model, including:
The base model name
When the model was created
The location of the files used to train the model
When the model was last modified
The name you chose for the model
The model's language
The model's processing state
Any available upgrades for the base model
Constructor and Description |
---|
LanguageModel() |
Modifier and Type | Method and Description |
---|---|
LanguageModel |
clone() |
boolean |
equals(Object obj) |
String |
getBaseModelName()
The Amazon Transcribe standard language model, or base model, used to create your custom language model.
|
Date |
getCreateTime()
The date and time the specified custom language model was created.
|
String |
getFailureReason()
If
ModelStatus is FAILED , FailureReason contains information about why the
custom language model request failed. |
InputDataConfig |
getInputDataConfig()
The Amazon S3 location of the input files used to train and tune your custom language model, in addition to the
data access role ARN (Amazon Resource Name) that has permissions to access these data.
|
String |
getLanguageCode()
The language code used to create your custom language model.
|
Date |
getLastModifiedTime()
The date and time the specified custom language model was last modified.
|
String |
getModelName()
A unique name, chosen by you, for your custom language model.
|
String |
getModelStatus()
The status of the specified custom language model.
|
Boolean |
getUpgradeAvailability()
Shows if a more current base model is available for use with the specified custom language model.
|
int |
hashCode() |
Boolean |
isUpgradeAvailability()
Shows if a more current base model is available for use with the specified custom language model.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBaseModelName(String baseModelName)
The Amazon Transcribe standard language model, or base model, used to create your custom language model.
|
void |
setCreateTime(Date createTime)
The date and time the specified custom language model was created.
|
void |
setFailureReason(String failureReason)
If
ModelStatus is FAILED , FailureReason contains information about why the
custom language model request failed. |
void |
setInputDataConfig(InputDataConfig inputDataConfig)
The Amazon S3 location of the input files used to train and tune your custom language model, in addition to the
data access role ARN (Amazon Resource Name) that has permissions to access these data.
|
void |
setLanguageCode(String languageCode)
The language code used to create your custom language model.
|
void |
setLastModifiedTime(Date lastModifiedTime)
The date and time the specified custom language model was last modified.
|
void |
setModelName(String modelName)
A unique name, chosen by you, for your custom language model.
|
void |
setModelStatus(String modelStatus)
The status of the specified custom language model.
|
void |
setUpgradeAvailability(Boolean upgradeAvailability)
Shows if a more current base model is available for use with the specified custom language model.
|
String |
toString()
Returns a string representation of this object.
|
LanguageModel |
withBaseModelName(BaseModelName baseModelName)
The Amazon Transcribe standard language model, or base model, used to create your custom language model.
|
LanguageModel |
withBaseModelName(String baseModelName)
The Amazon Transcribe standard language model, or base model, used to create your custom language model.
|
LanguageModel |
withCreateTime(Date createTime)
The date and time the specified custom language model was created.
|
LanguageModel |
withFailureReason(String failureReason)
If
ModelStatus is FAILED , FailureReason contains information about why the
custom language model request failed. |
LanguageModel |
withInputDataConfig(InputDataConfig inputDataConfig)
The Amazon S3 location of the input files used to train and tune your custom language model, in addition to the
data access role ARN (Amazon Resource Name) that has permissions to access these data.
|
LanguageModel |
withLanguageCode(CLMLanguageCode languageCode)
The language code used to create your custom language model.
|
LanguageModel |
withLanguageCode(String languageCode)
The language code used to create your custom language model.
|
LanguageModel |
withLastModifiedTime(Date lastModifiedTime)
The date and time the specified custom language model was last modified.
|
LanguageModel |
withModelName(String modelName)
A unique name, chosen by you, for your custom language model.
|
LanguageModel |
withModelStatus(ModelStatus modelStatus)
The status of the specified custom language model.
|
LanguageModel |
withModelStatus(String modelStatus)
The status of the specified custom language model.
|
LanguageModel |
withUpgradeAvailability(Boolean upgradeAvailability)
Shows if a more current base model is available for use with the specified custom language model.
|
public void setModelName(String modelName)
A unique name, chosen by you, for your custom language model.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account.
modelName
- A unique name, chosen by you, for your custom language model.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account.
public String getModelName()
A unique name, chosen by you, for your custom language model.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account.
public LanguageModel withModelName(String modelName)
A unique name, chosen by you, for your custom language model.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account.
modelName
- A unique name, chosen by you, for your custom language model.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account.
public void setCreateTime(Date createTime)
The date and time the specified custom language model was created.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
createTime
- The date and time the specified custom language model was created.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
public Date getCreateTime()
The date and time the specified custom language model was created.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
public LanguageModel withCreateTime(Date createTime)
The date and time the specified custom language model was created.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
createTime
- The date and time the specified custom language model was created.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
public void setLastModifiedTime(Date lastModifiedTime)
The date and time the specified custom language model was last modified.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
lastModifiedTime
- The date and time the specified custom language model was last modified.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
public Date getLastModifiedTime()
The date and time the specified custom language model was last modified.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
public LanguageModel withLastModifiedTime(Date lastModifiedTime)
The date and time the specified custom language model was last modified.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
lastModifiedTime
- The date and time the specified custom language model was last modified.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example,
2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
public void setLanguageCode(String languageCode)
The language code used to create your custom language model. Each custom language model must contain terms in only one language, and the language you select for your custom language model must match the language of your training and tuning data.
For a list of supported languages and their associated language codes, refer to the Supported languages table.
Note that U.S. English (en-US
) is the only language supported with Amazon Transcribe Medical.
languageCode
- The language code used to create your custom language model. Each custom language model must contain terms
in only one language, and the language you select for your custom language model must match the language
of your training and tuning data.
For a list of supported languages and their associated language codes, refer to the Supported languages
table. Note that U.S. English (en-US
) is the only language supported with Amazon Transcribe
Medical.
CLMLanguageCode
public String getLanguageCode()
The language code used to create your custom language model. Each custom language model must contain terms in only one language, and the language you select for your custom language model must match the language of your training and tuning data.
For a list of supported languages and their associated language codes, refer to the Supported languages table.
Note that U.S. English (en-US
) is the only language supported with Amazon Transcribe Medical.
For a list of supported languages and their associated language codes, refer to the Supported languages
table. Note that U.S. English (en-US
) is the only language supported with Amazon Transcribe
Medical.
CLMLanguageCode
public LanguageModel withLanguageCode(String languageCode)
The language code used to create your custom language model. Each custom language model must contain terms in only one language, and the language you select for your custom language model must match the language of your training and tuning data.
For a list of supported languages and their associated language codes, refer to the Supported languages table.
Note that U.S. English (en-US
) is the only language supported with Amazon Transcribe Medical.
languageCode
- The language code used to create your custom language model. Each custom language model must contain terms
in only one language, and the language you select for your custom language model must match the language
of your training and tuning data.
For a list of supported languages and their associated language codes, refer to the Supported languages
table. Note that U.S. English (en-US
) is the only language supported with Amazon Transcribe
Medical.
CLMLanguageCode
public LanguageModel withLanguageCode(CLMLanguageCode languageCode)
The language code used to create your custom language model. Each custom language model must contain terms in only one language, and the language you select for your custom language model must match the language of your training and tuning data.
For a list of supported languages and their associated language codes, refer to the Supported languages table.
Note that U.S. English (en-US
) is the only language supported with Amazon Transcribe Medical.
languageCode
- The language code used to create your custom language model. Each custom language model must contain terms
in only one language, and the language you select for your custom language model must match the language
of your training and tuning data.
For a list of supported languages and their associated language codes, refer to the Supported languages
table. Note that U.S. English (en-US
) is the only language supported with Amazon Transcribe
Medical.
CLMLanguageCode
public void setBaseModelName(String baseModelName)
The Amazon Transcribe standard language model, or base model, used to create your custom language model.
baseModelName
- The Amazon Transcribe standard language model, or base model, used to create your custom language model.BaseModelName
public String getBaseModelName()
The Amazon Transcribe standard language model, or base model, used to create your custom language model.
BaseModelName
public LanguageModel withBaseModelName(String baseModelName)
The Amazon Transcribe standard language model, or base model, used to create your custom language model.
baseModelName
- The Amazon Transcribe standard language model, or base model, used to create your custom language model.BaseModelName
public LanguageModel withBaseModelName(BaseModelName baseModelName)
The Amazon Transcribe standard language model, or base model, used to create your custom language model.
baseModelName
- The Amazon Transcribe standard language model, or base model, used to create your custom language model.BaseModelName
public void setModelStatus(String modelStatus)
The status of the specified custom language model. When the status displays as COMPLETED
the model
is ready for use.
modelStatus
- The status of the specified custom language model. When the status displays as COMPLETED
the
model is ready for use.ModelStatus
public String getModelStatus()
The status of the specified custom language model. When the status displays as COMPLETED
the model
is ready for use.
COMPLETED
the
model is ready for use.ModelStatus
public LanguageModel withModelStatus(String modelStatus)
The status of the specified custom language model. When the status displays as COMPLETED
the model
is ready for use.
modelStatus
- The status of the specified custom language model. When the status displays as COMPLETED
the
model is ready for use.ModelStatus
public LanguageModel withModelStatus(ModelStatus modelStatus)
The status of the specified custom language model. When the status displays as COMPLETED
the model
is ready for use.
modelStatus
- The status of the specified custom language model. When the status displays as COMPLETED
the
model is ready for use.ModelStatus
public void setUpgradeAvailability(Boolean upgradeAvailability)
Shows if a more current base model is available for use with the specified custom language model.
If false
, your custom language model is using the most up-to-date base model.
If true
, there is a newer base model available than the one your language model is using.
Note that to update a base model, you must recreate the custom language model using the new base model. Base model upgrades for existing custom language models are not supported.
upgradeAvailability
- Shows if a more current base model is available for use with the specified custom language model.
If false
, your custom language model is using the most up-to-date base model.
If true
, there is a newer base model available than the one your language model is using.
Note that to update a base model, you must recreate the custom language model using the new base model. Base model upgrades for existing custom language models are not supported.
public Boolean getUpgradeAvailability()
Shows if a more current base model is available for use with the specified custom language model.
If false
, your custom language model is using the most up-to-date base model.
If true
, there is a newer base model available than the one your language model is using.
Note that to update a base model, you must recreate the custom language model using the new base model. Base model upgrades for existing custom language models are not supported.
If false
, your custom language model is using the most up-to-date base model.
If true
, there is a newer base model available than the one your language model is using.
Note that to update a base model, you must recreate the custom language model using the new base model. Base model upgrades for existing custom language models are not supported.
public LanguageModel withUpgradeAvailability(Boolean upgradeAvailability)
Shows if a more current base model is available for use with the specified custom language model.
If false
, your custom language model is using the most up-to-date base model.
If true
, there is a newer base model available than the one your language model is using.
Note that to update a base model, you must recreate the custom language model using the new base model. Base model upgrades for existing custom language models are not supported.
upgradeAvailability
- Shows if a more current base model is available for use with the specified custom language model.
If false
, your custom language model is using the most up-to-date base model.
If true
, there is a newer base model available than the one your language model is using.
Note that to update a base model, you must recreate the custom language model using the new base model. Base model upgrades for existing custom language models are not supported.
public Boolean isUpgradeAvailability()
Shows if a more current base model is available for use with the specified custom language model.
If false
, your custom language model is using the most up-to-date base model.
If true
, there is a newer base model available than the one your language model is using.
Note that to update a base model, you must recreate the custom language model using the new base model. Base model upgrades for existing custom language models are not supported.
If false
, your custom language model is using the most up-to-date base model.
If true
, there is a newer base model available than the one your language model is using.
Note that to update a base model, you must recreate the custom language model using the new base model. Base model upgrades for existing custom language models are not supported.
public void setFailureReason(String failureReason)
If ModelStatus
is FAILED
, FailureReason
contains information about why the
custom language model request failed. See also: Common Errors.
failureReason
- If ModelStatus
is FAILED
, FailureReason
contains information about
why the custom language model request failed. See also: Common Errors.public String getFailureReason()
If ModelStatus
is FAILED
, FailureReason
contains information about why the
custom language model request failed. See also: Common Errors.
ModelStatus
is FAILED
, FailureReason
contains information about
why the custom language model request failed. See also: Common Errors.public LanguageModel withFailureReason(String failureReason)
If ModelStatus
is FAILED
, FailureReason
contains information about why the
custom language model request failed. See also: Common Errors.
failureReason
- If ModelStatus
is FAILED
, FailureReason
contains information about
why the custom language model request failed. See also: Common Errors.public void setInputDataConfig(InputDataConfig inputDataConfig)
The Amazon S3 location of the input files used to train and tune your custom language model, in addition to the data access role ARN (Amazon Resource Name) that has permissions to access these data.
inputDataConfig
- The Amazon S3 location of the input files used to train and tune your custom language model, in addition
to the data access role ARN (Amazon Resource Name) that has permissions to access these data.public InputDataConfig getInputDataConfig()
The Amazon S3 location of the input files used to train and tune your custom language model, in addition to the data access role ARN (Amazon Resource Name) that has permissions to access these data.
public LanguageModel withInputDataConfig(InputDataConfig inputDataConfig)
The Amazon S3 location of the input files used to train and tune your custom language model, in addition to the data access role ARN (Amazon Resource Name) that has permissions to access these data.
inputDataConfig
- The Amazon S3 location of the input files used to train and tune your custom language model, in addition
to the data access role ARN (Amazon Resource Name) that has permissions to access these data.public String toString()
toString
in class Object
Object.toString()
public LanguageModel clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.