Interface CreateAgentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BedrockAgentResponse.Builder
,Buildable
,CopyableBuilder<CreateAgentResponse.Builder,
,CreateAgentResponse> SdkBuilder<CreateAgentResponse.Builder,
,CreateAgentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateAgentResponse
public static interface CreateAgentResponse.Builder
extends BedrockAgentResponse.Builder, SdkPojo, CopyableBuilder<CreateAgentResponse.Builder,CreateAgentResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateAgentResponse.Builder
agent
(Consumer<Agent.Builder> agent) Contains details about the agent created.Contains details about the agent created.Methods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentResponse.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 Details
-
agent
Contains details about the agent created.
- Parameters:
agent
- Contains details about the agent created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agent
Contains details about the agent created.
This is a convenience method that creates an instance of theAgent.Builder
avoiding the need to create one manually viaAgent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toagent(Agent)
.- Parameters:
agent
- a consumer that will call methods onAgent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-