Interface RetrieveAndGenerateResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,BedrockAgentRuntimeResponse.Builder
,Buildable
,CopyableBuilder<RetrieveAndGenerateResponse.Builder,RetrieveAndGenerateResponse>
,SdkBuilder<RetrieveAndGenerateResponse.Builder,RetrieveAndGenerateResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- RetrieveAndGenerateResponse
public static interface RetrieveAndGenerateResponse.Builder extends BedrockAgentRuntimeResponse.Builder, SdkPojo, CopyableBuilder<RetrieveAndGenerateResponse.Builder,RetrieveAndGenerateResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RetrieveAndGenerateResponse.Builder
citations(Collection<Citation> citations)
Sets the value of the Citations property for this object.RetrieveAndGenerateResponse.Builder
citations(Consumer<Citation.Builder>... citations)
Sets the value of the Citations property for this object.RetrieveAndGenerateResponse.Builder
citations(Citation... citations)
Sets the value of the Citations property for this object.default RetrieveAndGenerateResponse.Builder
output(Consumer<RetrieveAndGenerateOutput.Builder> output)
Sets the value of the Output property for this object.RetrieveAndGenerateResponse.Builder
output(RetrieveAndGenerateOutput output)
Sets the value of the Output property for this object.RetrieveAndGenerateResponse.Builder
sessionId(String sessionId)
Sets the value of the SessionId property for this object.-
Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
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
-
sessionId
RetrieveAndGenerateResponse.Builder sessionId(String sessionId)
Sets the value of the SessionId property for this object.- Parameters:
sessionId
- The new value for the SessionId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
output
RetrieveAndGenerateResponse.Builder output(RetrieveAndGenerateOutput output)
Sets the value of the Output property for this object.- Parameters:
output
- The new value for the Output property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
output
default RetrieveAndGenerateResponse.Builder output(Consumer<RetrieveAndGenerateOutput.Builder> output)
Sets the value of the Output property for this object. This is a convenience method that creates an instance of theRetrieveAndGenerateOutput.Builder
avoiding the need to create one manually viaRetrieveAndGenerateOutput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutput(RetrieveAndGenerateOutput)
.- Parameters:
output
- a consumer that will call methods onRetrieveAndGenerateOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
output(RetrieveAndGenerateOutput)
-
citations
RetrieveAndGenerateResponse.Builder citations(Collection<Citation> citations)
Sets the value of the Citations property for this object.- Parameters:
citations
- The new value for the Citations property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
RetrieveAndGenerateResponse.Builder citations(Citation... citations)
Sets the value of the Citations property for this object.- Parameters:
citations
- The new value for the Citations property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
RetrieveAndGenerateResponse.Builder citations(Consumer<Citation.Builder>... citations)
Sets the value of the Citations property for this object. This is a convenience method that creates an instance of theCitation.Builder
avoiding the need to create one manually viaCitation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#citations(List
.) - Parameters:
citations
- a consumer that will call methods onCitation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#citations(java.util.Collection
)
-
-