Interface RelatedItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RelatedItem.Builder,
,RelatedItem> SdkBuilder<RelatedItem.Builder,
,RelatedItem> SdkPojo
- Enclosing class:
RelatedItem
public static interface RelatedItem.Builder
extends SdkPojo, CopyableBuilder<RelatedItem.Builder,RelatedItem>
-
Method Summary
Modifier and TypeMethodDescriptiongeneratedId
(String generatedId) A unique ID for aRelatedItem
.default RelatedItem.Builder
identifier
(Consumer<ItemIdentifier.Builder> identifier) Details about the related item.identifier
(ItemIdentifier identifier) Details about the related item.The title of the related item.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, sdkFields
-
Method Details
-
generatedId
A unique ID for a
RelatedItem
.Don't specify this parameter when you add a
RelatedItem
by using the UpdateRelatedItems API action.- Parameters:
generatedId
- A unique ID for aRelatedItem
.Don't specify this parameter when you add a
RelatedItem
by using the UpdateRelatedItems API action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identifier
Details about the related item.
- Parameters:
identifier
- Details about the related item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identifier
Details about the related item.
This is a convenience method that creates an instance of theItemIdentifier.Builder
avoiding the need to create one manually viaItemIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toidentifier(ItemIdentifier)
.- Parameters:
identifier
- a consumer that will call methods onItemIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
title
The title of the related item.
- Parameters:
title
- The title of the related item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-