Interface BatchGetDiscoverableRegistryRecordResponse.Builder
- All Superinterfaces:
AgentRegistryResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<BatchGetDiscoverableRegistryRecordResponse.Builder,,BatchGetDiscoverableRegistryRecordResponse> SdkBuilder<BatchGetDiscoverableRegistryRecordResponse.Builder,,BatchGetDiscoverableRegistryRecordResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
BatchGetDiscoverableRegistryRecordResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe per-record errors for records that could not be retrieved.The per-record errors for records that could not be retrieved.errors(BatchGetDiscoverableRegistryRecordError... errors) The per-record errors for records that could not be retrieved.registryRecords(Collection<RegistryRecordSummary> registryRecords) The records that were successfully retrieved.registryRecords(Consumer<RegistryRecordSummary.Builder>... registryRecords) The records that were successfully retrieved.registryRecords(RegistryRecordSummary... registryRecords) The records that were successfully retrieved.Methods inherited from interface software.amazon.awssdk.services.agentregistry.model.AgentRegistryResponse.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
-
registryRecords
BatchGetDiscoverableRegistryRecordResponse.Builder registryRecords(Collection<RegistryRecordSummary> registryRecords) The records that were successfully retrieved. Each record correlates to the request by its
recordId.- Parameters:
registryRecords- The records that were successfully retrieved. Each record correlates to the request by itsrecordId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
registryRecords
BatchGetDiscoverableRegistryRecordResponse.Builder registryRecords(RegistryRecordSummary... registryRecords) The records that were successfully retrieved. Each record correlates to the request by its
recordId.- Parameters:
registryRecords- The records that were successfully retrieved. Each record correlates to the request by itsrecordId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
registryRecords
BatchGetDiscoverableRegistryRecordResponse.Builder registryRecords(Consumer<RegistryRecordSummary.Builder>... registryRecords) The records that were successfully retrieved. Each record correlates to the request by its
This is a convenience method that creates an instance of therecordId.RegistryRecordSummary.Builderavoiding the need to create one manually viaRegistryRecordSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toregistryRecords(List<RegistryRecordSummary>).- Parameters:
registryRecords- a consumer that will call methods onRegistryRecordSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errors
BatchGetDiscoverableRegistryRecordResponse.Builder errors(Collection<BatchGetDiscoverableRegistryRecordError> errors) The per-record errors for records that could not be retrieved. This list is empty when all requested records were returned.
- Parameters:
errors- The per-record errors for records that could not be retrieved. This list is empty when all requested records were returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchGetDiscoverableRegistryRecordResponse.Builder errors(BatchGetDiscoverableRegistryRecordError... errors) The per-record errors for records that could not be retrieved. This list is empty when all requested records were returned.
- Parameters:
errors- The per-record errors for records that could not be retrieved. This list is empty when all requested records were returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchGetDiscoverableRegistryRecordResponse.Builder errors(Consumer<BatchGetDiscoverableRegistryRecordError.Builder>... errors) The per-record errors for records that could not be retrieved. This list is empty when all requested records were returned.
This is a convenience method that creates an instance of theBatchGetDiscoverableRegistryRecordError.Builderavoiding the need to create one manually viaBatchGetDiscoverableRegistryRecordError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrors(List<BatchGetDiscoverableRegistryRecordError>).- Parameters:
errors- a consumer that will call methods onBatchGetDiscoverableRegistryRecordError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-