Interface BatchCreateCustomVocabularyItemResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<BatchCreateCustomVocabularyItemResponse.Builder,BatchCreateCustomVocabularyItemResponse>,LexModelsV2Response.Builder,SdkBuilder<BatchCreateCustomVocabularyItemResponse.Builder,BatchCreateCustomVocabularyItemResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- BatchCreateCustomVocabularyItemResponse
public static interface BatchCreateCustomVocabularyItemResponse.Builder extends LexModelsV2Response.Builder, SdkPojo, CopyableBuilder<BatchCreateCustomVocabularyItemResponse.Builder,BatchCreateCustomVocabularyItemResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BatchCreateCustomVocabularyItemResponse.BuilderbotId(String botId)The identifier of the bot associated with this custom vocabulary.BatchCreateCustomVocabularyItemResponse.BuilderbotVersion(String botVersion)The identifier of the version of the bot associated with this custom vocabulary.BatchCreateCustomVocabularyItemResponse.Buildererrors(Collection<FailedCustomVocabularyItem> errors)A list of custom vocabulary items that failed to create during the operation.BatchCreateCustomVocabularyItemResponse.Buildererrors(Consumer<FailedCustomVocabularyItem.Builder>... errors)A list of custom vocabulary items that failed to create during the operation.BatchCreateCustomVocabularyItemResponse.Buildererrors(FailedCustomVocabularyItem... errors)A list of custom vocabulary items that failed to create during the operation.BatchCreateCustomVocabularyItemResponse.BuilderlocaleId(String localeId)The identifier of the language and locale where this custom vocabulary is used.BatchCreateCustomVocabularyItemResponse.Builderresources(Collection<CustomVocabularyItem> resources)A list of custom vocabulary items that were successfully created during the operation.BatchCreateCustomVocabularyItemResponse.Builderresources(Consumer<CustomVocabularyItem.Builder>... resources)A list of custom vocabulary items that were successfully created during the operation.BatchCreateCustomVocabularyItemResponse.Builderresources(CustomVocabularyItem... resources)A list of custom vocabulary items that were successfully created during the operation.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
botId
BatchCreateCustomVocabularyItemResponse.Builder botId(String botId)
The identifier of the bot associated with this custom vocabulary.
- Parameters:
botId- The identifier of the bot associated with this custom vocabulary.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
botVersion
BatchCreateCustomVocabularyItemResponse.Builder botVersion(String botVersion)
The identifier of the version of the bot associated with this custom vocabulary.
- Parameters:
botVersion- The identifier of the version of the bot associated with this custom vocabulary.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localeId
BatchCreateCustomVocabularyItemResponse.Builder localeId(String localeId)
The identifier of the language and locale where this custom vocabulary is used. The string must match one of the supported locales. For more information, see Supported Languages .
- Parameters:
localeId- The identifier of the language and locale where this custom vocabulary is used. The string must match one of the supported locales. For more information, see Supported Languages .- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchCreateCustomVocabularyItemResponse.Builder errors(Collection<FailedCustomVocabularyItem> errors)
A list of custom vocabulary items that failed to create during the operation. The reason for the error is contained within each error object.
- Parameters:
errors- A list of custom vocabulary items that failed to create during the operation. The reason for the error is contained within each error object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchCreateCustomVocabularyItemResponse.Builder errors(FailedCustomVocabularyItem... errors)
A list of custom vocabulary items that failed to create during the operation. The reason for the error is contained within each error object.
- Parameters:
errors- A list of custom vocabulary items that failed to create during the operation. The reason for the error is contained within each error object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchCreateCustomVocabularyItemResponse.Builder errors(Consumer<FailedCustomVocabularyItem.Builder>... errors)
A list of custom vocabulary items that failed to create during the operation. The reason for the error is contained within each error object.
This is a convenience method that creates an instance of theFailedCustomVocabularyItem.Builderavoiding the need to create one manually viaFailedCustomVocabularyItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#errors(List.) - Parameters:
errors- a consumer that will call methods onFailedCustomVocabularyItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#errors(java.util.Collection)
-
resources
BatchCreateCustomVocabularyItemResponse.Builder resources(Collection<CustomVocabularyItem> resources)
A list of custom vocabulary items that were successfully created during the operation.
- Parameters:
resources- A list of custom vocabulary items that were successfully created during the operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
BatchCreateCustomVocabularyItemResponse.Builder resources(CustomVocabularyItem... resources)
A list of custom vocabulary items that were successfully created during the operation.
- Parameters:
resources- A list of custom vocabulary items that were successfully created during the operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
BatchCreateCustomVocabularyItemResponse.Builder resources(Consumer<CustomVocabularyItem.Builder>... resources)
A list of custom vocabulary items that were successfully created during the operation.
This is a convenience method that creates an instance of theCustomVocabularyItem.Builderavoiding the need to create one manually viaCustomVocabularyItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resources(List.) - Parameters:
resources- a consumer that will call methods onCustomVocabularyItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resources(java.util.Collection)
-
-