Class InheritedAssociateBuilder
java.lang.Object
com.commercetools.api.models.business_unit.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) Inherited roles of the Associate within a Business Unit.associateRoleAssignments
(InheritedAssociateRoleAssignment... associateRoleAssignments) Inherited roles of the Associate within a Business Unit.associateRoleAssignments
(List<InheritedAssociateRoleAssignment> associateRoleAssignments) Inherited roles of the Associate within a Business Unit.build()
builds InheritedAssociate with checking for non-null required valuesbuilds InheritedAssociate without checking for non-null required valuescustomer
(CustomerReference customer) The Customer that acts as an Associate in the Business Unit.The Customer that acts as an Associate in the Business Unit.Inherited roles of the Associate within a Business Unit.The Customer that acts as an Associate in the Business Unit.static InheritedAssociateBuilder
of()
factory method for an instance of InheritedAssociateBuilderstatic InheritedAssociateBuilder
of
(InheritedAssociate template) create builder for InheritedAssociate instanceplusAssociateRoleAssignments
(InheritedAssociateRoleAssignment... associateRoleAssignments) Inherited roles of the Associate within a Business Unit.plusAssociateRoleAssignments
(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignmentBuilder> builder) Inherited roles of the Associate within a Business Unit.setAssociateRoleAssignments
(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignment> builder) Inherited roles of the Associate within a Business Unit.withAssociateRoleAssignments
(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignmentBuilder> builder) Inherited roles of the Associate within a Business Unit.The Customer that acts as an Associate in the Business Unit.
-
Constructor Details
-
InheritedAssociateBuilder
public InheritedAssociateBuilder()
-
-
Method Details
-
associateRoleAssignments
public InheritedAssociateBuilder associateRoleAssignments(InheritedAssociateRoleAssignment... associateRoleAssignments) Inherited roles of the Associate within a Business Unit.
- Parameters:
associateRoleAssignments
- value to be set- Returns:
- Builder
-
associateRoleAssignments
public InheritedAssociateBuilder associateRoleAssignments(List<InheritedAssociateRoleAssignment> associateRoleAssignments) Inherited roles of the Associate within a Business Unit.
- Parameters:
associateRoleAssignments
- value to be set- Returns:
- Builder
-
plusAssociateRoleAssignments
public InheritedAssociateBuilder plusAssociateRoleAssignments(InheritedAssociateRoleAssignment... associateRoleAssignments) Inherited roles of the Associate within a Business Unit.
- Parameters:
associateRoleAssignments
- value to be set- Returns:
- Builder
-
plusAssociateRoleAssignments
public InheritedAssociateBuilder plusAssociateRoleAssignments(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignmentBuilder> builder) Inherited roles of the Associate within a Business Unit.
- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
withAssociateRoleAssignments
public InheritedAssociateBuilder withAssociateRoleAssignments(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignmentBuilder> builder) Inherited roles of the Associate within a Business Unit.
- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
addAssociateRoleAssignments
public InheritedAssociateBuilder addAssociateRoleAssignments(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignment> builder) Inherited roles of the Associate within a Business Unit.
- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
setAssociateRoleAssignments
public InheritedAssociateBuilder setAssociateRoleAssignments(Function<InheritedAssociateRoleAssignmentBuilder, InheritedAssociateRoleAssignment> builder) Inherited roles of the Associate within a Business Unit.
- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
customer
public InheritedAssociateBuilder customer(Function<CustomerReferenceBuilder, CustomerReferenceBuilder> builder) The Customer that acts as an Associate in the Business Unit.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public InheritedAssociateBuilder withCustomer(Function<CustomerReferenceBuilder, CustomerReference> builder) The Customer that acts as an Associate in the Business Unit.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
The Customer that acts as an Associate in the Business Unit.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
getAssociateRoleAssignments
Inherited roles of the Associate within a Business Unit.
- Returns:
- associateRoleAssignments
-
getCustomer
The Customer that acts as an Associate in the Business Unit.
- 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
-