Interface GetAgentResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentResponse.Builder,Buildable,CopyableBuilder<GetAgentResponse.Builder,GetAgentResponse>,SdkBuilder<GetAgentResponse.Builder,GetAgentResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetAgentResponse
public static interface GetAgentResponse.Builder extends BedrockAgentResponse.Builder, SdkPojo, CopyableBuilder<GetAgentResponse.Builder,GetAgentResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetAgentResponse.Builderagent(Consumer<Agent.Builder> agent)Sets the value of the Agent property for this object.GetAgentResponse.Builderagent(Agent agent)Sets the value of the Agent property for this object.-
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 Detail
-
agent
GetAgentResponse.Builder agent(Agent agent)
Sets the value of the Agent property for this object.- Parameters:
agent- The new value for the Agent property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agent
default GetAgentResponse.Builder agent(Consumer<Agent.Builder> agent)
Sets the value of the Agent property for this object. This is a convenience method that creates an instance of theAgent.Builderavoiding the need to create one manually viaAgent.builder().When the
Consumercompletes,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:
agent(Agent)
-
-