Class DescribeImportResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Response
-
- software.amazon.awssdk.services.lexmodelsv2.model.DescribeImportResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeImportResponse.Builder,DescribeImportResponse>
@Generated("software.amazon.awssdk:codegen") public final class DescribeImportResponse extends LexModelsV2Response implements ToCopyableBuilder<DescribeImportResponse.Builder,DescribeImportResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDescribeImportResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DescribeImportResponse.Builderbuilder()InstantcreationDateTime()The date and time that the import was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)List<String>failureReasons()If theimportStatusfield isFailed, this provides one or more reasons for the failure.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasFailureReasons()For responses, this returns true if the service returned a value for the FailureReasons property.inthashCode()StringimportedResourceId()The unique identifier that Amazon Lex assigned to the resource created by the import.StringimportedResourceName()The name of the imported resource.StringimportId()The unique identifier of the described import.ImportStatusimportStatus()The status of the import process.StringimportStatusAsString()The status of the import process.InstantlastUpdatedDateTime()The date and time that the import was last updated.MergeStrategymergeStrategy()The strategy used when there was a name conflict between the imported resource and an existing resource.StringmergeStrategyAsString()The strategy used when there was a name conflict between the imported resource and an existing resource.ImportResourceSpecificationresourceSpecification()The specifications of the imported bot, bot locale, or custom vocabulary.List<SdkField<?>>sdkFields()static Class<? extends DescribeImportResponse.Builder>serializableBuilderClass()DescribeImportResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Response
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
-
importId
public final String importId()
The unique identifier of the described import.
- Returns:
- The unique identifier of the described import.
-
resourceSpecification
public final ImportResourceSpecification resourceSpecification()
The specifications of the imported bot, bot locale, or custom vocabulary.
- Returns:
- The specifications of the imported bot, bot locale, or custom vocabulary.
-
importedResourceId
public final String importedResourceId()
The unique identifier that Amazon Lex assigned to the resource created by the import.
- Returns:
- The unique identifier that Amazon Lex assigned to the resource created by the import.
-
importedResourceName
public final String importedResourceName()
The name of the imported resource.
- Returns:
- The name of the imported resource.
-
mergeStrategy
public final MergeStrategy mergeStrategy()
The strategy used when there was a name conflict between the imported resource and an existing resource. When the merge strategy is
FailOnConflictexisting resources are not overwritten and the import fails.If the service returns an enum value that is not available in the current SDK version,
mergeStrategywill returnMergeStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommergeStrategyAsString().- Returns:
- The strategy used when there was a name conflict between the imported resource and an existing resource.
When the merge strategy is
FailOnConflictexisting resources are not overwritten and the import fails. - See Also:
MergeStrategy
-
mergeStrategyAsString
public final String mergeStrategyAsString()
The strategy used when there was a name conflict between the imported resource and an existing resource. When the merge strategy is
FailOnConflictexisting resources are not overwritten and the import fails.If the service returns an enum value that is not available in the current SDK version,
mergeStrategywill returnMergeStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommergeStrategyAsString().- Returns:
- The strategy used when there was a name conflict between the imported resource and an existing resource.
When the merge strategy is
FailOnConflictexisting resources are not overwritten and the import fails. - See Also:
MergeStrategy
-
importStatus
public final ImportStatus importStatus()
The status of the import process. When the status is
Completedthe resource is imported and ready for use.If the service returns an enum value that is not available in the current SDK version,
importStatuswill returnImportStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromimportStatusAsString().- Returns:
- The status of the import process. When the status is
Completedthe resource is imported and ready for use. - See Also:
ImportStatus
-
importStatusAsString
public final String importStatusAsString()
The status of the import process. When the status is
Completedthe resource is imported and ready for use.If the service returns an enum value that is not available in the current SDK version,
importStatuswill returnImportStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromimportStatusAsString().- Returns:
- The status of the import process. When the status is
Completedthe resource is imported and ready for use. - See Also:
ImportStatus
-
hasFailureReasons
public final boolean hasFailureReasons()
For responses, this returns true if the service returned a value for the FailureReasons 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.
-
failureReasons
public final List<String> failureReasons()
If the
importStatusfield isFailed, this provides one or more reasons for the failure.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
hasFailureReasons()method.- Returns:
- If the
importStatusfield isFailed, this provides one or more reasons for the failure.
-
creationDateTime
public final Instant creationDateTime()
The date and time that the import was created.
- Returns:
- The date and time that the import was created.
-
lastUpdatedDateTime
public final Instant lastUpdatedDateTime()
The date and time that the import was last updated.
- Returns:
- The date and time that the import was last updated.
-
toBuilder
public DescribeImportResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeImportResponse.Builder,DescribeImportResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static DescribeImportResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeImportResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-