Interface ListAgentsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentResponse.Builder,Buildable,CopyableBuilder<ListAgentsResponse.Builder,ListAgentsResponse>,SdkBuilder<ListAgentsResponse.Builder,ListAgentsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListAgentsResponse
public static interface ListAgentsResponse.Builder extends BedrockAgentResponse.Builder, SdkPojo, CopyableBuilder<ListAgentsResponse.Builder,ListAgentsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListAgentsResponse.BuilderagentSummaries(Collection<AgentSummary> agentSummaries)Sets the value of the AgentSummaries property for this object.ListAgentsResponse.BuilderagentSummaries(Consumer<AgentSummary.Builder>... agentSummaries)Sets the value of the AgentSummaries property for this object.ListAgentsResponse.BuilderagentSummaries(AgentSummary... agentSummaries)Sets the value of the AgentSummaries property for this object.ListAgentsResponse.BuildernextToken(String nextToken)Sets the value of the NextToken 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
-
agentSummaries
ListAgentsResponse.Builder agentSummaries(Collection<AgentSummary> agentSummaries)
Sets the value of the AgentSummaries property for this object.- Parameters:
agentSummaries- The new value for the AgentSummaries property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentSummaries
ListAgentsResponse.Builder agentSummaries(AgentSummary... agentSummaries)
Sets the value of the AgentSummaries property for this object.- Parameters:
agentSummaries- The new value for the AgentSummaries property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentSummaries
ListAgentsResponse.Builder agentSummaries(Consumer<AgentSummary.Builder>... agentSummaries)
Sets the value of the AgentSummaries property for this object. This is a convenience method that creates an instance of theAgentSummary.Builderavoiding the need to create one manually viaAgentSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#agentSummaries(List.) - Parameters:
agentSummaries- a consumer that will call methods onAgentSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#agentSummaries(java.util.Collection)
-
nextToken
ListAgentsResponse.Builder nextToken(String nextToken)
Sets the value of the NextToken property for this object.- Parameters:
nextToken- The new value for the NextToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-