Interface SubscribedListingItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SubscribedListingItem.Builder,
,SubscribedListingItem> SdkBuilder<SubscribedListingItem.Builder,
,SubscribedListingItem> SdkPojo
- Enclosing class:
SubscribedListingItem
@Mutable
@NotThreadSafe
public static interface SubscribedListingItem.Builder
extends SdkPojo, CopyableBuilder<SubscribedListingItem.Builder,SubscribedListingItem>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SubscribedListingItem.Builder
assetListing
(Consumer<SubscribedAssetListing.Builder> assetListing) The asset for which the subscription grant is created.assetListing
(SubscribedAssetListing assetListing) The asset for which the subscription grant is created.default SubscribedListingItem.Builder
productListing
(Consumer<SubscribedProductListing.Builder> productListing) The data product listing.productListing
(SubscribedProductListing productListing) 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 for which the subscription grant is created.
- Parameters:
assetListing
- The asset for which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetListing
default SubscribedListingItem.Builder assetListing(Consumer<SubscribedAssetListing.Builder> assetListing) The asset for which the subscription grant is created.
This is a convenience method that creates an instance of theSubscribedAssetListing.Builder
avoiding the need to create one manually viaSubscribedAssetListing.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassetListing(SubscribedAssetListing)
.- Parameters:
assetListing
- a consumer that will call methods onSubscribedAssetListing.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
productListing
The data product listing.
- Parameters:
productListing
- The data product listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productListing
default SubscribedListingItem.Builder productListing(Consumer<SubscribedProductListing.Builder> productListing) The data product listing.
This is a convenience method that creates an instance of theSubscribedProductListing.Builder
avoiding the need to create one manually viaSubscribedProductListing.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toproductListing(SubscribedProductListing)
.- Parameters:
productListing
- a consumer that will call methods onSubscribedProductListing.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-