Class ListLanguagesResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.translate.model.TranslateResponse
-
- software.amazon.awssdk.services.translate.model.ListLanguagesResponse
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<ListLanguagesResponse.Builder,ListLanguagesResponse>
@Generated("software.amazon.awssdk:codegen") public final class ListLanguagesResponse extends TranslateResponse implements ToCopyableBuilder<ListLanguagesResponse.Builder,ListLanguagesResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ListLanguagesResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListLanguagesResponse.Builder
builder()
DisplayLanguageCode
displayLanguageCode()
The language code passed in with the request.String
displayLanguageCodeAsString()
The language code passed in with the request.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
boolean
hasLanguages()
For responses, this returns true if the service returned a value for the Languages property.List<Language>
languages()
The list of supported languages.String
nextToken()
If the response does not include all remaining results, use the NextToken in the next request to fetch the next group of supported languages.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends ListLanguagesResponse.Builder>
serializableBuilderClass()
ListLanguagesResponse.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.translate.model.TranslateResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
hasLanguages
public final boolean hasLanguages()
For responses, this returns true if the service returned a value for the Languages property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
languages
public final List<Language> languages()
The list of supported languages.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasLanguages()
method.- Returns:
- The list of supported languages.
-
displayLanguageCode
public final DisplayLanguageCode displayLanguageCode()
The language code passed in with the request.
If the service returns an enum value that is not available in the current SDK version,
displayLanguageCode
will returnDisplayLanguageCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromdisplayLanguageCodeAsString()
.- Returns:
- The language code passed in with the request.
- See Also:
DisplayLanguageCode
-
displayLanguageCodeAsString
public final String displayLanguageCodeAsString()
The language code passed in with the request.
If the service returns an enum value that is not available in the current SDK version,
displayLanguageCode
will returnDisplayLanguageCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromdisplayLanguageCodeAsString()
.- Returns:
- The language code passed in with the request.
- See Also:
DisplayLanguageCode
-
nextToken
public final String nextToken()
If the response does not include all remaining results, use the NextToken in the next request to fetch the next group of supported languages.
- Returns:
- If the response does not include all remaining results, use the NextToken in the next request to fetch the next group of supported languages.
-
toBuilder
public ListLanguagesResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ListLanguagesResponse.Builder,ListLanguagesResponse>
- Specified by:
toBuilder
in classAwsResponse
-
builder
public static ListLanguagesResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends ListLanguagesResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-