Class MyBusinessUnitAssociateDraftBuilder
- All Implemented Interfaces:
Builder<MyBusinessUnitAssociateDraft>
Example to create an instance using the builder pattern
MyBusinessUnitAssociateDraft myBusinessUnitAssociateDraft = MyBusinessUnitAssociateDraft.builder()
.version(0.3)
.customer(customerBuilder -> customerBuilder)
.plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAssociateRoleAssignments
(Function<AssociateRoleAssignmentDraftBuilder, AssociateRoleAssignmentDraft> builder) Roles assigned to the new Associate within a Business Unit.associateRoleAssignments
(AssociateRoleAssignmentDraft... associateRoleAssignments) Roles assigned to the new Associate within a Business Unit.associateRoleAssignments
(List<AssociateRoleAssignmentDraft> associateRoleAssignments) Roles assigned to the new Associate within a Business Unit.build()
builds MyBusinessUnitAssociateDraft with checking for non-null required valuesbuilds MyBusinessUnitAssociateDraft without checking for non-null required valuescustomer
(MyCustomerDraft customer) Customer to create and assign to the Business Unit.Customer to create and assign to the Business Unit.Roles assigned to the new Associate within a Business Unit.Customer to create and assign to the Business Unit.Expected version of the BusinessUnit on which the changes should be applied.of()
factory method for an instance of MyBusinessUnitAssociateDraftBuilderof
(MyBusinessUnitAssociateDraft template) create builder for MyBusinessUnitAssociateDraft instanceplusAssociateRoleAssignments
(AssociateRoleAssignmentDraft... associateRoleAssignments) Roles assigned to the new Associate within a Business Unit.plusAssociateRoleAssignments
(Function<AssociateRoleAssignmentDraftBuilder, AssociateRoleAssignmentDraftBuilder> builder) Roles assigned to the new Associate within a Business Unit.setAssociateRoleAssignments
(Function<AssociateRoleAssignmentDraftBuilder, AssociateRoleAssignmentDraft> builder) Roles assigned to the new Associate within a Business Unit.Expected version of the BusinessUnit on which the changes should be applied.withAssociateRoleAssignments
(Function<AssociateRoleAssignmentDraftBuilder, AssociateRoleAssignmentDraftBuilder> builder) Roles assigned to the new Associate within a Business Unit.Customer to create and assign to the Business Unit.
-
Constructor Details
-
MyBusinessUnitAssociateDraftBuilder
public MyBusinessUnitAssociateDraftBuilder()
-
-
Method Details
-
version
Expected version of the BusinessUnit on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Parameters:
version
- value to be set- Returns:
- Builder
-
customer
public MyBusinessUnitAssociateDraftBuilder customer(Function<MyCustomerDraftBuilder, MyCustomerDraftBuilder> builder) Customer to create and assign to the Business Unit.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public MyBusinessUnitAssociateDraftBuilder withCustomer(Function<MyCustomerDraftBuilder, MyCustomerDraft> builder) Customer to create and assign to the Business Unit.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
Customer to create and assign to the Business Unit.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
associateRoleAssignments
public MyBusinessUnitAssociateDraftBuilder associateRoleAssignments(AssociateRoleAssignmentDraft... associateRoleAssignments) Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the
buyerAssignable
property set totrue
.- Parameters:
associateRoleAssignments
- value to be set- Returns:
- Builder
-
associateRoleAssignments
public MyBusinessUnitAssociateDraftBuilder associateRoleAssignments(List<AssociateRoleAssignmentDraft> associateRoleAssignments) Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the
buyerAssignable
property set totrue
.- Parameters:
associateRoleAssignments
- value to be set- Returns:
- Builder
-
plusAssociateRoleAssignments
public MyBusinessUnitAssociateDraftBuilder plusAssociateRoleAssignments(AssociateRoleAssignmentDraft... associateRoleAssignments) Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the
buyerAssignable
property set totrue
.- Parameters:
associateRoleAssignments
- value to be set- Returns:
- Builder
-
plusAssociateRoleAssignments
public MyBusinessUnitAssociateDraftBuilder plusAssociateRoleAssignments(Function<AssociateRoleAssignmentDraftBuilder, AssociateRoleAssignmentDraftBuilder> builder) Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the
buyerAssignable
property set totrue
.- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
withAssociateRoleAssignments
public MyBusinessUnitAssociateDraftBuilder withAssociateRoleAssignments(Function<AssociateRoleAssignmentDraftBuilder, AssociateRoleAssignmentDraftBuilder> builder) Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the
buyerAssignable
property set totrue
.- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
addAssociateRoleAssignments
public MyBusinessUnitAssociateDraftBuilder addAssociateRoleAssignments(Function<AssociateRoleAssignmentDraftBuilder, AssociateRoleAssignmentDraft> builder) Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the
buyerAssignable
property set totrue
.- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
setAssociateRoleAssignments
public MyBusinessUnitAssociateDraftBuilder setAssociateRoleAssignments(Function<AssociateRoleAssignmentDraftBuilder, AssociateRoleAssignmentDraft> builder) Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the
buyerAssignable
property set totrue
.- Parameters:
builder
- function to build the associateRoleAssignments value- Returns:
- Builder
-
getVersion
Expected version of the BusinessUnit on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Returns:
- version
-
getCustomer
Customer to create and assign to the Business Unit.
- Returns:
- customer
-
getAssociateRoleAssignments
Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the
buyerAssignable
property set totrue
.- Returns:
- associateRoleAssignments
-
build
builds MyBusinessUnitAssociateDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyBusinessUnitAssociateDraft>
- Returns:
- MyBusinessUnitAssociateDraft
-
buildUnchecked
builds MyBusinessUnitAssociateDraft without checking for non-null required values- Returns:
- MyBusinessUnitAssociateDraft
-
of
factory method for an instance of MyBusinessUnitAssociateDraftBuilder- Returns:
- builder
-
of
create builder for MyBusinessUnitAssociateDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-