Class ProductSelectionImportBuilder
- All Implemented Interfaces:
Builder<ProductSelectionImport>
Example to create an instance using the builder pattern
ProductSelectionImport productSelectionImport = ProductSelectionImport.builder()
.key("{key}")
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList of product assignments.assignments(ProductSelectionAssignment... assignments) List of product assignments.assignments(List<ProductSelectionAssignment> assignments) List of product assignments.build()builds ProductSelectionImport with checking for non-null required valuesbuilds ProductSelectionImport without checking for non-null required valuesMaps toProductSelection.custom.custom(Function<CustomBuilder, CustomBuilder> builder) Maps toProductSelection.custom.List of product assignments.Maps toProductSelection.custom.getKey()User-defined unique identifier.getMode()Maps toProductSelection.mode.getName()Maps toProductSelection.name.User-defined unique identifier.mode(ProductSelectionMode mode) Maps toProductSelection.mode.name(LocalizedString name) Maps toProductSelection.name.Maps toProductSelection.name.of()factory method for an instance of ProductSelectionImportBuilderof(ProductSelectionImport template) create builder for ProductSelectionImport instanceplusAssignments(ProductSelectionAssignment... assignments) List of product assignments.plusAssignments(Function<ProductSelectionAssignmentBuilder, ProductSelectionAssignmentBuilder> builder) List of product assignments.List of product assignments.withAssignments(Function<ProductSelectionAssignmentBuilder, ProductSelectionAssignmentBuilder> builder) List of product assignments.withCustom(Function<CustomBuilder, Custom> builder) Maps toProductSelection.custom.Maps toProductSelection.name.
-
Constructor Details
-
ProductSelectionImportBuilder
public ProductSelectionImportBuilder()
-
-
Method Details
-
key
User-defined unique identifier. If an ProductSelection with this
keyexists, it is updated with the imported data.- Parameters:
key- value to be set- Returns:
- Builder
-
name
public ProductSelectionImportBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Maps to
ProductSelection.name.- Parameters:
builder- function to build the name value- Returns:
- Builder
-
withName
public ProductSelectionImportBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) Maps to
ProductSelection.name.- Parameters:
builder- function to build the name value- Returns:
- Builder
-
name
Maps to
ProductSelection.name.- Parameters:
name- value to be set- Returns:
- Builder
-
mode
Maps to
ProductSelection.mode.- Parameters:
mode- value to be set- Returns:
- Builder
-
custom
Maps to
ProductSelection.custom.- Parameters:
builder- function to build the custom value- Returns:
- Builder
-
withCustom
Maps to
ProductSelection.custom.- Parameters:
builder- function to build the custom value- Returns:
- Builder
-
custom
Maps to
ProductSelection.custom.- Parameters:
custom- value to be set- Returns:
- Builder
-
assignments
public ProductSelectionImportBuilder assignments(@Nullable ProductSelectionAssignment... assignments) List of product assignments.
- Parameters:
assignments- value to be set- Returns:
- Builder
-
assignments
public ProductSelectionImportBuilder assignments(@Nullable List<ProductSelectionAssignment> assignments) List of product assignments.
- Parameters:
assignments- value to be set- Returns:
- Builder
-
plusAssignments
public ProductSelectionImportBuilder plusAssignments(@Nullable ProductSelectionAssignment... assignments) List of product assignments.
- Parameters:
assignments- value to be set- Returns:
- Builder
-
plusAssignments
public ProductSelectionImportBuilder plusAssignments(Function<ProductSelectionAssignmentBuilder, ProductSelectionAssignmentBuilder> builder) List of product assignments.
- Parameters:
builder- function to build the assignments value- Returns:
- Builder
-
withAssignments
public ProductSelectionImportBuilder withAssignments(Function<ProductSelectionAssignmentBuilder, ProductSelectionAssignmentBuilder> builder) List of product assignments.
- Parameters:
builder- function to build the assignments value- Returns:
- Builder
-
addAssignments
public ProductSelectionImportBuilder addAssignments(Function<ProductSelectionAssignmentBuilder, ProductSelectionAssignment> builder) List of product assignments.
- Parameters:
builder- function to build the assignments value- Returns:
- Builder
-
setAssignments
public ProductSelectionImportBuilder setAssignments(Function<ProductSelectionAssignmentBuilder, ProductSelectionAssignment> builder) List of product assignments.
- Parameters:
builder- function to build the assignments value- Returns:
- Builder
-
getKey
User-defined unique identifier. If an ProductSelection with this
keyexists, it is updated with the imported data.- Returns:
- key
-
getName
Maps to
ProductSelection.name.- Returns:
- name
-
getMode
Maps to
ProductSelection.mode.- Returns:
- mode
-
getCustom
Maps to
ProductSelection.custom.- Returns:
- custom
-
getAssignments
List of product assignments.
- Returns:
- assignments
-
build
builds ProductSelectionImport with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSelectionImport>- Returns:
- ProductSelectionImport
-
buildUnchecked
builds ProductSelectionImport without checking for non-null required values- Returns:
- ProductSelectionImport
-
of
factory method for an instance of ProductSelectionImportBuilder- Returns:
- builder
-
of
create builder for ProductSelectionImport instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-