Interface GrantedEntity.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GrantedEntity.Builder,
,GrantedEntity> SdkBuilder<GrantedEntity.Builder,
,GrantedEntity> SdkPojo
- Enclosing class:
GrantedEntity
@Mutable
@NotThreadSafe
public static interface GrantedEntity.Builder
extends SdkPojo, CopyableBuilder<GrantedEntity.Builder,GrantedEntity>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GrantedEntity.Builder
listing
(Consumer<ListingRevision.Builder> listing) The listing for which a subscription is granted.listing
(ListingRevision listing) The listing for which a subscription is granted.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
-
listing
The listing for which a subscription is granted.
- Parameters:
listing
- The listing for which a subscription is granted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listing
The listing for which a subscription is granted.
This is a convenience method that creates an instance of theListingRevision.Builder
avoiding the need to create one manually viaListingRevision.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolisting(ListingRevision)
.- Parameters:
listing
- a consumer that will call methods onListingRevision.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-