Interface SearchPublicRecordsResponse.Builder
- All Superinterfaces:
AgentDiscoveryResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<SearchPublicRecordsResponse.Builder,,SearchPublicRecordsResponse> SdkBuilder<SearchPublicRecordsResponse.Builder,,SearchPublicRecordsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchPublicRecordsResponse
@Mutable
@NotThreadSafe
public static interface SearchPublicRecordsResponse.Builder
extends AgentDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<SearchPublicRecordsResponse.Builder,SearchPublicRecordsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to pass in a later request to get the next page of results.records(Collection<PublicRecord> records) The records that match the search, most relevant first.records(Consumer<PublicRecord.Builder>... records) The records that match the search, most relevant first.records(PublicRecord... records) The records that match the search, most relevant first.Methods inherited from interface software.amazon.awssdk.services.agentdiscovery.model.AgentDiscoveryResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
records
The records that match the search, most relevant first.
- Parameters:
records- The records that match the search, most relevant first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
The records that match the search, most relevant first.
- Parameters:
records- The records that match the search, most relevant first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
The records that match the search, most relevant first.
This is a convenience method that creates an instance of thePublicRecord.Builderavoiding the need to create one manually viaPublicRecord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecords(List<PublicRecord>).- Parameters:
records- a consumer that will call methods onPublicRecord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to pass in a later request to get the next page of results. Absent when there are no more results.
- Parameters:
nextToken- The token to pass in a later request to get the next page of results. Absent when there are no more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-