Interface ProfileRecommendation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ProfileRecommendation.Builder,,ProfileRecommendation> SdkBuilder<ProfileRecommendation.Builder,,ProfileRecommendation> SdkPojo
- Enclosing class:
ProfileRecommendation
@Mutable
@NotThreadSafe
public static interface ProfileRecommendation.Builder
extends SdkPojo, CopyableBuilder<ProfileRecommendation.Builder,ProfileRecommendation>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ProfileRecommendation.BuildercatalogItem(Consumer<ProfileCatalogItem.Builder> catalogItem) The catalog item that is associated with the recommendation.catalogItem(ProfileCatalogItem catalogItem) The catalog item that is associated with the recommendation.The relevance score of the recommendation.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
-
score
The relevance score of the recommendation.
- Parameters:
score- The relevance score of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
catalogItem
The catalog item that is associated with the recommendation.
- Parameters:
catalogItem- The catalog item that is associated with the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
catalogItem
The catalog item that is associated with the recommendation.
This is a convenience method that creates an instance of theProfileCatalogItem.Builderavoiding the need to create one manually viaProfileCatalogItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocatalogItem(ProfileCatalogItem).- Parameters:
catalogItem- a consumer that will call methods onProfileCatalogItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-