Interface Recommendation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Recommendation.Builder,,Recommendation> SdkBuilder<Recommendation.Builder,,Recommendation> SdkPojo
- Enclosing class:
Recommendation
@Mutable
@NotThreadSafe
public static interface Recommendation.Builder
extends SdkPojo, CopyableBuilder<Recommendation.Builder,Recommendation>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Recommendation.BuildercatalogItem(Consumer<CatalogItem.Builder> catalogItem) The catalog item being recommended, including its complete details and attributes.catalogItem(CatalogItem catalogItem) The catalog item being recommended, including its complete details and attributes.Recommendation Score between 0 and 1.Methods 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, sdkFields
-
Method Details
-
catalogItem
The catalog item being recommended, including its complete details and attributes.
- Parameters:
catalogItem- The catalog item being recommended, including its complete details and attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
catalogItem
The catalog item being recommended, including its complete details and attributes.
This is a convenience method that creates an instance of theCatalogItem.Builderavoiding the need to create one manually viaCatalogItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocatalogItem(CatalogItem).- Parameters:
catalogItem- a consumer that will call methods onCatalogItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
score
Recommendation Score between 0 and 1.
- Parameters:
score- Recommendation Score between 0 and 1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-