Class InheritedAssociateBuilder
java.lang.Object
com.commercetools.history.models.common.InheritedAssociateBuilder
- All Implemented Interfaces:
Builder<InheritedAssociate>
InheritedAssociateBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InheritedAssociate inheritedAssociate = InheritedAssociate.builder()
.plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
.customer(customerBuilder -> customerBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAssociateRoleAssignments
(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignment> builder) add the value to the associateRoleAssignments using the builder functionassociateRoleAssignments
(InheritedAssociateRoleAssignment... associateRoleAssignments) set values to the associateRoleAssignmentsassociateRoleAssignments
(List<InheritedAssociateRoleAssignment> associateRoleAssignments) set value to the associateRoleAssignmentsbuild()
builds InheritedAssociate with checking for non-null required valuesbuilds InheritedAssociate without checking for non-null required valuesset the value to the customercustomer
(Function<ReferenceBuilder, ReferenceBuilder> builder) set the value to the customer using the builder functionvalue of associateRoleAssignments}value of customer}static InheritedAssociateBuilder
of()
factory method for an instance of InheritedAssociateBuilderstatic InheritedAssociateBuilder
of
(InheritedAssociate template) create builder for InheritedAssociate instanceplusAssociateRoleAssignments
(InheritedAssociateRoleAssignment... associateRoleAssignments) add values to the associateRoleAssignmentsplusAssociateRoleAssignments
(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignmentBuilder> builder) add the value to the associateRoleAssignments using the builder functionsetAssociateRoleAssignments
(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignment> builder) set the value to the associateRoleAssignments using the builder functionwithAssociateRoleAssignments
(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignmentBuilder> builder) set the value to the associateRoleAssignments using the builder functionwithCustomer
(Function<ReferenceBuilder, Reference> builder) set the value to the customer using the builder function
-
Constructor Details
-
InheritedAssociateBuilder
public InheritedAssociateBuilder()
-
-
Method Details
-
associateRoleAssignments
public InheritedAssociateBuilder associateRoleAssignments(InheritedAssociateRoleAssignment... associateRoleAssignments) set values to the associateRoleAssignments- Parameters:
associateRoleAssignments
- value to be set- Returns:
- Builder
-
associateRoleAssignments
public InheritedAssociateBuilder associateRoleAssignments(List<InheritedAssociateRoleAssignment> associateRoleAssignments) set value to the associateRoleAssignments- Parameters:
associateRoleAssignments
- value to be set- Returns:
- Builder
-
plusAssociateRoleAssignments
public InheritedAssociateBuilder plusAssociateRoleAssignments(InheritedAssociateRoleAssignment... associateRoleAssignments) add values to the associateRoleAssignments- Parameters:
associateRoleAssignments
- value to be set- Returns:
- Builder
-
plusAssociateRoleAssignments
public InheritedAssociateBuilder plusAssociateRoleAssignments(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignmentBuilder> builder) add the value to the associateRoleAssignments using the builder function- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
withAssociateRoleAssignments
public InheritedAssociateBuilder withAssociateRoleAssignments(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignmentBuilder> builder) set the value to the associateRoleAssignments using the builder function- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
addAssociateRoleAssignments
public InheritedAssociateBuilder addAssociateRoleAssignments(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignment> builder) add the value to the associateRoleAssignments using the builder function- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
setAssociateRoleAssignments
public InheritedAssociateBuilder setAssociateRoleAssignments(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignment> builder) set the value to the associateRoleAssignments using the builder function- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
customer
set the value to the customer using the builder function- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
set the value to the customer using the builder function- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
set the value to the customer- Parameters:
customer
- value to be set- Returns:
- Builder
-
getAssociateRoleAssignments
value of associateRoleAssignments}- Returns:
- associateRoleAssignments
-
getCustomer
value of customer}- Returns:
- customer
-
build
builds InheritedAssociate with checking for non-null required values- Specified by:
build
in interfaceBuilder<InheritedAssociate>
- Returns:
- InheritedAssociate
-
buildUnchecked
builds InheritedAssociate without checking for non-null required values- Returns:
- InheritedAssociate
-
of
factory method for an instance of InheritedAssociateBuilder- Returns:
- builder
-
of
create builder for InheritedAssociate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-