Interface SearchResultItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SearchResultItem.Builder,
,SearchResultItem> SdkBuilder<SearchResultItem.Builder,
,SearchResultItem> SdkPojo
- Enclosing class:
SearchResultItem
@Mutable
@NotThreadSafe
public static interface SearchResultItem.Builder
extends SdkPojo, CopyableBuilder<SearchResultItem.Builder,SearchResultItem>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SearchResultItem.Builder
assetListing
(Consumer<AssetListingItem.Builder> assetListing) The asset listing included in the results of theSearchListings
action.assetListing
(AssetListingItem assetListing) The asset listing included in the results of theSearchListings
action.default SearchResultItem.Builder
dataProductListing
(Consumer<DataProductListingItem.Builder> dataProductListing) The data product listing.dataProductListing
(DataProductListingItem dataProductListing) The data product listing.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, sdkFieldNameToField, sdkFields
-
Method Details
-
assetListing
The asset listing included in the results of the
SearchListings
action.- Parameters:
assetListing
- The asset listing included in the results of theSearchListings
action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetListing
The asset listing included in the results of the
This is a convenience method that creates an instance of theSearchListings
action.AssetListingItem.Builder
avoiding the need to create one manually viaAssetListingItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassetListing(AssetListingItem)
.- Parameters:
assetListing
- a consumer that will call methods onAssetListingItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataProductListing
The data product listing.
- Parameters:
dataProductListing
- The data product listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataProductListing
default SearchResultItem.Builder dataProductListing(Consumer<DataProductListingItem.Builder> dataProductListing) The data product listing.
This is a convenience method that creates an instance of theDataProductListingItem.Builder
avoiding the need to create one manually viaDataProductListingItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todataProductListing(DataProductListingItem)
.- Parameters:
dataProductListing
- a consumer that will call methods onDataProductListingItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-