Interface GetIntentVersionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetIntentVersionsResponse.Builder,,GetIntentVersionsResponse> LexModelBuildingResponse.Builder,SdkBuilder<GetIntentVersionsResponse.Builder,,GetIntentVersionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetIntentVersionsResponse
@Mutable
@NotThreadSafe
public static interface GetIntentVersionsResponse.Builder
extends LexModelBuildingResponse.Builder, SdkPojo, CopyableBuilder<GetIntentVersionsResponse.Builder,GetIntentVersionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionintents(Collection<IntentMetadata> intents) An array ofIntentMetadataobjects, one for each numbered version of the intent plus one for the$LATESTversion.intents(Consumer<IntentMetadata.Builder>... intents) An array ofIntentMetadataobjects, one for each numbered version of the intent plus one for the$LATESTversion.intents(IntentMetadata... intents) An array ofIntentMetadataobjects, one for each numbered version of the intent plus one for the$LATESTversion.A pagination token for fetching the next page of intent versions.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lexmodelbuilding.model.LexModelBuildingResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
intents
An array of
IntentMetadataobjects, one for each numbered version of the intent plus one for the$LATESTversion.- Parameters:
intents- An array ofIntentMetadataobjects, one for each numbered version of the intent plus one for the$LATESTversion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intents
An array of
IntentMetadataobjects, one for each numbered version of the intent plus one for the$LATESTversion.- Parameters:
intents- An array ofIntentMetadataobjects, one for each numbered version of the intent plus one for the$LATESTversion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intents
An array of
This is a convenience method that creates an instance of theIntentMetadataobjects, one for each numbered version of the intent plus one for the$LATESTversion.IntentMetadata.Builderavoiding the need to create one manually viaIntentMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tointents(List<IntentMetadata>).- Parameters:
intents- a consumer that will call methods onIntentMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A pagination token for fetching the next page of intent versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.
- Parameters:
nextToken- A pagination token for fetching the next page of intent versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-