Class LanguageWithScore
- java.lang.Object
-
- software.amazon.awssdk.services.transcribestreaming.model.LanguageWithScore
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LanguageWithScore.Builder,LanguageWithScore>
@Generated("software.amazon.awssdk:codegen") public final class LanguageWithScore extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LanguageWithScore.Builder,LanguageWithScore>
The language code that represents the language identified in your audio, including the associated confidence score. If you enabled channel identification in your request and each channel contained a different language, you will have more than one
LanguageWithScoreresult.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLanguageWithScore.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LanguageWithScore.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LanguageCodelanguageCode()The language code of the identified language.StringlanguageCodeAsString()The language code of the identified language.Doublescore()The confidence score associated with the identified language code.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends LanguageWithScore.Builder>serializableBuilderClass()LanguageWithScore.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
languageCode
public final LanguageCode languageCode()
The language code of the identified language.
If the service returns an enum value that is not available in the current SDK version,
languageCodewill returnLanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlanguageCodeAsString().- Returns:
- The language code of the identified language.
- See Also:
LanguageCode
-
languageCodeAsString
public final String languageCodeAsString()
The language code of the identified language.
If the service returns an enum value that is not available in the current SDK version,
languageCodewill returnLanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlanguageCodeAsString().- Returns:
- The language code of the identified language.
- See Also:
LanguageCode
-
score
public final Double score()
The confidence score associated with the identified language code. Confidence scores are values between zero and one; larger values indicate a higher confidence in the identified language.
- Returns:
- The confidence score associated with the identified language code. Confidence scores are values between zero and one; larger values indicate a higher confidence in the identified language.
-
toBuilder
public LanguageWithScore.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LanguageWithScore.Builder,LanguageWithScore>
-
builder
public static LanguageWithScore.Builder builder()
-
serializableBuilderClass
public static Class<? extends LanguageWithScore.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-