Interface GetIndexResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetIndexResponse.Builder,GetIndexResponse>,QBusinessResponse.Builder,SdkBuilder<GetIndexResponse.Builder,GetIndexResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetIndexResponse
public static interface GetIndexResponse.Builder extends QBusinessResponse.Builder, SdkPojo, CopyableBuilder<GetIndexResponse.Builder,GetIndexResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetIndexResponse.BuilderapplicationId(String applicationId)The identifier of the Amazon Q application associated with the index.default GetIndexResponse.BuildercapacityConfiguration(Consumer<IndexCapacityConfiguration.Builder> capacityConfiguration)The storage capacity units chosen for your Amazon Q index.GetIndexResponse.BuildercapacityConfiguration(IndexCapacityConfiguration capacityConfiguration)The storage capacity units chosen for your Amazon Q index.GetIndexResponse.BuildercreatedAt(Instant createdAt)The Unix timestamp when the Amazon Q index was created.GetIndexResponse.Builderdescription(String description)The description for the Amazon Q index.GetIndexResponse.BuilderdisplayName(String displayName)The name of the Amazon Q index.GetIndexResponse.BuilderdocumentAttributeConfigurations(Collection<DocumentAttributeConfiguration> documentAttributeConfigurations)Configuration information for document attributes or metadata.GetIndexResponse.BuilderdocumentAttributeConfigurations(Consumer<DocumentAttributeConfiguration.Builder>... documentAttributeConfigurations)Configuration information for document attributes or metadata.GetIndexResponse.BuilderdocumentAttributeConfigurations(DocumentAttributeConfiguration... documentAttributeConfigurations)Configuration information for document attributes or metadata.default GetIndexResponse.Buildererror(Consumer<ErrorDetail.Builder> error)When theStatusfield value isFAILED, theErrorMessagefield contains a message that explains why.GetIndexResponse.Buildererror(ErrorDetail error)When theStatusfield value isFAILED, theErrorMessagefield contains a message that explains why.GetIndexResponse.BuilderindexArn(String indexArn)The Amazon Resource Name (ARN) of the Amazon Q index.GetIndexResponse.BuilderindexId(String indexId)The identifier of the Amazon Q index.default GetIndexResponse.BuilderindexStatistics(Consumer<IndexStatistics.Builder> indexStatistics)Provides information about the number of documents indexed.GetIndexResponse.BuilderindexStatistics(IndexStatistics indexStatistics)Provides information about the number of documents indexed.GetIndexResponse.Builderstatus(String status)The current status of the index.GetIndexResponse.Builderstatus(IndexStatus status)The current status of the index.GetIndexResponse.BuilderupdatedAt(Instant updatedAt)The Unix timestamp when the Amazon Q index was last updated.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.qbusiness.model.QBusinessResponse.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
-
applicationId
GetIndexResponse.Builder applicationId(String applicationId)
The identifier of the Amazon Q application associated with the index.
- Parameters:
applicationId- The identifier of the Amazon Q application associated with the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityConfiguration
GetIndexResponse.Builder capacityConfiguration(IndexCapacityConfiguration capacityConfiguration)
The storage capacity units chosen for your Amazon Q index.
- Parameters:
capacityConfiguration- The storage capacity units chosen for your Amazon Q index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityConfiguration
default GetIndexResponse.Builder capacityConfiguration(Consumer<IndexCapacityConfiguration.Builder> capacityConfiguration)
The storage capacity units chosen for your Amazon Q index.
This is a convenience method that creates an instance of theIndexCapacityConfiguration.Builderavoiding the need to create one manually viaIndexCapacityConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocapacityConfiguration(IndexCapacityConfiguration).- Parameters:
capacityConfiguration- a consumer that will call methods onIndexCapacityConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
capacityConfiguration(IndexCapacityConfiguration)
-
createdAt
GetIndexResponse.Builder createdAt(Instant createdAt)
The Unix timestamp when the Amazon Q index was created.
- Parameters:
createdAt- The Unix timestamp when the Amazon Q index was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
GetIndexResponse.Builder description(String description)
The description for the Amazon Q index.
- Parameters:
description- The description for the Amazon Q index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
GetIndexResponse.Builder displayName(String displayName)
The name of the Amazon Q index.
- Parameters:
displayName- The name of the Amazon Q index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentAttributeConfigurations
GetIndexResponse.Builder documentAttributeConfigurations(Collection<DocumentAttributeConfiguration> documentAttributeConfigurations)
Configuration information for document attributes or metadata. Document metadata are fields associated with your documents. For example, the company department name associated with each document. For more information, see Understanding document attributes.
- Parameters:
documentAttributeConfigurations- Configuration information for document attributes or metadata. Document metadata are fields associated with your documents. For example, the company department name associated with each document. For more information, see Understanding document attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentAttributeConfigurations
GetIndexResponse.Builder documentAttributeConfigurations(DocumentAttributeConfiguration... documentAttributeConfigurations)
Configuration information for document attributes or metadata. Document metadata are fields associated with your documents. For example, the company department name associated with each document. For more information, see Understanding document attributes.
- Parameters:
documentAttributeConfigurations- Configuration information for document attributes or metadata. Document metadata are fields associated with your documents. For example, the company department name associated with each document. For more information, see Understanding document attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentAttributeConfigurations
GetIndexResponse.Builder documentAttributeConfigurations(Consumer<DocumentAttributeConfiguration.Builder>... documentAttributeConfigurations)
Configuration information for document attributes or metadata. Document metadata are fields associated with your documents. For example, the company department name associated with each document. For more information, see Understanding document attributes.
This is a convenience method that creates an instance of theDocumentAttributeConfiguration.Builderavoiding the need to create one manually viaDocumentAttributeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#documentAttributeConfigurations(List.) - Parameters:
documentAttributeConfigurations- a consumer that will call methods onDocumentAttributeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#documentAttributeConfigurations(java.util.Collection)
-
error
GetIndexResponse.Builder error(ErrorDetail error)
When the
Statusfield value isFAILED, theErrorMessagefield contains a message that explains why.- Parameters:
error- When theStatusfield value isFAILED, theErrorMessagefield contains a message that explains why.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
default GetIndexResponse.Builder error(Consumer<ErrorDetail.Builder> error)
When the
This is a convenience method that creates an instance of theStatusfield value isFAILED, theErrorMessagefield contains a message that explains why.ErrorDetail.Builderavoiding the need to create one manually viaErrorDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(ErrorDetail).- Parameters:
error- a consumer that will call methods onErrorDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
error(ErrorDetail)
-
indexArn
GetIndexResponse.Builder indexArn(String indexArn)
The Amazon Resource Name (ARN) of the Amazon Q index.
- Parameters:
indexArn- The Amazon Resource Name (ARN) of the Amazon Q index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexId
GetIndexResponse.Builder indexId(String indexId)
The identifier of the Amazon Q index.
- Parameters:
indexId- The identifier of the Amazon Q index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexStatistics
GetIndexResponse.Builder indexStatistics(IndexStatistics indexStatistics)
Provides information about the number of documents indexed.
- Parameters:
indexStatistics- Provides information about the number of documents indexed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexStatistics
default GetIndexResponse.Builder indexStatistics(Consumer<IndexStatistics.Builder> indexStatistics)
Provides information about the number of documents indexed.
This is a convenience method that creates an instance of theIndexStatistics.Builderavoiding the need to create one manually viaIndexStatistics.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toindexStatistics(IndexStatistics).- Parameters:
indexStatistics- a consumer that will call methods onIndexStatistics.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
indexStatistics(IndexStatistics)
-
status
GetIndexResponse.Builder status(String status)
The current status of the index. When the value is
ACTIVE, the index is ready for use. If theStatusfield value isFAILED, theErrorMessagefield contains a message that explains why.- Parameters:
status- The current status of the index. When the value isACTIVE, the index is ready for use. If theStatusfield value isFAILED, theErrorMessagefield contains a message that explains why.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IndexStatus,IndexStatus
-
status
GetIndexResponse.Builder status(IndexStatus status)
The current status of the index. When the value is
ACTIVE, the index is ready for use. If theStatusfield value isFAILED, theErrorMessagefield contains a message that explains why.- Parameters:
status- The current status of the index. When the value isACTIVE, the index is ready for use. If theStatusfield value isFAILED, theErrorMessagefield contains a message that explains why.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IndexStatus,IndexStatus
-
updatedAt
GetIndexResponse.Builder updatedAt(Instant updatedAt)
The Unix timestamp when the Amazon Q index was last updated.
- Parameters:
updatedAt- The Unix timestamp when the Amazon Q index was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-