Class ProjectCategoryRecommendationMetaBuilder
- All Implemented Interfaces:
Builder<ProjectCategoryRecommendationMeta>
Example to create an instance using the builder pattern
ProjectCategoryRecommendationMeta projectCategoryRecommendationMeta = ProjectCategoryRecommendationMeta.builder()
.plusGeneralCategoryNames(generalCategoryNamesBuilder -> generalCategoryNamesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProjectCategoryRecommendationMeta with checking for non-null required valuesbuilds ProjectCategoryRecommendationMeta without checking for non-null required valuesgeneralCategoryNames
(String... generalCategoryNames) Top 5 general categories that were used internally to generate the project-specific categories.generalCategoryNames
(List<String> generalCategoryNames) Top 5 general categories that were used internally to generate the project-specific categories.Top 5 general categories that were used internally to generate the project-specific categories.The product image that was used to generate recommendations.The product name that was used to generate recommendations.of()
factory method for an instance of ProjectCategoryRecommendationMetaBuilderof
(ProjectCategoryRecommendationMeta template) create builder for ProjectCategoryRecommendationMeta instanceplusGeneralCategoryNames
(String... generalCategoryNames) Top 5 general categories that were used internally to generate the project-specific categories.productImageUrl
(String productImageUrl) The product image that was used to generate recommendations.productName
(String productName) The product name that was used to generate recommendations.
-
Constructor Details
-
ProjectCategoryRecommendationMetaBuilder
public ProjectCategoryRecommendationMetaBuilder()
-
-
Method Details
-
productName
The product name that was used to generate recommendations.
- Parameters:
productName
- value to be set- Returns:
- Builder
-
productImageUrl
The product image that was used to generate recommendations.
- Parameters:
productImageUrl
- value to be set- Returns:
- Builder
-
generalCategoryNames
public ProjectCategoryRecommendationMetaBuilder generalCategoryNames(String... generalCategoryNames) Top 5 general categories that were used internally to generate the project-specific categories. These category names are not related to the categories defined in the project, but they provide additional information to understand the project-specific categories in the results section.
- Parameters:
generalCategoryNames
- value to be set- Returns:
- Builder
-
generalCategoryNames
public ProjectCategoryRecommendationMetaBuilder generalCategoryNames(List<String> generalCategoryNames) Top 5 general categories that were used internally to generate the project-specific categories. These category names are not related to the categories defined in the project, but they provide additional information to understand the project-specific categories in the results section.
- Parameters:
generalCategoryNames
- value to be set- Returns:
- Builder
-
plusGeneralCategoryNames
public ProjectCategoryRecommendationMetaBuilder plusGeneralCategoryNames(String... generalCategoryNames) Top 5 general categories that were used internally to generate the project-specific categories. These category names are not related to the categories defined in the project, but they provide additional information to understand the project-specific categories in the results section.
- Parameters:
generalCategoryNames
- value to be set- Returns:
- Builder
-
getProductName
The product name that was used to generate recommendations.
- Returns:
- productName
-
getProductImageUrl
The product image that was used to generate recommendations.
- Returns:
- productImageUrl
-
getGeneralCategoryNames
Top 5 general categories that were used internally to generate the project-specific categories. These category names are not related to the categories defined in the project, but they provide additional information to understand the project-specific categories in the results section.
- Returns:
- generalCategoryNames
-
build
builds ProjectCategoryRecommendationMeta with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProjectCategoryRecommendationMeta>
- Returns:
- ProjectCategoryRecommendationMeta
-
buildUnchecked
builds ProjectCategoryRecommendationMeta without checking for non-null required values- Returns:
- ProjectCategoryRecommendationMeta
-
of
factory method for an instance of ProjectCategoryRecommendationMetaBuilder- Returns:
- builder
-
of
public static ProjectCategoryRecommendationMetaBuilder of(ProjectCategoryRecommendationMeta template) create builder for ProjectCategoryRecommendationMeta instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-