Class DescribeBotResourceGenerationResponse
- 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.DescribeBotResourceGenerationResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeBotResourceGenerationResponse.Builder,DescribeBotResourceGenerationResponse>
@Generated("software.amazon.awssdk:codegen") public final class DescribeBotResourceGenerationResponse extends LexModelsV2Response implements ToCopyableBuilder<DescribeBotResourceGenerationResponse.Builder,DescribeBotResourceGenerationResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDescribeBotResourceGenerationResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbotId()The unique identifier of the bot for which the generation request was made.StringbotVersion()The version of the bot for which the generation request was made.static DescribeBotResourceGenerationResponse.Builderbuilder()InstantcreationDateTime()The date and time at which the item was generated.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)List<String>failureReasons()A list of reasons why the generation of bot resources through natural language description failed.StringgeneratedBotLocaleUrl()The Amazon S3 location of the generated bot locale configuration.StringgenerationId()The generation ID for which to return the generation details.StringgenerationInputPrompt()The prompt used in the generation request.GenerationStatusgenerationStatus()The status of the generation request.StringgenerationStatusAsString()The status of the generation request.<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()InstantlastUpdatedDateTime()The date and time at which the generated item was updated.StringlocaleId()The locale of the bot for which the generation request was made.StringmodelArn()The ARN of the model used to generate the bot resources.List<SdkField<?>>sdkFields()static Class<? extends DescribeBotResourceGenerationResponse.Builder>serializableBuilderClass()DescribeBotResourceGenerationResponse.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
-
botId
public final String botId()
The unique identifier of the bot for which the generation request was made.
- Returns:
- The unique identifier of the bot for which the generation request was made.
-
botVersion
public final String botVersion()
The version of the bot for which the generation request was made.
- Returns:
- The version of the bot for which the generation request was made.
-
localeId
public final String localeId()
The locale of the bot for which the generation request was made.
- Returns:
- The locale of the bot for which the generation request was made.
-
generationId
public final String generationId()
The generation ID for which to return the generation details.
- Returns:
- The generation ID for which to return the generation details.
-
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()
A list of reasons why the generation of bot resources through natural language description failed.
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:
- A list of reasons why the generation of bot resources through natural language description failed.
-
generationStatus
public final GenerationStatus generationStatus()
The status of the generation request.
If the service returns an enum value that is not available in the current SDK version,
generationStatuswill returnGenerationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgenerationStatusAsString().- Returns:
- The status of the generation request.
- See Also:
GenerationStatus
-
generationStatusAsString
public final String generationStatusAsString()
The status of the generation request.
If the service returns an enum value that is not available in the current SDK version,
generationStatuswill returnGenerationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgenerationStatusAsString().- Returns:
- The status of the generation request.
- See Also:
GenerationStatus
-
generationInputPrompt
public final String generationInputPrompt()
The prompt used in the generation request.
- Returns:
- The prompt used in the generation request.
-
generatedBotLocaleUrl
public final String generatedBotLocaleUrl()
The Amazon S3 location of the generated bot locale configuration.
- Returns:
- The Amazon S3 location of the generated bot locale configuration.
-
creationDateTime
public final Instant creationDateTime()
The date and time at which the item was generated.
- Returns:
- The date and time at which the item was generated.
-
modelArn
public final String modelArn()
The ARN of the model used to generate the bot resources.
- Returns:
- The ARN of the model used to generate the bot resources.
-
lastUpdatedDateTime
public final Instant lastUpdatedDateTime()
The date and time at which the generated item was updated.
- Returns:
- The date and time at which the generated item was updated.
-
toBuilder
public DescribeBotResourceGenerationResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeBotResourceGenerationResponse.Builder,DescribeBotResourceGenerationResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static DescribeBotResourceGenerationResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeBotResourceGenerationResponse.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
-
-